5.5 VLAN聚合

1.基本概念

利用VLSM为一个IP子网合理分配多个VLAN。

超级VLAN(Super VLAN)分为:

Super-VLAN:父VLAN,用于关联Sub-VLAN,不包含物理接口,提供三层接口VALNIF。

Sub-VLAN:子VLAN,关联到Super-VLAN,添加物理接口,公用Super-VLAN提供的VALNIF。

2.基本配置

图片[1]-5.5 VLAN聚合-大赛人网
图5-10  VLAN聚合网络拓扑

1)SW2配置

[sw2]vlan batch 12
[sw2]interface GigabitEthernet 0/0/1
[sw2-GigabitEthernet0/0/1]port link-type access 
[sw2-GigabitEthernet0/0/1]port default vlan 12
[sw2-GigabitEthernet0/0/1]quit
[sw2]interface GigabitEthernet 0/0/2
[sw2-GigabitEthernet0/0/2]port link-type access 
[sw2-GigabitEthernet0/0/2]port default vlan 12
[sw2-GigabitEthernet0/0/2]quit
[sw2]interface GigabitEthernet 0/0/24
[sw2-GigabitEthernet0/0/24]port link-type trunk 
[sw2-GigabitEthernet0/0/24]port trunk allow-pass vlan 12

2)SW3配置

[sw3]vlan batch 34
[sw3]interface GigabitEthernet 0/0/1
[sw3-GigabitEthernet0/0/1]port link-type access 
[sw3-GigabitEthernet0/0/1]port default vlan 34
[sw3-GigabitEthernet0/0/1]quit
[sw3]interface GigabitEthernet 0/0/2
[sw3-GigabitEthernet0/0/2]port link-type access 
[sw3-GigabitEthernet0/0/2]port default vlan 34
[sw3-GigabitEthernet0/0/2]quit
[sw3]interface GigabitEthernet 0/0/24
[sw3-GigabitEthernet0/0/24]port link-type trunk 
[sw3-GigabitEthernet0/0/24]port trunk allow-pass vlan 34

3)SW1配置

[sw1]vlan batch 12 34
[sw1]vlan 100
[sw1-vlan100]aggregate-vlan 
[sw1-vlan100]access-vlan 12 34
[sw1]interface Vlanif 100
[sw1-Vlanif100]ip address 192.168.100.254 24

[sw1]interface GigabitEthernet 0/0/23
[sw1-GigabitEthernet0/0/23]port link-type trunk 
[sw1-GigabitEthernet0/0/23]port trunk allow-pass vlan 12
[sw1-GigabitEthernet0/0/23]quit
[sw1]interface GigabitEthernet 0/0/24
[sw1-GigabitEthernet0/0/24]port link-type trunk 
[sw1-GigabitEthernet0/0/24]port trunk allow-pass vlan 34

4)SW1配置ARP代理实现VLAN12和VLAN34互通

[sw1]interface Vlanif 100
[sw1-Vlanif100]arp-proxy inter-sub-vlan-proxy enable 
© 版权声明
THE END
喜欢就支持一下吧
点赞14 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称

    请登录后查看评论内容