1. 组网需求
l 创建Super VLAN 10,VLAN接口的IP地址为10.0.0.1/24。
l 创建Sub VLAN:VLAN 2、VLAN 3、VLAN 5。
l 端口Ethernet1/0/1和端口Ethernet1/0/2属于VLAN 2,端口Ethernet1/0/3和端口Ethernet1/0/4属于VLAN 3,端口Ethernet1/0/5和端口Ethernet1/0/6属于VLAN 5。
l 各Sub VLAN的用户之间能够满足二层隔离和三层互通。
2. 组网图
图2-1 配置Super-vlan组网图
3. H3C配置步骤
# 创建VLAN 10,配置VLAN接口的IP地址为10.0.0.1/24。
<Sysname> system-view
[Sysname] vlan 10
[Sysname-vlan10] quit
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ip address 10.0.0.1 255.255.255.0
# 为实现Super VLAN特性,开启设备的本地代理功能。
[Sysname-Vlan-interface10] local-proxy-arp enable
[Sysname-Vlan-interface10] quit
# 创建VLAN 2,并添加端口Ethernet1/0/1和端口Ethernet1/0/2。
[Sysname] vlan 2
[Sysname-vlan2] port ethernet 1/0/1 ethernet 1/0/2
[Sysname-vlan2] quit
# 创建VLAN 3,并添加端口Ethernet1/0/3和端口Ethernet1/0/4。
[Sysname] vlan 3
[Sysname-vlan3] port ethernet 1/0/3 ethernet 1/0/4
[Sysname-vlan3] quit
# 创建VLAN 5,并添加端口Ethernet1/0/5和端口Ethernet1/0/6。
[Sysname] vlan 5
[Sysname-vlan5] port ethernet 1/0/5 ethernet 1/0/6
[Sysname-vlan5] quit
# 指定VLAN 10为Super VLAN,VLAN 2、VLAN 3和VLAN 5为Sub VLAN。
[Sysname] vlan 10
[Sysname-vlan10] supervlan
[Sysname-vlan10] subvlan 2 3 5
[Sysname-vlan10] quit
[Sysname] quit
4、华为配置步骤
<Huawei>system-view
[Huawei]port-group 1
#建立端口组1
[Huawei-port-group-1]gr
[Huawei-port-group-1]group-member g0/0/1 to g0/0/10
#添加1-10端口到1组
[Huawei-port-group-1]port link-type access
[Huawei-GigabitEthernet0/0/1]port link-type access
[Huawei-GigabitEthernet0/0/2]port link-type access
[Huawei-GigabitEthernet0/0/3]port link-type access
[Huawei-GigabitEthernet0/0/4]port link-type access
[Huawei-GigabitEthernet0/0/5]port link-type access
[Huawei-GigabitEthernet0/0/6]port link-type access
[Huawei-GigabitEthernet0/0/7]port link-type access
[Huawei-GigabitEthernet0/0/8]port link-type access
[Huawei-GigabitEthernet0/0/9]port link-type access
[Huawei-GigabitEthernet0/0/10]port link-type access
[Huawei-port-group-1]quit
[Huawei]vlan 10
#创建vlan10
[Huawei-vlan10]
[Huawei-vlan10]quit
[Huawei]int vlanif 10
[Huawei-Vlanif10]ip add 10.0.0.1 24
#配置vlan10 的接口地址
[Huawei-Vlanif10]quit
[Huawei]vlan batch 2 3 5
#创建vlan 2、3、5
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]vlan 2
[Huawei-vlan2]port GigabitEthernet 0/0/1 to 0/0/2
[Huawei-vlan2]quit
[Huawei]vlan 3
[Huawei-vlan3]
[Huawei-vlan3]port GigabitEthernet 0/0/3 to 0/0/4
[Huawei-vlan3]qu
[Huawei]vlan 5
[Huawei-vlan5]port GigabitEthernet 0/0/5 to 0/0/6
[Huawei-vlan5]quit
[Huawei]vlan 10
[Huawei-vlan10]aggregate-vlan
#启用vlan 10 聚合功能
[Huawei-vlan10]access-vlan 2 3 5
#加入想要聚合的vlan 2、3、5
[Huawei-vlan10]quit
[Huawei]int vlanif 10
[Huawei-Vlanif10]arp-proxy enable
#开启本地arp代理功能
[Huawei-Vlanif10]qu
#红色字为华为交换机与H3C交换机的vlan聚合区别
原文链接:https://www.f2er.com/javaschema/283154.html