H3CNE 09 VLAN Trunk配置实例
<H3C>system-view [H3C]sysname sw1 华三交换机默认端口类型access [sw1]vlan 10 [sw1-vlan10]name caiwu [sw1-vlan10]description caiwuvlan [sw1-vlan10]quit [sw1]vlan 20 [sw1-vlan20]name fazhan [sw1-vlan20]description fazhanvlan [sw1-vlan20]quit [sw1]interface gigabitethernet 1/0/1 [sw1-GigabitEthernet1/0/1]port link-type access [sw1-GigabitEthernet1/0/1]port access vlan 10 [sw1]interface GigabitEthernet 1/0/2 [sw1-GigabitEthernet1/0/2]port link-type access [sw1-GigabitEthernet1/0/2]port access vlan 20 [sw1-GigabitEthernet1/0/2]quit [sw1]interface gigabitethernet 1/0/9 [sw1-GigabitEthernet1/0/9]port link-type trunk [sw1-GigabitEthernet1/0/9]port trunk permit vlan 10 20 [sw1-GigabitEthernet1/0/9]port trunk pvid vlan 10 [sw1-GigabitEthernet1/0/9]quit 第二台交换机配置相同(换个方式划端口) [sw2]vlan 10 [sw2-vlan10]name caiwu [sw2-vlan10]description caiwuvlan [sw2-vlan10]port GigabitEthernet 1/0/1 //这里能批量加入端口 如g1/0/1 to g1/0/24 |