华为HCIA-浮动静态路由

image

1、设置AR-LT和AR-YD路由器的环回口地址

int LoopBack0
ip address 123.1.1.1 24

2、配置接口ip

[AR-GW]int g0/0/0
[AR-GW-GigabitEthernet0/0/0]ip address 56.1.1.1 24
[AR-GW]int g0/0/1
[AR-GW-GigabitEthernet0/0/1]ip address 57.1.1.1 24

[AR-LT]int g0/0/0
[AR-LT-GigabitEthernet0/0/0]ip address 56.1.1.2 24

[AR-YD]int g0/0/0
[AR-YD-GigabitEthernet0/0/0]ip address 57.1.1.2 24

3、配置静态路由

[AR-GW]ip route-static 0.0.0.0 0 56.1.1.2
[AR-GW]ip route-static 0.0.0.0 0 57.1.1.2 preference 62

4、一般情况下,数据走AR-LT,关闭路由器AR-LT的g0/0/0接口,数据走AR-YD。

[AR-GW-GigabitEthernet0/0/0]shutdown
posted @ 2022-04-30 22:20  xl4ng  阅读(126)  评论(0编辑  收藏  举报