1,实验拓扑
2,实验配置
R1配置接口FastEthernet0/0
没有关闭
界面FastEthernet0/0.10
封装dot1Q 10 ip地址192.168.10.254 255.255.255.0接口FastEthernet0/0.20
封装dot1Q 20
ip地址192.168.20.254 255.255.255.0
S2配置
VLAN 10
VLAN 20接口FastEthernet0/1
switchport访问VLAN 10
switchport模式访问扩充树portfast接口FastEthernet0/2
switchport访问VLAN 20
switchport模式访问扩充树portfast接口FastEthernet0/3
switchport模式树干
switchport nonegotiate
3,实验测试