本文记录一下华为交换机VLAN聚合实例配置

  • 创建VLAN聚合的VLAN
  • 设置VLAN聚合所需要的trunk链路
  • 划分VLAN
  • 配置三层交换机的VLAN聚合
  • 配置聚合VLAN的IP
  • 开启ARP代理
  • 配置客户机IP地址及网关
  • 测试

0x01 创建VLAN聚合的VLAN


<Huawei>sys

[Huawei]vlan batch 10 20 30

注:vlan的个数必须相同

0x02 设置VLAN聚合所需要的trunk链路


[Huawei]int g0/0/1

[Huawei-GigabitEthernet0/0/1]port link-type trunk

[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20

[Huawei]port-group group-member e0/0/1 e0/0/2

[Huawei-port-group]port link-type trunk

[Huawei-port-group]port trunk allow-pass vlan 10 20

注:Trunk链路不需要allow Vlan聚合的vlan

0x03 划分VLAN


[Huawei-GigabitEthernet0/0/1]int g0/0/2

[Huawei-GigabitEthernet0/0/2]port link-type access

[Huawei-GigabitEthernet0/0/2]port default vlan 10

[Huawei-GigabitEthernet0/0/2]int g0/0/3

[Huawei-GigabitEthernet0/0/3]port link-type access

[Huawei-GigabitEthernet0/0/3]port default vlan 20

0x04 配置三层交换机的VLAN聚合



[Huawei]vlan 30

[Huawei-vlan30]aggregate-vlan

[Huawei-vlan30]access-vlan 10 20

[Huawei-Vlanif30]ip address 192.168.0.100 16

[Huawei-Vlanif30]arp-proxy inner-sub-vlan-proxy enable

剩下的5~7步省略

0x05 测试

  • IP:192.168.0.1

  • getway:255.255.255.0

  • GW:192.168.0.100

  • PING 192.168.0.100

enter description here

Ping 192.168.2.1

enter description here

实验链接:http://pan.baidu.com/s/1mgix2h6 密码:1gz2