天天看点

华为静态路由配置

作者:珍惜幸福92
华为静态路由配置

1、相邻的IP地址已配置。

2、配置静态路由条目。

R1:

ip route-static 20.1.1.0 24 10.1.1.2

ip route-static 30.1.1.0 24 10.1.1.2

ip route-static 192.168.2.0 24 10.1.1.2

ip route-static 192.168.3.0 24 10.1.1.2

R2:

ip route-static 192.168.1.0 24 10.1.1.1

ip route-static 192.168.2.0 24 20.1.1.2

ip route-static 30.1.1.0 24 20.1.1.2

ip route-static 192.168.3.0 24 20.1.1.2

R3:

ip route-static 192.168.1.0 24 20.1.1.1

ip route-static 10.1.1.0 24 20.1.1.1

ip route-static 192.168.3.0 24 30.1.1.2

R4:

ip route-static 192.168.1.0 24 30.1.1.1

ip route-static 10.1.1.0 24 30.1.1.1

ip route-static 20.1.1.0 24 30.1.1.1

ip route-static 192.168.2.0 24 30.1.1.1

R1/R2/R3/R4:

dis ip rou:

华为静态路由配置

ping测试一下:PC1pingPC2、PC3:

华为静态路由配置

继续阅读