华为eNSP路由器不同vlan之间的通信

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了华为eNSP路由器不同vlan之间的通信相关的知识,希望对你有一定的参考价值。

技术分享图片
实验目的:两台主机互通
AR11
<Huawei>undo terminal monitor
Info: Current terminal monitor is off.
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 192.168.1.254 24
[Huawei-GigabitEthernet0/0/0]q
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 192.168.2.1 24
[Huawei-GigabitEthernet0/0/1]q
[Huawei]ip route-static 192.168.4.0 24 192.168.2.2
[Huawei]ip route-static 192.168.3.0 24 192.168.2.2
AR12
<Huawei>undo terminal monitor
Info: Current terminal monitor is off.
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 192.168.2.2 24
[Huawei-GigabitEthernet0/0/0]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 192.168.3.1 24
[Huawei-GigabitEthernet0/0/1]q
Enter system view, return user view with Ctrl+Z.
[Huawei]ip route-static 192.168.1.0 24 192.168.2.1
[Huawei]ip route-static 192.168.4.0 24 192.168.3.2
AR13
<Huawei>undo terminal monitor
Info: Current terminal monitor is off.
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 192.168.3.2 24
[Huawei-GigabitEthernet0/0/0]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 192.168.4.254 24
[Huawei-GigabitEthernet0/0/1]q
Enter system view, return user view with Ctrl+Z.
[Huawei]ip route-static 192.168.2.0 24 192.168.3.1
[Huawei]ip route-static 192.168.1.0 24 192.168.3.1
实验:两台主机互ping

以上是关于华为eNSP路由器不同vlan之间的通信的主要内容,如果未能解决你的问题,请参考以下文章

华为eNSP浮动路由实现不同vlan之间的通信

华为eNSP多层交换机不同vlan之间的通信

华为eNSP交换机实现不同网络之间的通信

玩转华为ENSP模拟器系列 | 配置基于接口划分VLAN示例

三层交换配路由不同(VLAN)6台PC之间通信(华为)

ensp给接口设置ip为啥路由器不用建vlan而交换机需要?