trunk 1 ethernet 1 to 2 vlan 2 untagged ethernet 1 to 2 router-interface ve 2 interface ve 2 ip address 172.16.0.20 255.255.255.0
交换机端简单配置
interface Port-channel4 interface GigabitEthernet1/0/3 channel-group 4 mode on spanning-tree portfast ! interface GigabitEthernet1/0/4 channel-group 4 mode on spanning-tree portfast !
华为交换机
undo port-group A10 undo port-group A102 45 47;46 48 聚合成一个端口 interface eth-trunk 1 port link-type trunk port trunk allow-pass vlan all bpdu enable ntdp enable ndp enable quit interface gi 0/0/45 undo port link-type undo port default vlan bpdu disable undo ntdp enable undo ndp enable undo port trunk allow-pass vlan all eth-trunk 1 interface gi 0/0/47 undo port link-type undo port default vlan bpdu disable undo ntdp enable undo ndp enable undo port trunk allow-pass vlan all eth-trunk 1
思科交换机
gz-c3560-1-s61-11f-11#show run inter port-channel 37 Building configuration... Current configuration : 132 bytes ! interface Port-channel37 switchport trunk encapsulation dot1q switchport trunk allowed vlan 2,45,75 switchport mode trunk end gz-c3560-1-s61-11f-11#show run inter g0/37 Building configuration... Current configuration : 180 bytes ! interface GigabitEthernet0/37 description A10 switchport trunk encapsulation dot1q switchport trunk allowed vlan 2,45,75 switchport mode trunk channel-group 37 mode on end gz-c3560-1-s61-11f-11# ct-c4506-1-s96-2f-i8-n397#show run inter port-channel 4 Building configuration... Current configuration : 159 bytes ! interface Port-channel4 description AX2100-1 switchport switchport trunk allowed vlan 1 switchport trunk encapsulation dot1q switchport mode trunk end ct-c4506-1-s96-2f-i8-n397#show run inter g6/3 Building configuration... Current configuration : 181 bytes ! interface GigabitEthernet6/3 description AX2100-1-e10 switchport trunk encapsulation dot1q switchport trunk allowed vlan 1 switchport mode trunk channel-group 4 mode on end ct-c4506-1-s96-2f-i8-n397#show run inter g6/4 Building configuration... Current configuration : 181 bytes ! interface GigabitEthernet6/4 description AX2100-1-e11 switchport trunk encapsulation dot1q switchport trunk allowed vlan 1 switchport mode trunk channel-group 4 mode on end ct-c4506-1-s96-2f-i8-n397#show run inter g6/5 Building configuration... Current configuration : 155 bytes ! interface GigabitEthernet6/5 switchport trunk encapsulation dot1q switchport trunk allowed vlan 1 switchport mode trunk channel-group 4 mode on end
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。