etherchannel 設定不當的 error disable
我們兩台交換器四條對接,在沒有設定etherchanel的時候,spanning幫我們block三個port避免loop。
interface range fastEthernet 0/1 - 4
channel-group 1 mode on
exit
interface port-channel 1
switchport trunk encapsulation dot1q
switchport mode trunk
exit
由於etherchannel 四個 port 的設定必須一致(比方說速度、vlan、雙工)才可以綁在一起,所以我習慣使用四個沒有設定的port,然後先用range的方式先綁起來,只在port-channel上設定,他會再把設定寫回四個port的interface上,這裡範例我們使用on,硬開,就是不使用LACP和PAGP協定溝通。
interface Port-channel1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
!
interface FastEthernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
!
interface FastEthernet0/3
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
!
interface FastEthernet0/4
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
!
我們在Port-channel上的設定都會寫回 FastEthernet0/1 - 4 。
我們才設定完沒多久,就看到以下訊息。
*Mar 1 01:22:57.774: %PM-4-ERR_DISABLE: channel-misconfig (STP) error detected on Po1, putting Po1 in err-disable state
用指令去看,確實都進入了err-disabled 狀態。
這個時候你再把另一邊用相同的指令設定起來也沒用,都是down的狀態。
我們知道要解除error disable狀態就是進入介面打shutdown然後再 no shutdown。
最後在show 一次 etherchannel的狀態就有在正常運作了。
結論:
通常在設定etherchannel的時候,都會建議把port先shutdown,不然就是先拔線設定好之後再接回,原因是因為你不可能兩邊同時設定完,在一邊有綁另一邊沒有綁或兩邊設定不一致的情況下有可能會進入到error disable的狀態。
留言
張貼留言