同一路由器不同vlan之间的通信(一)
2017-04-26 20:36
423 查看
还是废话不多说。第一步。看拓扑图。
先把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
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
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
pc0 CMD:
ping PC1
ping PC 3
资源下载 http://download.csdn.net/detail/lihuozhiling/7368489
先把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
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
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
pc0 CMD:
ping PC1
ping PC 3
资源下载 http://download.csdn.net/detail/lihuozhiling/7368489
相关文章推荐
- 华为eNSP路由器不同vlan之间的通信
- 同一路由器不同vlan之间的通信(一)
- 同一路由器不同vlan之间的通信(二)
- 同一路由器不同vlan之间的通信(一)
- 不同VLAN之间相互通信的两种方式(单臂路由、三层交换)
- 不同VLAN之间相互通信的两种方式
- 不同VLAN之间相互通信的两种方式(单臂路由、三层交换)
- 三层交换实现不同VLAN之间的通信 推荐
- 使用路由器实现不同VLAN间通信_路由交换
- packet tracer学习小结(不同VLan之间通信 DHCP中继)
- 不同VLAN之间相互通信的两种方式
- 不同VLAN之间就算没有三层设备也可以相互通信
- 相同VLAN在不同交换机之间相互通信
- 三层交换配路由不同(VLAN)6台PC之间通信(华为)
- 利用多层交换机实现不同VLAN之间的通信
- 思科模拟器DNCP,并实现不同Vlan之间的通信
- 配置单臂路由实现不同vlan之间的通信
- 不同vlan之间相互通信
- 路由器实现不同VLAN间通信
- 不同VLAN之间相互通信的两种方式(单臂路由、三层交换)