1. 程式人生 > >Nexus-配置vPC 實驗三

Nexus-配置vPC 實驗三

配置EvPC(增強的vPC),下面兩個FEX可以同時被兩個N5K管理。
注意:FEX只支援靜態的Channel-group(mode on)

N5K-1配置:
配置FEX
N5K-1(config)#feature fex
N5K-1(config)#inter e1/20-21
N5K-1(config-if-range)#channel-group 101

N5K-1(config)#inter Port-channel 101
N5K-1(config-if)#sw mode fex-fabric
N5K-1(config-if)#fex associate 101
N5K-1(config-if)#vpc 101

N5K-1(config)#int e1/22-23
N5K-1(config-if-range)#channel-group 102

N5K-1(config)#inter port-channel 102
N5K-1(config-if)#sw mode fex-fabric
N5K-1(config-if)#fex associate 102
N5K-1(config-if)#vpc 102

N5K-1(config)#cfs ipv4 distribute


N5K-1(config)#configure sync
N5K-1(config-sync)#switch-profile cisco
N5K-1(config-sync-sp)#sync-peers destination 10.1.1.62
N5K-1(config-sync-sp)#inter e101/1/1,e101/1/18,e102/1/1
N5K-1(config-sync-sp-if-range)#speed 1000
N5K-1(config-sync-sp-if-range)#channel-group 300 mode active
N5K-1(config-sync-sp-if-range)#exit
N5K-1(config-sync-sp)#inter port-channel 300
N5K-1(config-sync-sp-if)#sw mode trunk
N5K-1(config-sync-sp-if)#spanning-tree port type edge trunk
N5K-1(config-sync-sp-if)#exit
N5K-1(config-sync-sp)#verify
Verification Successful

N5K-1(config-sync-sp)#commit

建議:不要使用configure sync功能配置要啟動FCoE功能的介面,例如e101/1/1,e102/1/1

N5K-2配置:
配置N5K-2的配置同步
N5K-2(config)#cfs ipv4 distribute
N5K-2(config)#configure sync
N5K-2(config-sync)#switch-profile cisco
N5K-2(config-sync-sp)#sync-peers destination 10.1.1.61

配置FEX
N5K-2(config)#feature fex
N5K-2(config)#inter e1/20-21
N5K-2(config-if-range)#channel-group 102

N5K-2(config)#inter Port-channel 102
N5K-2(config-if)#sw mode fex-fabric
N5K-2(config-if)#fex associate 102
N5K-2(config-if)#vpc 102

N5K-2(config)#int e1/20-21
N5K-2(config-if-range)#channel-group 101

N5K-2(config)#inter port-channel 101
N5K-2(config-if)#sw mode fex-fabric
N5K-2(config-if)#fex associate 101
N5K-2(config-if)#vpc 101

檢視FEX狀態:
N5K-1#show vpc
FEX           FEX         FEX            FEX                 FEX
Number    Description    State          Model               Serial
------------------------------------------------------------------
101         FEX0101        Online      N2K-C2232PP-10GE   SSI182005S5
102         FEX0102        Online      N2K-C2232PP-10GE   SSI182300ZQ

N5K-2#show vpc
FEX           FEX         FEX            FEX                 FEX
Number    Description    State          Model               Serial
------------------------------------------------------------------
101         FEX0101        Online      N2K-C2232PP-10GE   SSI182005S5
102         FEX0102        Online      N2K-C2232PP-10GE   SSI182300ZQ

檢視Switch-profile:
N5K-1#show switch-profile peer details

switch-profile:cisco
----------------------------------------------------------------
Peer-IP-address                  :10.1.1.32
Peer-sync-status                    :In sync
Peer-status         :Commit Success
Peer-error(s)         :


N5K-1#show switch-profile status

switch-profile:cisco
----------------------------------------------------------------

Start-time:872742 usecs after Fri Jan 9 06:58:16 2017
End-time:123223 usecs after Fri Jan 9 06:58:22 2017

Profile-Revision:2
Session-type:Commit
Session-subtype:
Peer-triggered:No
Profile-status:Sync Success

Local information:
-------------------
Status:Commit Success
Error(s):

Peer Information:
Peer-IP-address          :10.1.1.32
Peer-sync-status     :In sync
Peer-status         :Commit Success
Peer-error(s)         :