Connectrix - MDS 系列 Cisco:如何使用 CLI 建立連接埠通道
Summary: 如何使用 CLI 在 Cisco 交換器上建立連接埠通道
Instructions
如何在 Cisco 交換器上建立連接埠通道
步驟 1:在交換器 1 上:
- 建立連接埠通道。
switch1# config terminal
Enter configuration commands, one per line, ending with CNTL/Z.
switch1(config)# interface fc1/1, fc2/1
switch1(config-if)# channel-group 2
FC1/1 FC2/1 新增至連接埠通道 2 並已停用。
在連接埠通道另一端的交換器上執行相同的作業然後在兩端執行「no shutdown」以將其啟動switch1(config-if)# switchport description "To switch2 PortChannel2"
- 啟用中繼 (TE) 並在交換器 1 上設定 VSAN 允許清單
switch1# config terminal
switch1(config)# int port-channel 2
switch1(config-if)# switchport trunk mode on
switch1(config-if)# switchport trunk allowed vsan 1
switch1(config-if)# switchport trunk allowed vsan add 10
步驟 2:在交換器 2 上:
- 在交換機 2 上創建埠通道,包括設置描述。
switch2# config terminal
Enter configuration commands, one per line, ending with CNTL/Z.
switch2(config)# interface fc1/1, fc2/1
switch2(config-if)# channel-group 2
FC1/1 FC2/1 新增至連接埠通道 2 並已停用。
在連接埠通道另一端的交換器上執行相同的作業然後在兩端執行「no shutdown」以將其啟動switch2(config-if) # switchport description "To switch1 PortChannel2"
- 啟用中繼 (TE) 並在交換器 1 上設定 VSAN 允許清單
switch2# config terminal
switch2(config)# int port-channel 2
switch2(config-if)# switchport trunk mode on
switch2(config-if)# switchport trunk allowed vsan 1
switch2(config-if)# switchport trunk allowed vsan add 10
步驟 3:啟用介面以開啟連接埠通道:
- 開關 1:
switch1# config terminal
Enter configuration commands, one per line, ending with CNTL/Z.
switch1(config)# interface fc1/1, fc2/1
switch1(config-if)# no shut - 開關 2:
switch2# config terminal
Enter configuration commands, one per line, ending with CNTL/Z.
switch2(config)# interface fc1/1, fc2/1
switch2(config-if)# no shut
步驟 4:驗證連接埠通道已出現:
switch1# show interface port-channel 2
port-channel 2 is trunking
Port description is To switch2 PortChannel2
Hardware is Fibre Channel
Port WWN is 24:02:00:0c:85:e9:d2:c0
Admin port mode is E, trunk mode is on
Port mode is TE
Port vsan is 1
Speed is 4 Gbps
Trunk vsans (admin allowed and active) (1,10)Trunk vsans (up) (1,10)Trunk vsans (isolated) ()Trunk vsans (initializing) ()
5 minutes input rate 64 bits/sec, 8 bytes/sec, 0 frames/sec
5 minutes output rate 56 bits/sec, 7 bytes/sec, 0 frames/sec 78296342 frames input, 72311141128 bytes 0 discards, 0 errors
0 CRC, 0 unknown class
0 too long, 0 too short
56299070 frames output, 26061293700 bytes
0 discards, 0 errors
0 input OLS, 2 LRR, 0 NOS, 0 loop inits
4 output OLS, 2 LRR, 0 NOS, 0 loop inits
Member[1] : fc1/2
Member[2] : fc2/1
Additional Information
連接埠通道可將多個 FC 或 FCIP 連結彙總為單一高速容錯 FC 或 FCIP ISL。只要完成組態,它就與單一連結 FC 或 FCIP ISL 具有相同的組態選項。
有關更多資訊,請參閱思科的配置埠通道文檔。
請參閱此發佈的影片: