AR100, AR120, AR150, AR160, AR200, AR300, AR1200, AR2200, AR3200, AR3600 典型配置案例(命令行)
配置接口备份的示例(以太网+以太网)
组网需求
如图14-3所示,RouterA通过接口Ethernet1/0/0和Ethernet2/0/0连接到IP网络。
接口Ethernet1/0/0作为主接口。
Ethernet2/0/0作为备份接口。
操作步骤
- RouterA的配置
# interface Ethernet1/0/0 ip address 1.1.1.1 255.255.255.0 //连接IP网络的主接口的IP地址 standby interface Ethernet2/0/0 30 //指定Ethernet2/0/0为备份接口,优先级为30 # interface Ethernet2/0/0 ip address 2.1.1.1 255.255.255.0 //连接IP网络的备份接口的IP地址 # ip route-static 0.0.0.0 0.0.0.0 1.1.1.2 ip route-static 0.0.0.0 0.0.0.0 2.1.1.2 #
- 验证配置结果
# 在RouterA上执行display standby state查看主备接口的状态信息。其中,Ethernet1/0/0的“Interfacestate”为UP,Ethernet2/0/0的“Interfacestate”为STANDBY。