1.基本概念
利用VLSM为一个IP子网合理分配多个VLAN。
超级VLAN(Super VLAN)分为:
Super-VLAN:父VLAN,用于关联Sub-VLAN,不包含物理接口,提供三层接口VALNIF。
Sub-VLAN:子VLAN,关联到Super-VLAN,添加物理接口,公用Super-VLAN提供的VALNIF。
2.基本配置
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
请登录后查看评论内容