标签:start enter man span vlan间通信 family art 3.2 psu
一、实验目的:用路由器使同和不同vlan可以通信
二、拓扑图如下
三、具体步骤:
(1)R1路由器配置:
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#interface f0/0
R1(config-if)#no shutdown
R1(config-if)#interface f0/0.1
R1(config-subif)#encapsulation dot1q 10
R1(config-subif)#ip address 192.168.1.254 255.255.255.0
R1(config-subif)#interface f0/0.2
R1(config-subif)#encapsulation dot1q 20
R1(config-subif)#ip address 192.168.2.254 255.255.255.0
R1(config-subif)#interface f0/0.3
R1(config-subif)#encapsulation dot1q 30
R1(config-subif)#ip address 192.168.3.254 255.255.255.0
R1(config-subif)#interface f0/0.4
R1(config-subif)#encapsulation dot1q 40
R1(config-subif)#ip address 192.168.4.254 255.255.255.0
R1(config-subif)#end
R1#copy running-config startup-config
[OK]
标签:start enter man span vlan间通信 family art 3.2 psu
原文地址:https://www.cnblogs.com/evolve/p/9185554.html