【原】Floating Static Route

1): 拓扑图:

2): 配置Piglet站点接口IP

Piglet(config)#interface ethernet 1/1                      #备用接口

Piglet(config-if)#ip address 10.1.20.1 255.255.255.0

Piglet(config-if)#no shutdown

Piglet(config)#interface ethernet 1/2                    #主用接口

Piglet(config-if)#ip address 10.1.10.1 255.255.255.0

Piglet(config-if)#no shutdown

3):配置到10.1.30.0 网段的静态路由

Piglet(config)#ip route 10.1.30.0 255.255.255.0 10.1.10.2
Piglet(config)#ip route 10.1.30.0 255.255.255.0 10.1.20.2 50

备用链路的下一跳 10.1.20.2,administrative distance = 50

4) 主用链路e1/1和备用链路e1/1都UP时,显示路由表

Piglet#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

10.0.0.0/24 is subnetted, 4 subnets
C 10.1.10.0 is directly connected, Ethernet1/2
C 10.1.5.0 is directly connected, Ethernet1/0
S 10.1.30.0 [1/0] via 10.1.10.2             #  走主用链路
C 10.1.20.0 is directly connected, Ethernet1/1

4) 关闭主用接口,显示路由表

Piglet(config)#interface ethernet 1/2

Piglet(config-if)#shutdown

Piglet#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

10.0.0.0/24 is subnetted, 3 subnets
C 10.1.5.0 is directly connected, Ethernet1/0
S 10.1.30.0 [50/0] via 10.1.20.2                              #  走备用链路
C 10.1.20.0 is directly connected, Ethernet1/1

5) 重新打开主用接口,显示路由表

Piglet(config)#interface ethernet 1/2

Piglet(config-if)#no shutdown

Piglet#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

10.0.0.0/24 is subnetted, 4 subnets
C 10.1.10.0 is directly connected, Ethernet1/2
C 10.1.5.0 is directly connected, Ethernet1/0
S 10.1.30.0 [1/0] via 10.1.10.2          #  走主用链路
C 10.1.20.0 is directly connected, Ethernet1/1

时间: 2025-01-02 01:28:49

【原】Floating Static Route的相关文章

route TCP/IP index

----------------------------------------------------------------------- Routing TCP/IP Volume 1,Second Edition ------------------------------------------------------------------------ Routing TCP/IP Volume 2 ------------------------------------------

cisco learn book index

------------------------------------------------------------------ Routing TCP/IP Volume 1 , Second Edition ------------------------------------------------------------------ Routing TCP/IP Volume 2 ---------------------------------------------------

NA西游第四难:静态路由

静态路由 静态路由是指手工配置的路由信息.拓扑 基础配置 R1 interface Ethernet0/0/0 ?ip address 192.168.10.1 255.255.255.0 interface Serial0/0/0 ?link-protocol ppp ?ip address 10.0.12.1 255.255.255.0 R2 interface Serial0/0/0 ?link-protocol ppp ?ip address 10.0.23.2 255.255.255.

静态路由实验二(浮动静态路由及负载均衡)

原理概述: 浮动静态路由(Floating Static Route)是一种特殊的静态路由,通过配置去往相同的 目的网段,但优先级不同的静态路由,以保证在网络中优先级较高的路由,即主路由失效的情况下提供备份路由.正常情况下,备份路由 不会出现在路由表中.      负载均衡(Load sharing),当数据有多条可选路径前往同一目的网络,可以通过配 置相同优先级和开销的静态路由实现负载均衡,使得数据的传输均衡地分配到多条路径上,从而实现数据分流.减轻单条路径负载过重的效果. 而当其中某一条路径

The Quantum L3 router and floating IPs

This post shows how the Quantum L3 Agent uses the Linux IP stack to implement the Quantum L3 Routing and NAT API extensions. It explains in detail how external access with floating IP works and how it can be debugged. The setup is from the Grizzly on

【转】 Difference between defining static routes with next-hop address or exit interface

For a long time I was confused about this. It was not clear to me what is the difference between setting the static route using next hop interface IP address instead of exit interface (outgoing interface) syntax. It seemed that both methods are the s

Juniper MPLS Static LSP

MPLS Static LSP 1.配置接口去接收和处理MPLS帧 [email protected]#setinterface ge-1/0/0 unit 0 family inet family mpls 2.指定哪个接口运行MPLS [email protected]#setprotocols mpls interface ge-1/0/0.0 或 [email protected]#setprotocols mpls interface all 3.验证MPLS接口配置 [email p

Route学习笔记之Area的Route注册

前一段时间接触了MVC的Area可以将模型.控制器和视图分成各个独立的节点.分区之后,区域路由注册的需求就出来了. 默认的 在MVC项目上右键添加区域之后,在文件夹下会自动添加一个FolderNameAreaRegistration.cs的文件. public class AdminAreaRegistration : AreaRegistration { public override string AreaName { get { return "Admin"; } } publi

一步步学习ASP.NET MVC3 (14)——Route路由

由于今天是星期六,所以多写几篇,感觉前几天的忙碌没有及时发布文章,趁着周末老魏尽力的多写几篇文章.因为本系列基本上快结束了,所以老魏也要加把劲了,这个系列完成后,老魏会开始NHibernate,Spring.NET,EF等相关文章的书写.希望大家能够支持一下! 本章老魏主要给大家讲述一下在ASP.NET MVc3中的路由技术,当然本章属于那种不会也会开发ASP.NET MVC的章节,但是老魏还是建议大家要学习一下这个路由技术,这样大家会理解ASP.NET  MVC的生命周期,同时能够避免大家走很