Test the forwarding-Address Configuration of OSPF.

Source: Internet
Author: User

I personally understand that the relationship between time and writing is messy. Please forgive me.


Topology:

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/6D/26/wKiom1VdT9CCB4KrAAB6HIPhoho842.jpg "Title =" 1.png" alt = "wkiom1vdt9ccb4kraab6hipho842.jpg"/>

R2 is ASBR. On R1, the fa of the lsa5 class sent by R2 is not zero, which is a unicast address.

 

Key configurations:

[R1] dis cur

#

Sysname r1

#

Router ID 91.1.1.1

#

Interface gigabitethernet0/0/0

IP address123.1.1.1 255.255.255.0

#

Interface loopback0

IP address1.1.1.1 255.255.255.0

#

OSPF 10

Area 0.0.0.0

Network1.1.1.1 0.0.0.0

Network123.1.1.1 0.0.0.0

#

IP route-static 0.0.0.0 0.0.0gigabitethernet0/0/0

#

 

Dis cur

#

Sysname r2

#

Router ID 92.2.2.2

#

Interface gigabitethernet0/0/0

IP address 123.1.1.2 255.255.255.0

Undo ICMP redirect send

#

Interface loopback0

IP address 2.2.2.2 255.255.255.0

#

OSPF 10

Import-route static

Area 0.0.0.0

Network 2.2.2.2 0.0.0.0

Network 123.1.1.2 0.0.0.0

#

IP route-static 3.3.3104255.255.255 123.1.1.3

#

 

[R3] dis cur

#

Sysname r3

#

Router ID 93.3.3.3

#

Interface gigabitethernet0/0/0

IP address 123.1.1.3 255.255.255.0

#

Interface loopback0

IP address 3.3.3.3 255.255.255.0

#

IP route-static 0.0.0.0 0.0.0gigabitethernet0/0/0

#

 

The main configuration is written on R2, where

Interface gigabitethernet0/0/0

IP address 123.1.1.2 255.255.255.0

Undo ICMP redirect send

Disabling ICMP redirection only means that there is not much connection between IP redirection and OSPF fa.

Note that one of the non-zero fa address conditions is to generate a unicast address for it:

IP route-static 3.3.3104255.255.255 123.1.1.3

This 123.1.1.3 is the unicast address generated for fa. It will be written to the fa of the lsa5 class to guide the optimal routing of R1.

 

Below is a comparison of R2 before and after writing 123.1.1.3 address to FA:

[R1] dis OSPF lsdb ase

 

OSPF process 10 with router ID 91.1.1.1

Link State database

 

 

Type: External

Ls ID: 3.3.3.3

Advrtr: 92.2.2.2

Ls age: 86

Len: 36

Options: E

SEQ #: 80000001

Chksum: 0xb57

Netmask: 255.255.255.255

ToS 0 Metric: 1

E type: 2

Forwarding Address: 0.0.0.0

Tag: 1

Priority: Medium

 

[R1] dis OSPF lsdb ase

 

Ospfprocess 10 with router ID 91.1.1.1

Link State database

 

 

Type: External

Ls ID: 3.3.3.3

Advrtr: 92.2.2.2

Ls age: 11

Len: 36

Options: E

SEQ #: 80000001

Chksum: 0x9c45

Netmask: 255.255.255.255

ToS 0 Metric: 1

E type: 2

Forwarding Address: 123.1.1.3

Tag: 1

Priority: Medium

When R1 receives the lsa5 Class address from ASBR R2 and the FA Class address is not zero, R1 first encapsulates ARP to find the MAC address corresponding to the FA when accessing the address, after receiving the reply from the other party, the encapsulation of the IP package is successful and the subsequent communication is OK. The following Wireshark Packet Capture demonstration shows the packet capture of ping3.3.3.3 on R2:

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/6D/26/wKiom1VdT_fy_aLzAALM4W8grZ0579.jpg "Title =" 2.png" alt = "wkiom1vdt_fy_alzaalm4w8grz0579.jpg"/>

 

 


This article from the "Network monster" blog, please be sure to keep this source http://happyln.blog.51cto.com/9258760/1653448

Test the forwarding-Address Configuration of OSPF.

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.