天天看點

華為靜态路由配置

作者:珍惜幸福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:

華為靜态路由配置

繼續閱讀