VLAN聚合
分析图解-拓扑
拆分-1
拓扑
命令
拆分-1
LSW1
<Huawei>SYS
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]vlan batch 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]interface g0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type access #接口设为access,加入VLAN
[Huawei-GigabitEthernet0/0/1]port default vlan 10
[Huawei-GigabitEthernet0/0/1]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type access
[Huawei-GigabitEthernet0/0/2]port default vlan 20
[Huawei-GigabitEthernet0/0/2]q
[Huawei]vlan 100 #创建Super-vlan
[Huawei-vlan100]aggregate-vlan #创建Super-vlan
[Huawei-vlan100]access-vlan 10 20 #将VLAN10 20 作为VLAN100的Sub-VLAN
[Huawei-vlan100]interface vlanif 100
[Huawei-Vlanif100]ip address 192.168.1.254 24
[Huawei-Vlanif100]arp-proxy inter-sub-vlan-proxy enable #使能Sub-VLAN间的proxy-ARP功能
[Huawei-Vlanif100]q
整体命令(省略上文)
[sb-Vlanif100]q
[sb]int g0/0/3
[sb-GigabitEthernet0/0/3]q
[sb]vlan 200
[sb-vlan200]aggregate-vlan
[sb]int g0/0/3
[sb-GigabitEthernet0/0/3]port link-type access
[sb-GigabitEthernet0/0/3]port default vlan 300
[sb-GigabitEthernet0/0/3]int vlanif 300
[sb-Vlanif200]ip address 192.168.200.254 24
Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sysname SC
[SC]vlan 10
[SC-vlan10]int g0/0/2
[SC-GigabitEthernet0/0/2]port link-type access
[SC-GigabitEthernet0/0/2]port default vlan 300
Error: The VLAN does not exist.
[SC-GigabitEthernet0/0/2]port default vlan 10
[SC-GigabitEthernet0/0/2]int g0/0/1
[SC-GigabitEthernet0/0/1]port link-type trunk
[SC-GigabitEthernet0/0/1]port trunk allow-pass vlan 10
[SC-GigabitEthernet0/0/1]q
[SC]q
LSW4
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sysname Sd
[Sd]vlan 20
[Sd-vlan20]int g0/0/2
[Sd-GigabitEthernet0/0/2]port link-type access
[Sd-GigabitEthernet0/0/2]port default vlan 20
[Sd-GigabitEthernet0/0/2]int g0/0/1
[Sd-GigabitEthernet0/0/1]port link-type trunk
[Sd-GigabitEthernet0/0/1]port trunk allow-pass vlan 20
[Sd-GigabitEthernet0/0/1]q
[Sd]q
结果