F0/1
F0/3
F0/5
ip :192.168.10.2 ip :192.168.10.3 gw:192.168.10.1 gw:192.168.10.1
switchA:vlan 10,20,30
vlan 10:subvlan
vlan 20:supervlan
vlan 30:subvlan
vlan 20:192.168.10.1
vlan 20:subvlan-address-range:192.168.10.2 192.168.10.50
vlan 30:subvlan-address-range:192.168.10.51 192.168.10.100
实验要求
<1>设备要求
一台三层交换机,接三个PC <2>网络要求
三层交换机配置supervlan实现不同vlan相同子网的通信 实验配置如下: switchA>enable
switchA#config terminal switchA(config)#vlan 10
switchA(config-vlan)#subvlan-address-range 192.168.10.2 192.168.10.50 switchA(config-vlan)#vlan 30
switchA(config-vlan)#subvlan-address-range 192.168.10.51 192.168.10.100 switchA(config-vlan)#vlan 20 switchA(config-vlan)#supervlan switchA(config-vlan)#subvlan 10,30 switchA(config-vlan)#exit
switchA(config)#interface vlan 20
switchA(config-if)#ip address 192.168.10.1 255.255.255.0 switchA(config-if)#no shut switchA(config-if)#exit
ip :192.168.10.51 gw:192.168.10.1
switchA(config)#interface f0/1
switchA(config-if)#switchport access vlan10 switchA(config-if)#no shut switchA(config-if)#exit
switchA(config)#interface f0/3
switchA(config-if)#switchport access vlan 10 switchA(config-if)#no shut switchA(config-if)#exit
switchA(config)#interface f0/5
switchA(config-if)#switchport access vlan 30 switchA(config-if)#no sut switchA(config-if)#exit switchA(config)#end