【Cisco】Etherchannel - Rafael Lab

Breaking

BANNER 728X90

2018年10月6日 星期六

【Cisco】Etherchannel


一、好處

  • 提升頻寬 Bandwidth
  • 備援線路 Redundancy


二、作法

        將SW1的port1-2和SW2的port1-2作Etherchannel

(一)Static On Mode
1.關閉 SW1的port1-2和SW2的port1-2

  • SW1(config)# interface range gi1/0/1-2
  • SW1(config)# shutdown

  • SW2(config)# interface range gi1/0/1-2
  • SW2(config)# shutdown
2.將 port1-2 分別放入Channel-Group

  • SW1(config)# interface range gi1/0/1-2
  • SW1(config)# channel-group 1 mode on
  • Creating a port-channel interface Port-channel 1

  • SW2(config)# interface range gi1/0/1-2
  • SW2(config)#channel-group 1 mode on
  • Creating a port-channel interface Port-channel 1
3.開啟 SW1的port1-2和SW2的port1-2

  • SW1(config)# interface range gi1/0/1-2
  • SW1(config)# no shutdown

  • SW2(config)# interface range gi1/0/1-2
  • SW2(config)# no shutdown
4.觀察 Etherchannel 運作
  • SW1# show etherchannel summary
Flags:  D - down        P - bundled in port-channel
        I - stand-alone s - suspended
        H - Hot-standby (LACP only)
        R - Layer3      S - Layer2
        U - in use      f - failed to allocate aggregator
        M - not in use, minimum links not met
        u - unsuitable for bundling
        w - waiting to be aggregated
        d - default port 
Number of channel-groups in use: 1
Number of aggregators:           1
Group  Port-channel  Protocol    Ports
------+-------------+-----------+-----------------------------------------------
1            Po1(SU)            -           Gi1/0/1(P)  Gi1/0/2(P)  
5.顯示port-channel 1 介面
  • SW1# show interface port-channel 1
Port-channel1 is up, line protocol is up (connected)
  Hardware is EtherChannel, address is 64d8.14c0.f009 (bia 64d8.14c0.f009)
  MTU 1500 bytes, BW 2000000 Kbit/sec, DLY 10 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)

(二)PAgP-- Port Aggregation Protocol(Cisco)

       除第2步驟不同,必須兩個Switch至少有一方為 desireable,其餘步驟與前述方法相同。

2.將 port1-2 分別放入Channel-Group
  • SW1(config)# interface range gi1/0/1-2
  • SW1(config)# channel-group 1 mode desireable
  • Creating a port-channel interface Port-channel 1
  • SW2(config)# interface range gi1/0/1-2
  • SW2(config)#channel-group 1 mode auto
  • Creating a port-channel interface Port-channel 1


(三)LACP--Ling Aggregation Control Protocol(IEEE 802.3ad)

      除第2步驟不同,必須兩個Switch一方為 active,一方為passive,其餘步驟與前述方法相同。

2.將 port1-2 分別放入Channel-Group
  • SW1(config)# interface range gi1/0/1-2
  • SW1(config)# channel-group 1 mode active
  • Creating a port-channel interface Port-channel 1
  • SW2(config)# interface range gi1/0/1-2
  • SW2(config)#channel-group 1 mode passive
  • Creating a port-channel interface Port-channel 1



三、參考資料:




沒有留言:

張貼留言