静态路由配置

image

1、配置路由器R1

<Huawei>system-view
[Huawei]sysname AR1
[AR1]int s 0/0/0
[AR1-Serial0/0/0]ip add 12.1.1.1 24
[AR1-Serial0/0/0]q
[AR1]int LoopBack 0
[AR1-LoopBack0]ip add 11.1.1.1 24
[AR1-LoopBack0]q

2、配置路由器R2

[Huawei]sysname AR2
[AR2]int s0/0/0
[AR2-Serial0/0/0]ip add 12.1.1.2 24
[AR2-Serial0/0/0]int g 0/0/0
[AR2-GigabitEthernet0/0/0]ip add 10.1.1.2 24

3、配置路由器R3

[Huawei]sysname AR3
[AR3]int g0/0/0
[AR3-GigabitEthernet0/0/0]ip add 100.1.1.3 24
[AR3]int LoopBack 0
[AR3-LoopBack0]ip add 33.1.1.1 24

4、配置路由器R4

<Huawei>system-view
[Huawei]sysname AR4
[AR4]int g 0/0/0
[AR4-GigabitEthernet0/0/0]ip add 100.1.1.4 24
[AR4]int LoopBack 0
[AR4-LoopBack0]ip add 44.1.1.1 24

5、在路由器R1上配置静态路由

[AR1]ip route-static 33.1.1.0 24 12.1.1.2
[AR1]ip route-static 100.1.1.0 255.255.255.0 12.1.1.2

6、在路由器R3上配置静态路由

[AR3]ip route-static 12.1.1.0 24 100.1.1.2

7、在路由器R2上配置静态路由

[AR2]ip route-static 33.1.1.0 24 100.1.1.3
posted @ 2022-10-18 21:21  xl4ng  阅读(142)  评论(0编辑  收藏  举报