OSPF: LAB: REDISTRIBUTION AMONG DIFFERENT PROCESSES 2



SCENARIO:

This is the most common scenario in any of the network. we have Dual connectivity to the LAN network 33.33.33.0/24

through R1 & R2. Process ID 1 & 2 are running.

 

PLAN 2

We will Play with the AD value and check out the result

OSPF REDISTRIBUTION AMONG PROCESSES   *********************

PLAN 2

CONFIGURATION FOR RUNNING OSPF

Config will be same as PLAN 1 one command is added at R1 & R2, to change the AD value of External routes

R1

R1#sh run | be ospf

router ospf 2

log-adjacency-changes

redistribute ospf 1 subnets

 

network 172.16.1.1 0.0.0.0 area 0  

distance ospf external 200 !

 

router ospf 1

log-adjacency-changes

redistribute ospf 2 subnets

network 192.168.1.1 0.0.0.0 area 0  

distance ospf external 200

R2

R2#sh run | be ospf

router ospf 1

log-adjacency-changes

redistribute ospf 2 subnets

network 192.168.1.2 0.0.0.0 area 0  

distance ospf external 200 !

 

router ospf 2

log-adjacency-changes

redistribute ospf 1 subnets

network 172.16.1.2 0.0.0.0 area 0  

distance ospf external 200

Conclusion

After applying distance command, AD value within OSPF got changed

Routes received at R1 as External routes, will now have AD value of 200

whereas normal AD value of OSPf routes are 110

 

Due to this, 33.33.33.0/24  LAN network which is received as Internal and External route both

Their AD values are compared &

As desired, 33.33.33.0/24  learned as Internal route is preffered over External route


Result

R1#sh ip ro

33.0.0.0/32 is subnetted, 1 subnets

O       33.33.33.1 [110/2] via 192.168.1.3, 00:16:15, FastEthernet0/0

172.16.0.0/24 is subnetted, 1 subnets

C       172.16.1.0 is directly connected, FastEthernet0/1

C    192.168.1.0/24 is directly connected, FastEthernet0/0

 

R2#sh ip ro 33.0.0.0/32 is subnetted, 1 subnets

O       33.33.33.1 [110/2] via 192.168.1.3, 00:15:50, FastEthernet0/0

172.16.0.0/24 is subnetted, 1 subnets

C       172.16.1.0 is directly connected, FastEthernet0/1

C    192.168.1.0/24 is directly connected, FastEthernet0/0


Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s