华为路由与优先级
来自Linux78|wiki
配置静态路由
[R1]ip route-static 3.3.3.3 255.255.255.255 202.100.2.3 ===添加静态路由
配置浮动路由用于备份
配置备份静态路由,当R1与R3之间链路出现故障时,可走R2。
[R2]ip route-static 3.3.3.3 255.255.255.255 202.100.3.3 [R1]ip route-static 202.100.3.0 24 202.100.1.2 preference 80
配置默认路由
配置备份默认路由,当R2与R3之间链路出现故障时,可走R1。
[R2]ip route-static 0.0.0.0 0.0.0.0 202.100.1.1 preference 80 [R3]ip route-static 0.0.0.0 0.0.0.0 202.100.2.1 preference 80
路由协议的优先级
| 路由协议 | 优先级 |
|---|---|
| Direct | 0 |
| OSPF | 10 |
| IS-IS | 15 |
| Static | 60 |
| RIP | 100 |
| OSPF Ase | 150 |
| BGP | 255 |