码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-05-10 11:21:41      阅读:821      评论:0      收藏:0      [点我收藏+]

标签:华为路由器

技术分享图片
实验目的:两台主机互通
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之间的通信

标签:华为路由器

原文地址:http://blog.51cto.com/13721773/2114668

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!