1、实验拓扑
2、实验配置
S1配置
ip routing
vlan 10
vlan 20
interface FastEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
interface Vlan10
ip address 192.168.10.254 255.255.255.0
interface Vlan20
ip address 192.168.20.254 255.255.255.0
S2配置
vlan 10
vlan 20
interface FastEthernet0/1
switchport access vlan 10
switchport mode access
spanning-tree portfast
interface FastEthernet0/2
switchport access vlan 20
switchport mode access
spanning-tree portfast
interface FastEthernet0/3
switchport mode trunk
switchport nonegotiate
3、实验测试
本文出自 “开源殿堂” 博客,请务必保留此出处http://kaiyuandiantang.blog.51cto.com/10699754/1728346
原文地址:http://kaiyuandiantang.blog.51cto.com/10699754/1728346