首页 > 窍门 > 科技数码

锐捷交换机如何配置浮动路由 锐捷交换机如何配置浮动路由模块

来源: 更新时间:2022-12-07 21:05:54
The Beginning

一、组网要求sKe育儿早教网

1) 交换机连接两个出口路由器,172.6.1.2为主线路,172.16.2.2为备用线路;sKe育儿早教网

2)当主线路的物理线路失效,备用线路切换为主。sKe育儿早教网

二、组网拓扑sKe育儿早教网

锐捷交换机如何配置浮动路由sKe育儿早教网

三、配置要点sKe育儿早教网

  • 配置接口地址
  • 配置浮动路由

四、配置步骤sKe育儿早教网

注意:配置之前建议使用 Ruijie#show interface status查看接口名称,常用接口名称有FastEthernet(百兆)、GigabitEthernet(千兆)和TenGigabitEthernet(万兆),以下配置以千兆接口为例sKe育儿早教网

1)配置接口地址sKe育儿早教网

Ruijie>enablesKe育儿早教网

Ruijie#configure terminalsKe育儿早教网

Ruijie(config)# interface GigabitEthernet 0/3sKe育儿早教网

Ruijie(config-if-GigabitEthernet 0/3)#no switchport----->把接口属性改成路由接口sKe育儿早教网

Ruijie(config-if-GigabitEthernet 0/3)#ip address 172.16.1.1 255.255.255.0----->配置地址sKe育儿早教网

Ruijie(config)#interface GigabitEthernet 0/4sKe育儿早教网

Ruijie(config-if-GigabitEthernet 0/4)#no switchportsKe育儿早教网

Ruijie(config-if-GigabitEthernet 0/4)#ip address 172.16.2.1 255.255.255.0sKe育儿早教网

2)配置浮动路由sKe育儿早教网

Ruijie(config)#ip route 0.0.0.0 0.0.0.0 172.16.1.2sKe育儿早教网

Ruijie(config)#ip route 0.0.0.0 0.0.0.0 172.16.2.2 10-----10为metric值,metric值越大优先级越低。默认是1sKe育儿早教网

3) 保存配置sKe育儿早教网

Ruijie(config)#endsKe育儿早教网

Ruijie#write ----->确认配置正确,保存配置sKe育儿早教网

五、验证命令:sKe育儿早教网

正常情况下:sKe育儿早教网

Ruijie#show ip routesKe育儿早教网

Codes:C - connected, S - static, R - RIP, B - BGPsKe育儿早教网

O - OSPF, IA - OSPF inter areasKe育儿早教网

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2sKe育儿早教网

E1 - OSPF external type 1, E2 - OSPF external type 2sKe育儿早教网

i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2sKe育儿早教网

ia - IS-IS inter area, * - candidate defaultsKe育儿早教网

Gateway of last resort is 172.16.1.2 to network 0.0.0.0sKe育儿早教网

S* 0.0.0.0/0 [1/0] via 172.16.1.2sKe育儿早教网

C 172.16.1.0/24 is directly connected, GigabitEthernet 0/14sKe育儿早教网

C 172.16.1.1/32 is local host.sKe育儿早教网

C 172.16.2.0/24 is directly connected, GigabitEthernet 0/15sKe育儿早教网

C 172.16.2.1/32 is local host.sKe育儿早教网

当主线路down后:sKe育儿早教网

Ruijie(config)#show ip routesKe育儿早教网

Codes:C - connected, S - static, R - RIP, B - BGPsKe育儿早教网

O - OSPF, IA - OSPF inter areasKe育儿早教网

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2sKe育儿早教网

E1 - OSPF external type 1, E2 - OSPF external type 2sKe育儿早教网

i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2sKe育儿早教网

ia - IS-IS inter area, * - candidate defaultsKe育儿早教网

Gateway of last resort is 172.16.2.2 to network 0.0.0.0sKe育儿早教网

S* 0.0.0.0/0 [10/0] via 172.16.2.2sKe育儿早教网

C 172.16.1.0/24 is directly connected, GigabitEthernet 0/14sKe育儿早教网

C 172.16.1.1/32 is local host.sKe育儿早教网

C 172.16.2.0/24 is directly connected, GigabitEthernet 0/15sKe育儿早教网

C 172.16.2.1/32 is local host.sKe育儿早教网

THE END

TAG:接口  路由  线路  

猜你喜欢

相关文章