IP静态浮动路由 Floating Static Route

网络 路由交换
本文主要给大家主要介绍了对于路由器的IP静态浮动路由如何进行设置,并且给出了原理图和具体的而配置命令行,下面文章将给你详细介绍。

本文主要给大家主要介绍了对于路由器的IP浮动静态路由如何进行设置,并且给出了原理图和具体的而配置命令行,下面文章将给你详细介绍。

Intention:使用浮动静态路由(Floating Static Route)让全网互联,正常情况下,R1 发往R3的数据包

从e0/0(192.168.12.0)走,当e0/0断开后,R1会自动切换到e0/1(192.168.21.0),当e0/0

开启后,R1又会自动切换到浮动静态路由e0/0口。


(R1 Configuration:)
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface Ethernet0/0
ip address 192.168.12.1 255.255.255.0
shutdown
half-duplex
!
interface Ethernet0/1
ip address 192.168.21.1 255.255.255.0
half-duplex
!
ip route 3.3.3.3 255.255.255.255 192.168.12.2
ip route 3.3.3.3 255.255.255.255 192.168.21.2 50
ip route 192.168.23.0 255.255.255.0 192.168.12.2
ip route 192.168.23.0 255.255.255.0 192.168.21.2 50
!
!

(R2 Configuration:)
!
interface Ethernet0/0
ip address 192.168.12.2 255.255.255.0
half-duplex
!
interface Ethernet0/1
ip address 192.168.21.2 255.255.255.0
half-duplex
!
interface Ethernet0/2
ip address 192.168.23.2 255.255.255.0
half-duplex
!
ip route 3.3.3.3 255.255.255.255 192.168.23.3
!
!

(R3 Configuration:)
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface Ethernet0/2
ip address 192.168.23.3 255.255.255.0
half-duplex
!
ip route 192.168.12.0 255.255.255.0 192.168.23.2
ip route 192.168.21.0 255.255.255.0 192.168.23.2
!
!
--------------------------------
(Inspect R1:)
r1#
r1#traceroute 3.3.3.3
Type escape sequence to abort.
Tracing the route to 3.3.3.3

1 192.168.12.2 124 msec 12 msec 48 msec
2 192.168.23.3 112 msec *160 msec
r1#
(将e0/0端口关闭 shutdown ethernet 0/0 port )
r1#
r1(config)#int e0/0
r1(config-if)#shutdown
r1#
r1#traceroute 3.3.3.3

Type escape sequence to abort.
Tracing the route to 3.3.3.3

1 192.168.21.2 144 msec 72 msec 20 msec
2 192.168.23.3 80 msec *96 msec
r1#

(将e0/0端口重新开启reopen ethernet 0/0 port )
r1#
r1#config t
r1(config)#int e0/0
r1(config-if)#no shutdown
r1#
r1#traceroute 3.3.3.3

Type escape sequence to abort.
Tracing the route to 3.3.3.3

1*
192.168.12.2 76 msec 76 msec
2 192.168.23.3 88 msec *120 msec
r1#

Notice: ip route 3.3.3.3 255.255.255.255 192.168.21.2 50(后面的50表示的是管理距离 It
represents"Distance metric for this route")

 

责任编辑:chenqingxiang 来源: itmop
相关推荐

2009-12-09 11:06:53

浮动静态路由

2009-12-23 13:51:05

浮动静态路由技术

2009-12-09 11:04:14

浮动静态路由配置

2021-08-11 16:34:02

浮动路由路由网络技术

2015-03-27 09:35:26

route命令IP路由表路由设置

2020-02-26 16:01:22

IP路由路由器

2009-12-17 16:42:35

配置静态路由

2011-04-13 11:27:28

EIGRP路由

2011-08-22 14:43:36

静态路由器

2022-12-13 15:42:56

Clang-Tidy静态分析工具

2022-12-09 15:38:54

Cppcheck静态分析工具

2011-08-23 15:27:21

route中文man

2022-12-08 15:25:10

Clang分析工具CSA

2013-06-07 11:06:20

路由技术静态路由配置路由器

2009-11-27 15:13:00

PHP静态变量stat

2011-04-08 10:37:41

静态路由路由器

2009-09-27 11:07:22

CCNA知识静态路由

2009-12-02 14:46:44

静态路由动态路由

2011-04-01 13:01:57

路由表路由器

2009-11-19 17:18:30

静态路由动态路由
点赞
收藏

51CTO技术栈公众号