Установка полинома для вычисления CRC.
interface port-channel load-balance polynomial <POLYNOMIAL>
no interface port-channel load-balance polynomial
<POLYNOMIAL> – полином. Может принимать значения:
0x8003;
0x8101;
0x84a1;
0x9019.
config-interface-front-port
CONFIG
MA5160(configure)# interface port-channel load-balance polynomial 0x8101 |
Установка полей в пакете, из которых будет вычисляться хэш.
interface port-channel load-balance hash <PACKAGE-FIELDS>
no interface port-channel load-balance hash
<PACKAGE-FIELDS> – поля в пакете, из которых будет вычисляться хэш. Можно выбрать от одного до трех полей:
config-interface-front-port
CONFIG
MA5160(configure)# interface port-channel load-balance hash src-mac vlan ethertype |
Переход в режим настройки port-channel.
[no] interface port-channel <PORT-CHANNEL-ID>
<PORT-CHANNEL-ID> – индекс port-channel группы в диапазоне [1-10]
config-interface-front-port
CONFIG
MA5160(configure)# interface port-channel |
Установка описания интерфейса.
description <VALUE>
no description
<VALUE> – набор символов в диапазоне от 1 до 127.
config-interface-front-port
IF-PORT-CHANNEL
MA5160(config)(if-port-channel-1)# description "VPN" |
Создание bridge между портами FC.
[no] bridge to <VID>
<PORT> – front-port/port-channel/fc-slot-channel.
<PORT_ID> - номер порта.
no bridge to front-port 1/1
no bridge to front-port 1/2
no bridge to front-port 1/3
no bridge to front-port 1/4
no bridge to front-port 1/5
no bridge to front-port 1/6
no bridge to front-port 1/7
no bridge to front-port 1/8
no bridge to front-port 1/9
no bridge to front-port 1/10
no bridge to front-port 2/1
no bridge to front-port 2/2
no bridge to front-port 2/3
no bridge to front-port 2/4
no bridge to front-port 2/5
no bridge to front-port 2/6
no bridge to front-port 2/7
no bridge to front-port 2/8
no bridge to front-port 2/9
no bridge to front-port 2/10
no bridge to port-channel 1
no bridge to port-channel 2
no bridge to port-channel 3
no bridge to port-channel 4
no bridge to port-channel 5
no bridge to port-channel 6
no bridge to port-channel 7
no bridge to port-channel 8
no bridge to port-channel 9
no bridge to port-channel 10
bridge to fc-slot-channel 1
bridge to fc-slot-channel 2
bridge to fc-slot-channel 3
bridge to fc-slot-channel 4
bridge to fc-slot-channel 5
bridge to fc-slot-channel 6
bridge to fc-slot-channel 7
bridge to fc-slot-channel 8
bridge to fc-slot-channel 9
bridge to fc-slot-channel 10
bridge to fc-slot-channel 11
bridge to fc-slot-channel 12
bridge to fc-slot-channel 13
bridge to fc-slot-channel 14
bridge to fc-slot-channel 15
bridge to fc-slot-channel 16
config-interface-front-port
IF-PORT-CHANNEL
MA5160(config)(if-port-channel-1)# bridge to front-port 1/1 |
Установка режима агрегации портов (включение/отключение LACP).
mode <type>
no mode
<type> – режим работы Link Aggregation. Значения:
mode static
config-interface-front-port
IF-PORT-CHANNEL
MA5160(config)(if-port-channel-1)# mode lacp |
Выбор режима балансировки. Каждый следующий пакет будет использовать следующий LAG-порт.
psc mode round-robin
Команда не содержит параметров.
psc mode smooth-division
config-interface-front-port
IF-PORT-CHANNEL
MA5160(config)(if-port-channel-1)# psc mode round-robin |
Выбор режима балансировки. Этот режим подходит для балансировки при небольшом количестве LAG-портов, только когда количество не кратно двум.
psc mode smooth-division
Команда не содержит параметров.
psc mode smooth-division
config-interface-front-port
IF-PORT-CHANNEL
MA5160(config)(if-port-channel-1)# psc mode smooth-division |
Выбор режима балансировки. Балансировка по формуле Member-ID = MemberCount* Hash/2^16.
psc mode multiplication
Команда не содержит параметров.
psc mode smooth-division
config-interface-front-port
IF-PORT-CHANNEL
MA5160(config)(if-port-channel-1)# psc mode multiplication |
Задание vid, которым будет помечен входящий нетегированный трафик.
[no] pvid <VID>
<VID> – VLAN ID в диапазоне [1-4094].
config-interface-front-port
IF-PORT-CHANNEL
MA5160(config)(if-port-channel-1)# pvid 1234 |
Выключение port-channel.
[no] shutdown
Команда не содержит параметров.
Включено
config-interface-front-port
IF-PORT-CHANNEL
MA5160(config)(if-port-channel-1)# shutdown |
Установка скорости интерфейса port-channel.
[no] speed <VALUE>
<VALUE> – значение скорости порта [auto,1000,10G,25G,40G,100G].
speed auto
config-interface-front-port
IF-PORT-CHANNEL
MA5160(config)(if-port-channel-1)# speed 1000 |
Задание режима работы интерфейса с VLAN.
[no] switchport mode <VALUE>
<VALUE> – режимы работы:
general
if-front-view
IF-PORT-CHANNEL
MA5160(config)(if-port-channel-1)# switchport mode trunk |
Разрешение прохождения VLAN на port-channel.
[no] vlan allow <VLAN-ID>
<VLAN-ID> – id vlan в диапазоне [1-4094]. Параметр можно задавать диапазоном или перечислением (например: vlan allow 5-7 или vlan allow 1,3,5,7).
config-interface-front-port
IF-PORT-CHANNEL
MA5160(config)(if-port-channel-1)# vlan allow 150 |