概念:Super VLAN概念 Super VLAN又称为VLAN聚合(VLAN Aggregation),其原理是一个Super VLAN包含多个Sub VLAN,每个Sub VLAN是一个广播域,不同Sub VLAN之间二层相互隔离。Super VLAN可以配置三层接口,Sub VLAN不能配置三层接口。 当Sub VLAN内的用户需要进行三层通信时,将使用Super VLAN三层接口的IP地址作为网关地址,这样多个Sub VLAN共用一个IP网段,从而节省了IP地址资源。
一、实验拓扑:
二、实验配置:
首先PC都配置好IP
在DC上配置:
<Huawei>system-view
[Huawei]sysname DC
[DC]vlan batch 10 11 12 5
[DC]vlan 5
[DC-vlan5]aggregate-vlan
[DC-vlan5]access-vlan10 11 12
[DC]interface Vlanif5
[DC-Vlanif5]arp-proxyinner-sub-vlan-proxy enable
[DC-Vlanif5]ipaddress 192.168.0.1 24
[DC-Vlanif5]ipaddress 192.168.1.1 24 sub
[DC]interfaceGigabitEthernet 0/0/2
[DC-GigabitEthernet0/0/2]portlink-type access
[DC-GigabitEthernet0/0/2]port default vlan 10
[DC]interfaceGigabitEthernet 0/0/4
[DC-GigabitEthernet0/0/4]port link-type access
[DC-GigabitEthernet0/0/4]port default vlan 12
[DC]interfaceGigabitEthernet 0/0/3
[DC-GigabitEthernet0/0/3]portlink-type access
[DC-GigabitEthernet0/0/3]portdefault vlan 11
[DC]vlan 1151
[DC]interface GigabitEthernet 0/0/1
[DC-GigabitEthernet0/0/1]port link-type access
[DC-GigabitEthernet0/0/1]port default vlan 1151
[DC]interface Vlanif 1151
[DC-Vlanif1151]ipaddress 10.1.1.1 30
[DC]ip route-static 112.65.232.2 255.255.255.0 10.1.1.2
在CTC上配置
<Huawei>system-view
[Huawei]sysname CTC
[CTC]interfaceGigabitEthernet0/0/1
[CTC-GigabitEthernet0/0/1]ipaddress 10.1.1.2 30
[CTC]interfaceGigabitEthernet0/0/2
[CTC-GigabitEthernet0/0/2]ipaddress 112.65.232.1 24
[CTC]ip route-static192.168.0.0 24 10.1.1.1
[CTC]ip route-static192.168.1.0 24 10.1.1.1