舊設備上的設定2960 10/100
interface FastEthernet0/23
duplex full
port group 1
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1-4,132,133,1002-1005
switchport mode trunk
!
interface FastEthernet0/24
duplex full
port group 1
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1-4,132,133,1002-1005
switchport mode trunk
我將設定要改設定到最近新購的2960 10/100/1000 48PORT
要將兩台舊的2960設定轉移至新的設備但是在TRUNK PORT上
!
interface GigabitEthernet0/47
switchport trunk allowed vlan 1-4,132,133,1002-1005
switchport mode trunk
!
interface GigabitEthernet0/48
switchport trunk allowed vlan 1-4,132,133,1002-1005
switchport mode trunk
新設備上發現
無法設定
switchport trunk encapsulation dot1q
可用模式
Enter configuration commands, one per line. End with CNTL/Z.
2960L(config)#int
2960L(config)#interface g
2960L(config)#interface ga
2960L(config)#interface GigabitEthernet0/46
2960L(config-if)#ch
2960L(config-if)#channel-gr
2960L(config-if)#channel-group 1 mo
2960L(config-if)#channel-group 1 mode ?
active Enable LACP unconditionally
auto Enable PAgP only if a PAgP device is detected
desirable Enable PAgP unconditionally
on Enable Etherchannel only
passive Enable LACP only if a LACP device is detected
2960L(config-if)#channel-group 1 mode
2960L(config-if)#sw
2960L(config-if)#switchport tr
2960L(config-if)#switchport trunk ?
allowed Set allowed VLAN characteristics when interface is in trunking mode
native Set trunking native characteristics when interface is in trunking
mode
pruning Set pruning VLAN characteristics when interface is in trunking mode
channel-group 設定完後
會成為一個邏輯的 interface
設定會吃個 邏輯 interface
而原本的 interface 設定大部分會被忽略
包含 trunk
所以設定應該是如此
舊的 switch
在 config mode
interface range FastEthernet0/23-24
port group 1
exit
interface port group 1
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1-4,132,133,1002-1005
switchport mode trunk
exit
新的 switch
interface range GigabitEthernet0/47-48
channel-group 1 mode auto
exit
interface channel-group 1
switchport trunk allowed vlan 1-4,132,133,1002-1005
switchport mode trunk
exit
韌體不一樣
語法會稍微不同
請再自行看官方文件轉一下