Re: ospf distance

From: Joe Astorino <joeastorino1982_at_gmail.com>
Date: Mon, 15 Apr 2013 11:59:34 -0400

The 32-bit number and mask you are matching there as a parameter to the
distance command must be the RID of the advertising router, not necessarily
the IP address.

On Mon, Apr 15, 2013 at 8:18 AM, _ _ <krzysiek.zalewski_at_gmail.com> wrote:

> You can Use
>
> SW1
> router ospf 1
> distance 200 0.0.0.0 255.255.255.255 19 <--- Will match all RID
>
> Could you send output:
>
> SW1#show ip route 192.10.1.0 255.255.255.0
>
> On 4/15/13, Imran Ali <immrccie_at_gmail.com> wrote:
> > i used a simple two router topology and it is working fine now..
> >
> > On Mon, Apr 15, 2013 at 11:44 AM, Imran Ali <immrccie_at_gmail.com> wrote:
> >
> >> so it is not the neighbor id , but the router os originated it ?
> >>
> >>
> >>
> >>
> >> On Mon, Apr 15, 2013 at 11:06 AM, <daniel.dib_at_reaper.nu> wrote:
> >>
> >>> Hi,
> >>>
> >>> You need to enter the RID from which the LSA is coming which I
> >>> think is 150.1.3.3? So enter the RID instead of the next-hop and try it
> >>> again.
> >>>
> >>> Regards,
> >>>
> >>> Daniel Dib
> >>>
> >>> CCIE #37149
> >>>
> >>> 2013-04-15 09:55 skrev
> >>> Imran Ali:
> >>>
> >>> > i am trying to use ospf distance command to selectivly
> >>> increase the
> >>> > distance of ospf route.
> >>> >
> >>> > i am not sure why it is not
> >>> working ,. 192.10.1.0 needs to get ad of 200
> >>> >
> >>> > SW1#show ip route
> >>> >
> >>> 155.1.0.0/24 is subnetted, 9 subnets
> >>> > O IA 155.1.23.0 [110/65] via
> >>> 155.1.37.3, 00:00:03, FastEthernet1/3
> >>> > O IA 155.1.13.0 [110/65] via
> >>> 155.1.37.3, 00:00:03, FastEthernet1/3
> >>> > O IA 155.1.0.0 [110/65] via
> >>> 155.1.37.3, 00:00:03, FastEthernet1/3
> >>> > O IA 155.1.58.0 [110/22] via
> >>> 155.1.67.6, 00:00:03, FastEthernet1/6
> >>> > O IA 155.1.45.0 [110/12] via
> >>> 155.1.67.6, 00:00:03, FastEthernet1/6
> >>> > C 155.1.37.0 is directly
> >>> connected, FastEthernet1/3
> >>> > C 155.1.79.0 is directly connected,
> >>> FastEthernet0/0
> >>> > C 155.1.67.0 is directly connected, FastEthernet1/6
> >>> >
> >>> O IA 155.1.108.0 [110/32] via 155.1.67.6, 00:00:03, FastEthernet1/6
> >>> > O*
> >>> IA 192.10.1.0/24 *[110/75] via 155.1.37.3, 00:00:03, FastEthernet1/3
> >>> >
> >>> 150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
> >>> > C 150.1.7.0/24
> >>> is directly connected, Loopback0
> >>> > O IA 150.1.8.8/32
> >>> > O IA 150.1.6.6/32
> >>> [110/2] via 155.1.67.6, 00:11:27, FastEthernet1/6
> >>> > O IA 150.1.3.3/32
> >>> [110/2] via 155.1.37.3, 00:11:27, FastEthernet1/3
> >>> > O IA 150.1.2.2/32
> >>> [110/66] via 155.1.37.3, 00:11:27, FastEthernet1/3
> >>> >
> >>> >
> >>> SW1(config)#access-list 19 permit 192.10.1.0
> >>> > SW1(config)#router os 1
> >>> >
> >>>
> >>> > SW1(config-router)#distance 200 155.1.37.3 0.0.0.0 19
> >>> >
> >>> SW1(config-router)#exit
> >>> > SW1(config)#exit
> >>> >
> >>> > SW1#clear ip route *
> >>> >
> >>>
> >>> > SW1#show ip route
> >>> >
> >>> > Gateway of last resort is not set
> >>> >
> >>> 155.1.0.0/24 is subnetted, 9 subnets
> >>> > O IA 155.1.23.0 [110/65] via
> >>> 155.1.37.3, 00:00:07, FastEthernet1/3
> >>> > O IA 155.1.13.0 [110/65] via
> >>> 155.1.37.3, 00:00:07, FastEthernet1/3
> >>> > O IA 155.1.0.0 [110/65] via
> >>> 155.1.37.3, 00:00:07, FastEthernet1/3
> >>> > O IA 155.1.58.0 [110/22] via
> >>> 155.1.67.6, 00:00:07, FastEthernet1/6
> >>> > O IA 155.1.45.0 [110/12] via
> >>> 155.1.67.6, 00:00:07, FastEthernet1/6
> >>> > C 155.1.37.0 is directly
> >>> connected, FastEthernet1/3
> >>> > C 155.1.79.0 is directly connected,
> >>> FastEthernet0/0
> >>> > C 155.1.67.0 is directly connected, FastEthernet1/6
> >>> >
> >>> O IA 155.1.108.0 [110/32] via 155.1.67.6, 00:00:07, FastEthernet1/6
> >>> > O*
> >>> IA 192.10.1.0/24 [110/75]* via 155.1.37.3, 00:00:07, FastEthernet1/3
> >>> >
> >>> 150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
> >>> > C 150.1.7.0/24
> >>> is directly connected, Loopback0
> >>> > O IA 150.1.8.8/32 [110/23] via
> >>> 155.1.67.6, 00:00:15, FastEthernet1/6
> >>> > O IA 150.1.6.6/32 [110/2] via
> >>> 155.1.67.6, 00:00:15, FastEthernet1/6
> >>> > O IA 150.1.3.3/32 [110/2] via
> >>> 155.1.37.3, 00:00:15, FastEthernet1/3
> >>> > O IA 150.1.2.2/32 [110/66] via
> >>> 155.1.37.3, 00:00:15, FastEthernet1/3
> >>> >
> >>> > Reset ALL OSPF processes?
> >>> [no]: yes
> >>> > SW1#
> >>> > *Mar 2 02:45:57.029: %OSPF-5-ADJCHG: Process 1, Nbr
> >>> 150.1.3.3 on
> >>> > FastEthernet1/3 from FULL to DOWN, Neighbor Down:
> >>> Interface down or detached
> >>> > *Mar 2 02:45:57.033: %OSPF-5-ADJCHG:
> >>> Process 1, Nbr 150.1.6.6 on
> >>> > FastEthernet1/6 from FULL to DOWN,
> >>> Neighbor Down: Interface down or detached
> >>> > *Mar 2 02:45:57.037:
> >>> %OSPF-5-ADJCHG: Process 1, Nbr 150.1.9.9 on
> >>> > FastEthernet0/0 from FULL
> >>> to DOWN, Neighbor Down: Interface down or detached
> >>> > *Mar 2
> >>> 02:45:57.485: %OSPF-5-ADJCHG: Process 1, Nbr 150.1.3.3 on
> >>> >
> >>> FastEthernet1/3 from LOADING to FULL, Loading Done
> >>> > *Mar 2
> >>> 02:45:57.485: %OSPF-5-ADJCHG: Process 1, Nbr 150.1.6.6 on
> >>> >
> >>> FastEthernet1/6 from LOADING to FULL, Loading Done
> >>> > *Mar 2
> >>> 02:45:57.509: %OSPF-5-ADJCHG: Process 1, Nbr 150.1.9.9 on
> >>> >
> >>> FastEthernet0/0 from LOADING to FULL, Loading Done
> >>> >
> >>> > SW1#show ip
> >>> route
> >>> >
> >>> > Gateway of last resort is not set
> >>> > 155.1.0.0/24 is
> >>> subnetted, 9 subnets
> >>> > O IA 155.1.23.0 [110/65] via 155.1.37.3,
> >>> 00:00:03, FastEthernet1/3
> >>> > O IA 155.1.13.0 [110/65] via 155.1.37.3,
> >>> 00:00:03, FastEthernet1/3
> >>> > O IA 155.1.0.0 [110/65] via 155.1.37.3,
> >>> 00:00:03, FastEthernet1/3
> >>> > O IA 155.1.58.0 [110/22] via 155.1.67.6,
> >>> 00:00:03, FastEthernet1/6
> >>> > O IA 155.1.45.0 [110/12] via 155.1.67.6,
> >>> 00:00:03, FastEthernet1/6
> >>> > C 155.1.37.0 is directly connected,
> >>> FastEthernet1/3
> >>> > C 155.1.79.0 is directly connected, FastEthernet0/0
> >>> >
> >>> C 155.1.67.0 is directly connected, FastEthernet1/6
> >>> > O IA 155.1.108.0
> >>> [110/32] via 155.1.67.6, 00:00:03, FastEthernet1/6
> >>> > O* IA 192.10.1.0/24
> >>> [110/*75] via 155.1.37.3, 00:00:03, FastEthernet1/3
> >>> > 150.1.0.0/16 is
> >>> variably subnetted, 5 subnets, 2 masks
> >>> > C 150.1.7.0/24 is directly
> >>> connected, Loopback0
> >>> > O IA 150.1.8.8/32 [110/23] via 155.1.67.6,
> >>> 00:00:04, FastEthernet1/6
> >>> > O IA 150.1.6.6/32 [110/2] via 155.1.67.6,
> >>> 00:00:04, FastEthernet1/6
> >>> > O IA 150.1.3.3/32 [110/2] via 155.1.37.3,
> >>> 00:00:04, FastEthernet1/3
> >>> > O IA 150.1.2.2/32 [110/66] via 155.1.37.3,
> >>> 00:00:04, FastEthernet1/3
> >>> > still 110 :(
> >>> >
> >>> > Blogs and organic groups
> >>> at http://www.ccie.net [1]
> >>> >
> >>> >
> >>> _______________________________________________________________________
> >>> >
> >>> Subscription information may be found at:
> >>> >
> >>> http://www.groupstudy.com/list/CCIELab.html [2]
> >>>
> >>>
> >>>
> >>> Links:
> >>> ------
> >>> [1]
> >>> http://www.ccie.net
> >>> [2] http://www.groupstudy.com/list/CCIELab.html
> >>>
> >>>
> >>> Blogs and organic groups at http://www.ccie.net
> >>>
> >>> _______________________________________________________________________
> >>> Subscription information may be found at:
> >>> http://www.groupstudy.com/list/CCIELab.html
> >
> >
> > Blogs and organic groups at http://www.ccie.net
> >
> > _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
> >
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> Krzysiek
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
>
>
>
>
>
>

-- 
Regards,
Joe Astorino
CCIE #24347
http://astorinonetworks.com
"He not busy being born is busy dying" - Dylan
Blogs and organic groups at http://www.ccie.net
Received on Mon Apr 15 2013 - 11:59:34 ART

This archive was generated by hypermail 2.2.0 : Wed May 01 2013 - 06:47:40 ART