| 5.5.2 Настройка Module 7 (Switch_77) |
|
Для настройки коммутатора Module 7 (Switch_77), следует выполнить следующие действия:
1. Зайти при помощи Telnet на Module 7 (Switch 77). По умолчанию, в качестве имени пользователя используется USERID, паролем пользователя является PASSW0RD. Имя пользователя и пароль следует вводить с учетом регистра, а в слове PASSW0RD, "0" это ноль, а не буква. telnet 172.23.199.77 Nexus 4000 Switch switch login: USERID Password: Switch_77# 2. Вход в режим настройки. switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch_77(config)# 3. Включение функции fip snooping. Switch_77(config)# feature fip-snooping Switch_77(config)# 4. Создание политик, классификация типов трафика и параметров пропускной способности для каждого из них. Switch_77(config)# policy-map type queuing policy-
fcoe-
bandwidthSwitch_77(config-pmap-que)# class type queuing 1p7q4t-out-q-default Switch_77(config-pmap-c-que)# bandwidth percent 50 Switch_77(config-pmap-c-que)# class type queuing 1p7q4t-out-pq1 Switch_77(config-pmap-c-que)# bandwidth percent 7 Switch_77(config-pmap-c-que)# class type queuing 1p7q4t-out-q2 Switch_77(config-pmap-c-que)# bandwidth percent 7 Switch_77(config-pmap-c-que)# class type queuing 1p7q4t-out-q3 Switch_77(config-pmap-c-que)# bandwidth percent 7 Switch_77(config-pmap-c-que)# class type queuing 1p7q4t-out-q4 Switch_77(config-pmap-c-que)# bandwidth percent 7 Switch_77(config-pmap-c-que)# class type queuing 1p7q4t-out-q5 Switch_77(config-pmap-c-que)# bandwidth percent 7 Switch_77(config-pmap-c-que)# class type queuing 1p7q4t-out-q6 Switch_77(config-pmap-c-que)# bandwidth percent 7 Switch_77(config-pmap-c-que)# class type queuing 1p7q4t-out-q7 Switch_77(config-pmap-c-que)# bandwidth percent 7 5. Добавление классификаций для FCoE и не FCoE трафиков. Switch_77(config-pmap-c-que)# class-map type
network-qos class-fcoeSwitch_77(config-cmap-nq)# match cos 3 Switch_77(config-cmap-nq)# class-map type network-qos class-non-fcoe Switch_77(config-cmap-nq)# match cos 0-2,4-7 6. Добавление политик для FCoE трафика. Switch_77(config-cmap-nq)# policy-map type network-qos policy-fcoe Switch_77(config-pmap-nq)# class type network-qos class-fcoe Switch_77(config-pmap-nq-c)# pause no-drop Switch_77(config-pmap-nq-c)# mtu 2500 Switch_77(config-pmap-nq-c)# class type network-qos class-non-fcoe 7. Включение классификации приоритетов трафика, при помощи QoS. Switch_77(config-pmap-nq-c)# system qos Switch_77(config-sys-qos)# service-policy type network-qos policy-fcoe Switch_77(config-sys-qos)# service-policy type queuing output policy-fcoe-bandwidth 8. Назначение VLAN для FCoE, включение FIP Snooping и назначение параметров FC-MAP. Switch_77(config-sys-qos)# vlan 100 Switch_77(config-vlan)# fip-snooping enable Switch_77(config-vlan)# fip-snooping fc-map 0x0efc00 Switch_77(config-vlan)# vlan 300 Switch_77(config-vlan)# fip-snooping enable Switch_77(config-vlan)# fip-snooping fc-map 0x0efc00 9. Настройка внутренних интерфейсов (1/1 – 1/14). Как изображено на диаграмме, интерфейсу 1/11 будет назначен VLAN 100, а интерфейсу 1/12 будет назначен VLAN 300. После установки портов коммутатора в режим Edge, будет выведено следующее предупреждение, которое можно проигнорировать: Warning: Edge port type (portfast) should only be enabled on ports connected to a single host. Connecting hubs, concentrators, switches, bridges, etc... to this interface when edge port type (portfast) is enabled, can cause temporary bridging loops. Use with CAUTION. Switch_77(config-vlan)# interface Ethernet1/11 Switch_77(config-if)# switchport mode trunk Switch_77(config-if)# switchport trunk allowed vlan 1,100 Switch_77(config-if)# spanning-tree port type edge trunk Switch_77(config-if)# speed auto Switch_77(config-if)# interface Ethernet1/12 Switch_77(config-if)# switchport mode trunk Switch_77(config-if)# switchport trunk allowed vlan 1,300 Switch_77(config-if)# spanning-tree port type edge trunk Switch_77(config-if)# speed auto 10. Создание агрегированного соединения. Switch_77(config-if)# interface port-channel 1 11. Добавление внешних интерфейсов (1/15-1/20) в агрегированное соединение. Switch_77(config-if)# int e1/15-20 Switch_77(config-if-range)# channel-group 1 mode active 12. Настройка параметров агрегированного соединения. Switch_77(config-if-range)# int port-channel 1 Switch_77(config-if)# switchport mode trunk Switch_77(config-if)# switchport trunk allowed vlan 1,100,300 Switch_77(config-if)# fip-snooping port-mode fcf
|


