提醒:由于模拟器不支持super vlan,即使理论上配置都对,PC、SWB之间依然是ping不通的,并且PC ping自己的网关都不通。为了验证super vlan配置是否正确,可以使用display supervlan这条命令查看映射关系。
配置命令如下:
[SW1]dis vlan
Total VLANs: 5
The VLANs include:
1(default), 2-3, 10, 20
[SW1-GigabitEthernet1/0/1]dis this
#
interface GigabitEthernet1/0/1
port access vlan 2
[SW1-GigabitEthernet1/0/2]dis this
#
interface GigabitEthernet1/0/1
port access vlan 3
[SW1]vlan 10
[SW1-vlan10]dis this
#
vlan 10
supervlan
subvlan 2 to 3