实验五:VLAN的干道模式
1、两台交换机,左边交换机接四台PC主机,右边交换机接两台PC主机,左边PC3,PC4和右边PC7为VLAN 10,右边PC5,PC6和右边PC8为为VLAN 20;
2、接着给每台PC主机配置IP地址:PC3--PC8分别为192.168.1.1--192.168.1.6
3、配置交换机
左边交换机:
system-view
sysname sw1
vlan 10
vlan 20
quit
interface range GigabitEthernet 1/0/1 to GigabitEthernet 1/0/2
port link-type access
port access vlan 10
quit
interface range GigabitEthernet 1/0/3 to GigabitEthernet 1/0/4
port link-type access
port access vlan 20
右边交换机:
system-view
sysname sw2
vlan 10
vlan 20
quit
interface GigabitEthernet 1/0/1
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/2
port link-type access
port access vlan 20
quit
4、测试
相同VLAN 的PC间的连通