华为路由器配置静态路由

 

 

 

本实验模拟静态路由网络环境,完成以下配置需求:
1.如图所示,配置各路由器设备名称,IP地址。

2.如图所示,配置各PC的IP地址、掩码、网关。

3.在R1 R2 R3 R4上配置静态路由,完成以下需求:
1)路由的目标网络号与实际网络号相同
2)采用下一跳的方式配置静态路由(而非出接口)
3)PC1 PC2 PC3互通
4)不得使用默认路由
---------------------------------------------------------------

<Huawei>system-view

[Huawei]sysname R1
[R1]int gi0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.12.1 24
[R1-GigabitEthernet0/0/0]int gi0/0/1
[R1-GigabitEthernet0/0/1]ip address 172.16.1.254 24
[R1]ip route-static 172.16.2.0 24 192.168.12.2
[R1]ip route-static 172.16.3.0 24 192.168.12.2

<Huawei>system-view
[Huawei]sysname R2
[R2]int gi0/0/0
[R2-GigabitEthernet0/0/0]ip address 192.168.12.2 24
[R2-GigabitEthernet0/0/0]int gi0/0/1
[R2-GigabitEthernet0/0/1]ip address 192.168.23.2 24
[R2]ip route-static 172.16.2.0 24 192.168.23.3
[R2]ip route-static 172.16.1.0 24 192.168.12.1
[R2]ip route-static 172.16.3.0 24 192.168.23.3


<Huawei>system-view
[Huawei]sysname R3
[R3]int gi0/0/0
[R3-GigabitEthernet0/0/0]ip add
[R3-GigabitEthernet0/0/0]ip address 192.168.23.3 24
[R3-GigabitEthernet0/0/0]int gi0/0/1
[R3-GigabitEthernet0/0/1]ip address 192.168.34.3 24
[R3-GigabitEthernet0/0/1]int gi0/0/2
[R3-GigabitEthernet0/0/2]ip address 172.16.2.254 24
[R3-GigabitEthernet0/0/2]q
[R3]ip route-static 172.16.1.0 24 192.168.23.2
[R3]ip route-static 172.16.3.0 24 192.168.34.4


<Huawei>system-view
[Huawei]sysname R4
[R4]int gi0/0/0
[R4-GigabitEthernet0/0/0]ip add
[R4-GigabitEthernet0/0/0]ip address 192.168.34.4 24
[R4-GigabitEthernet0/0/0]int gi0/0/1
[R4-GigabitEthernet0/0/1]ip address 172.16.3.254 24
[R4]ip route-static 172.16.1.0 24 192.168.34.3
[R4]ip route-static 172.16.2.0 24 192.168.34.3

posted @ 2022-05-03 17:30  昌北F4  阅读(1087)  评论(0编辑  收藏  举报