Thursday, January 8, 2009

OSPF routing part IX - distance

Suppose R1 has two ospf neighbors R2 and R3 and the lab requires all routes to be preferred from R2. This can be achieved by marking all routes from ospf neighbor R3 with an admin distance of 109 (compared to the default of 110).

If the ospf router id of r3 was 3.3.3.3 this can simply be achieved as follows...

ip access-list st 1
permit any

router ospf 1
distance 109 3.3.3.3 0.0.0.0 1

No comments: