最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

华为eNSP--4多个路由器连接配置(静态路由)

业界 admin 15浏览 0评论

R1路由器的配置

[Huawei]int e0/0/0
[Huawei-Ethernet0/0/0]ip add 192.168.1.10 24
[Huawei-Ethernet0/0/0]int e0/0/1
[Huawei-Ethernet0/0/1]ip add 192.168.12.1 24
[Huawei-Ethernet0/0/1]ip route-static 0.0.0.0 0.0.0.0 192.168.12.2

R2路由器的配置

[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]ip add 192.168.23.2 24
[Huawei-Ethernet0/0/1]int e0/0/0
[Huawei-Ethernet0/0/0]ip add 192.168.12.2 24
[Huawei]ip route-static 192.168.1.0 255.255.255.0 192.168.12.1  //是将PC1处的网段地址 与R1路由器与R2路由器连接处的地址连接
[Huawei]ip route-static 192.168.3.0 255.255.255.0 192.168.23.3   //是将PC3处的网段地址 与R2路由器与R3路由器连接处的地址连接

R3路由器的配置

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo in en
Info: Information center is disabled.
[Huawei]int e0/0/0
[Huawei-Ethernet0/0/0]ip add 192.168.23.3 24
[Huawei-Ethernet0/0/0]int e0/0/1
[Huawei-Ethernet0/0/1]ip add 192.168.3.10 24
[Huawei-Ethernet0/0/1]ip route-static 0.0.0.0 0.0.0.0 192.168.23.2

R1路由器的配置

[Huawei]int e0/0/0
[Huawei-Ethernet0/0/0]ip add 192.168.1.10 24
[Huawei-Ethernet0/0/0]int e0/0/1
[Huawei-Ethernet0/0/1]ip add 192.168.12.1 24
[Huawei-Ethernet0/0/1]ip route-static 0.0.0.0 0.0.0.0 192.168.12.2

R2路由器的配置

[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]ip add 192.168.23.2 24
[Huawei-Ethernet0/0/1]int e0/0/0
[Huawei-Ethernet0/0/0]ip add 192.168.12.2 24
[Huawei]ip route-static 192.168.1.0 255.255.255.0 192.168.12.1  //是将PC1处的网段地址 与R1路由器与R2路由器连接处的地址连接
[Huawei]ip route-static 192.168.3.0 255.255.255.0 192.168.23.3   //是将PC3处的网段地址 与R2路由器与R3路由器连接处的地址连接

R3路由器的配置

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo in en
Info: Information center is disabled.
[Huawei]int e0/0/0
[Huawei-Ethernet0/0/0]ip add 192.168.23.3 24
[Huawei-Ethernet0/0/0]int e0/0/1
[Huawei-Ethernet0/0/1]ip add 192.168.3.10 24
[Huawei-Ethernet0/0/1]ip route-static 0.0.0.0 0.0.0.0 192.168.23.2

发布评论

评论列表 (0)

  1. 暂无评论