Static routing--recursive route

Source: Internet
Author: User

Experiment Description:

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/89/9A/wKioL1gYLW7Q0BxZAABzxltkuFA295.png "title=" Qq20161101135055.png "alt=" Wkiol1gylw7q0bxzaabzxltkufa295.png "/>

the address is set according to the serial number of the router, for example R1 for 10.1.1.1 R2 for 10.1.1.2 ...

R1 Configure static routes, Next hop to 20.1.1.4

Required to quickly switch line communication when a link fails

Preparation of Knowledge:

    1. ARP proxy : arp proxy answer. Popular point is the middleman / agent

when you receive a ARP request, whether answer, to meet the following three points:

    1. See if the requester's source and destination addresses are in the same network segment

    2. Agent ARP requires routing of Source and destination addresses with ARP

    3. Agent The ARP function is turned on

    4. ARP Table entry has a 4-hour survival time in the router

    5. for routers, the router receives a the legality is detected after ARP. Determine whether the IP of the Reply responder is up to the network segment, up to and including the legal, not up will be discarded.

Experimental steps:

configuration of the R1

R1#conf T

R1 (config-if) #ip add 10.1.1.1 255.255.255.0

R1 (config-if) #no sh

R1 (config-if) #int Lo 0

R1 (config-if) #ip add 172.16.1.1255.255.255.0

R1 (config-if) #no sh

R1 (config) #ip Route 192.168.0.0 255.255.252.0f0/0 20.1.1.4 # Static route, next hop for R4 interface Address

R1 (config) #ip Route 20.1.1.0 255.255.255.0f0/0 # to go down the route of the address, because R2 or R3 will impersonate R4 to send an answer to R1, so there is a route to the IP segment of the responder, and if not,the ARP message is discarded

R1 (config-if) #arp Timeout 5 # Modify The time of the ARP timeout, if the time is too long, the switching effect will be a big hit, then the time is too short, will waste bandwidth, in the environment of this experiment does not matter.

configuration of the R2

R2#conf T

R2 (config) #int f0/0

R2 (config-if) #ip add 10.1.1.2 255.255.255.0

R2 (config-if) #no sh

R2 (config-if) #int F0/1

R2 (config-if) #ip add 20.1.1.2 255.255.255.0

R2 (config-if) #no sh

R2 (config-if) #exit

R2 (config) #ip Route 172.16.1.0255.255.255.0 f0/0 10.1.1.1

R2 (config) #ip Route 192.168.0.0255.255.252.0 F0/1 20.1.1.4 # refer to the ARP proxy for the conditions that are answered by clause 2 , proxy ARP You need a route that has a source and destination segment.

configuration of the R3

R3#conf T

R3 (config) #int f0/0

R3 (config-if) #ip add 10.1.1.3 255.255.255.0

R3 (config-if) #no sh

R3 (config-if) #int F0/1

R3 (config-if) #ip add 20.1.1.3 255.255.255.0

R3 (config-if) #no sh

R3 (config) #ip Route 172.16.1.0255.255.255.0 f0/0 10.1.1.1

R3 (config) # ip route 192.168.0.0255.255.252.0 F0/1 20.1.1.4

configuration of the R4

R4 (config) #int f0/0

R4 (config-if) #ip add 20.1.1.4 255.255.255.0

R4 (config-if) #no sh

R4 (config-if) #int Lo 0

R4 (config-if) #ip add 192.168.0.1255.255.255.0

R4 (config-if) #no sh

R4 (config-if) #int Lo 1

R4 (config-if) #ip add 192.168.1.1255.255.255.0

R4 (config-if) #no sh

R4 (config-if) #int Lo 2

R4 (config-if) #ip add 192.168.2.1255.255.255.0

R4 (config-if) #no sh

R4 (config-if) #int Lo 3

R4 (config-if) #ip add 192.168.3.1255.255.255.0

R4 (config-if) #no sh

R4 (config-if) #arp Timeout 5

R4 (config) #ip Route 172.16.1.0255.255.255.0 f0/0

Test:

r1#ping 192.168.0.1 Source 172.16.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to192.168.0.1, timeout is 2 seconds:

Packet sent with a source address of172.16.1.1

.!!!!

Success rate is percent (4/5), round-trip Min/avg/max = 36/56/64 ms

r1#

Yes, it can be, huh.

test the failover effect below :

Put the R2 link down when you ping .

r1#ping 192.168.0.1 Source 172.16.1.1repeat 10000

Type escape sequence to abort.

Sending 10000, 100-byte ICMP Echos to192.168.0.1, timeout is 2 seconds:

Packet sent with a source address of172.16.1.1

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ....!!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!.

Success rate is percent (225/231), round-trip Min/avg/max = 12/57/108 ms

r1#

Yes, it can be switched automatically, huh.

Similarly, you can put R2 or R3 connection R4 the link down test, it is also possible to switch.


This article is from the "Pengjiawang" blog, make sure to keep this source http://pengjiawang.blog.51cto.com/10989721/1868046

Static routing--recursive route

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.