配置PC
PC_2:192.168.1.1 掩码地址:255.255.255.0
PC_3:192.168.1.2 掩码地址:255.255.255.0
PC_4:192.168.1.3 掩码地址:255.255.255.0
PC_5:192.168.1.4 掩码地址:255.255.255.0
启动命令行终端配置(交换机1、交换机2)
vlan 10
vl 20
qu
int gi 1/0/1
port link-type access
port access vlan 10
qu
int gi 1/0/2
port link-type access
port access vlan 20
qu
int gi 1/0/48
port link-type trunk
port trunk permit vlan 10 20