还是废话不多说。第一步。看拓扑图。

同一路由器不同vlan之间的通信(一)


同一路由器不同vlan之间的通信(一)

先把pc上的ip都配好。

開始设置

switch0:

>en

>conf t

>vlan 2

>exit

>int fa 0/1

>switchport access vlan 2

>exit

>int fa 0/2

>switchport access vlan 2

>exit

>int fa 0/3

>switchport mode trunk 

>end

同一路由器不同vlan之间的通信(一)

同一路由器不同vlan之间的通信(一)

switch1:

>en

>conf t

>vlan 3

>exit

>int fa 0/1

>switchport access vlan 3

>exit

>int fa 0/2

>switchport access vlan 3

>exit

>int fa 0/3

>switchport mode trunk 

>end

同一路由器不同vlan之间的通信(一)

同一路由器不同vlan之间的通信(一)

Router0:

>enable

>configure terminal

>interface fastEthernet 0/0

>no ip adderss     //清除ip

>no shutsown

>exit

>interface fastEthernet 0/0.1     //子接口设置

>encapsulation dot1Q 2    //封装协议 连到vlan 2

>ip address 192.168.0.1 255.255.255.0

>exit

>interface fastEthernet 0/1

>no ip adderss     //清除ip

>no shutsown

>exit

>interface fastEthernet 0/1.1     //子接口设置

>encapsulation dot1Q 3   //封装协议 连到vlan 3

>ip address 192.168.1.1 255.255.255.0

>end

同一路由器不同vlan之间的通信(一)

同一路由器不同vlan之间的通信(一)

pc0  CMD:

ping PC1

同一路由器不同vlan之间的通信(一)

同一路由器不同vlan之间的通信(一)

ping PC 3

同一路由器不同vlan之间的通信(一)

同一路由器不同vlan之间的通信(一)



资源下载   http://download.csdn.net/detail/lihuozhiling/7368489



相关文章:

  • 2021-12-12
  • 2021-07-30
  • 2021-11-18
  • 2021-08-21
  • 2021-07-24
  • 2021-12-25
  • 2021-11-30
  • 2021-12-09
猜你喜欢
  • 2021-05-20
  • 2021-04-09
  • 2022-01-18
  • 2021-07-24
  • 2021-05-17
  • 2021-05-17
  • 2021-09-11
相关资源
相似解决方案