天天看点

78、VLAN间路由配置实验之单臂路由

1、实验拓扑

<a href="http://s1.51cto.com/wyfs02/M00/78/76/wKioL1Z9B6SSEWcvAABGSl1UuwA298.png" target="_blank"></a>

2、实验配置

R1配置

interface FastEthernet0/0

no shut

interface FastEthernet0/0.10

encapsulation dot1Q 10

ip address 192.168.10.254 255.255.255.0

interface FastEthernet0/0.20

encapsulation dot1Q 20

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

interface FastEthernet0/3

switchport mode trunk

switchport nonegotiate

3、实验测试

<a href="http://s5.51cto.com/wyfs02/M00/78/78/wKiom1Z9B__TQ-7JAAAwDyOPSaE741.png" target="_blank"></a>

      本文转自开源殿堂 51CTO博客,原文链接:http://blog.51cto.com/kaiyuandiantang/1728350,如需转载请自行联系原作者

继续阅读