floating Static routes
One: Experimental topology
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/8A/wKiom1VLVf6R4inQAAEO7TT2HRI188.jpg "title=" 1.png " alt= "Wkiom1vlvf6r4inqaaeo7tt2hri188.jpg"/>
R1
[huawei]int Loo 0// Configuring the loopback port
[Huawei-loopback0]ip Add 1.1.1.1 32
R2
[Huawei]int Loo 0
[Huawei-loopback0]ip Add 2.2.2.2 32
R3
[Huawei]int Loo 0
[Huawei-loopback0]ip Add 3.3.3.3 32
R4
[Huawei]int Loo 0
[Huawei-loopback0]ip Add 4.4.4.4 32
Second: Experimental requirements
1 ): R1 to pass R4 , go up and down two roads, when the first road is broken can take the second road
2 ): R3 to pass R2 , take the left and right two roads, when the first road is broken can take the second road
III: Purpose of the experiment
1 ): Ensure the connectivity of the data in the case of failure of the main route in the network
2 ): Master the commands for floating routes and understand how floating routes work
Four: Floating routing
The purpose of the floating routing is to ensure the connectivity of data transmission, When the primary link fails, it automatically switches to the sub-optimal spare part link.
Five: The experimental steps are as follows
R1-r4
[Huawei]ip route-static 4.4.4.4 13.0.0.3// set the static route, and the packet leads to R4 return package from 130.0.3 out
R3-r4
[Huawei]ip route-static 4.4.4.4 34.0.0.4// This static route is a way for R3 able to work with R4 Guarantee Unicom
R4-12
Backhaul routing
R4 after receiving the packet, the source address is found to be 13.0.0.1. The package will be returned. The source address is the default egress address when the router communicates with another router
[Huawei]ip route-static 13.0.0.024 34.0.0.3// This is the loop of the packet, which guarantees that the packet can be - segment.
Inspection
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/8A/wKiom1VLVimhSp2CAAF__XkF1JI415.jpg "title=" 4.png " alt= "Wkiom1vlvimhsp2caaf__xkf1ji415.jpg"/>
By the known packet delivery success, so long explained that the first path setting is successful
Article II
[Huawei]dis IP routing-table// View the routing table
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/86/wKioL1VLV6nBbgv8AAIf37z7NP4543.jpg "title=" 2.png " alt= "Wkiol1vlv6nbbgv8aaif37z7np4543.jpg"/>
As can be seen, this is the first and the best link, because his priority is - , you can also see that this path has A Destinations and A Strip Routes
[Huawei]ip route-static 4.4.4.4 12.0.0.2 preference 70// This is a set of sub-optimal link, the purpose is to ensure the connectivity of data, priority for When the main link fails, the data can be passed from this link. -- down the road!
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/8A/wKiom1VLVkqzGHt8AAGgkzk0Zyw863.jpg "title=" 3.png " alt= "Wkiom1vlvkqzght8aaggkzk0zyw863.jpg"/>
What's the priority of this time? - it?
because the priority level is - is the highest priority, and the priority that is just set to appear - , then the priority must be broken! This is the advantage of setting priority, can effectively ensure the smoothness of data, for the smooth flow of data more than a layer of protection
R2-r4
[Huawei]ip route-static 4.4.4.4 24.0.0.4// onlyR1PassR4the path is not possible. Because this path includes theR2onlyR2also leads toR4, the final data will be sent to the destination address successfully.R4
R4-13
[Huawei]ip route-static 12.0.0.0 24.0.0.2// when the destination router receives R1 when you send a packet, you see that the source address is R1 the default interface, the packet is returned
Inspection
Off the road.
[Huawei]int G0/0/1
[Huawei-gigabitethernet0/0/1]shut// Turn off the default segment for this default interface -13 segment - A failure occurred while setting its primary link.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/8A/wKiom1VLVlvAv7R7AAE3hUjabwk087.jpg "title=" 5.png " alt= "Wkiom1vlvlvav7r7aae3hujabwk087.jpg"/>
[Huawei]dis IP routing-table// View the routing table
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/86/wKioL1VLV9riLqLUAAHQs23tY5o160.jpg "title=" 6.png " alt= "Wkiol1vlv9rilqluaahqs23ty5o160.jpg"/>
you can see the priority level in the - and the source address and destination address of the packet. Due to the failure of the optimal stage main link, this is the suboptimal link, which is to ensure the connectivity of the packet transmission.
Open the 13 section.
[Huawei]tracert 4.4.4.4// View the forwarding path of the packet for this link
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/8A/wKiom1VLVn_ikLqRAAEKGE1NZi8343.jpg "title=" 7.png " alt= "Wkiom1vlvn_iklqraaekge1nzi8343.jpg"/>
[Huawei]int G0/0/1
[huawei-gigabitethernet0/0/1]shut// Turn off the default segment
[Huawei]tracert 4.4.4.4
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/86/wKioL1VLWDPwE7wzAADVOViT2MY524.jpg "title=" 8.png " alt= "Wkiol1vlwdpwe7wzaadvovit2my524.jpg"/>
This is after the main link fails . routing of packets on the secondary link
Around
left ------- First Article
R3-r2
[Huawei]ip route-static 2.2.2.2 32 13.0.0.1
R1-r2
[Huawei]ip route-static 2.2.2.2 32 12.0.0.2
R2-13
[Huawei] iproute-static 13.0.0.0 12.0.0.1
Inspection
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/8A/wKiom1VLVs7Thf72AAGHppimOoM166.jpg "title=" 9.png " alt= "Wkiom1vlvs7thf72aaghppimoom166.jpg"/>
The first link passes
[Huawei]dis IP routing-table
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/86/wKioL1VLWH6RCbR3AAFxAIKje4E416.jpg "title=" 10.png "alt=" Wkiol1vlwh6rcbr3aafxaikje4e416.jpg "/>
Right --- Article II
R3-r2
[Huawei]ip route-static 2.2.2.232 34.0.0.4 Preference 61
R4-r2
[Huawei]ip route-static 2.2.2.232 24.0.0.2
R2-34
[Huawei]ip route-static 34.0.0.0 24 24.0.0.4
[Huawei]int G0/0/1
[Huawei-gigabitethernet0/0/1]shut
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/8A/wKiom1VLVxvBOxHmAAE9YT1PD7k298.jpg "title=" 11.png "alt=" Wkiom1vlvxvboxhmaae9yt1pd7k298.jpg "/>
[Huawei]dis IP routing-table
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/86/wKioL1VLWJnzg0R8AAFdqj3Zu0w436.jpg "title=" 12.png "alt=" Wkiol1vlwjnzg0r8aafdqj3zu0w436.jpg "/>
[Huawei]tracert 2.2.2.2
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/8A/wKiom1VLVzOgT2EvAAEk8lNMVj0131.jpg "title=" 13.png "alt=" Wkiom1vlvzogt2evaaek8lnmvj0131.jpg "/>
[Huawei]int G0/0/1
[Huawei-gigabitethernet0/0/1]shut
[Huawei]tracert 2.2.2.2
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/86/wKioL1VLWLWgU4l_AAD2fD1FTCU527.jpg "title=" 14.png "alt=" Wkiol1vlwlwgu4l_aad2fd1ftcu527.jpg "/>
VI: summary
as the function of the network continues to be strong, the number of routers used by each enterprise is increasing, so the probability of the problem will increase greatly, may lead to the company's data loss, lag work. With the floating static routing technology, you can be greatly assured that the data will be lost ...
This article is from the "chapter One" blog, please be sure to keep this source http://9683381.blog.51cto.com/9673381/1643985
Floating static routes