From: Edwards, Andrew M (andrew.m.edwards@boeing.com)
Date: Wed Nov 10 2004 - 18:55:44 GMT-3
Actually I don't mind bursting my bubble... That's how I'm learning...
I found I didn't understand the peculiarities of the IGPs as well as I
thought... Or at least the commands usefulness.
So regarding the command "distance xxx w.x.y.z. <wildcardmask> <ACL>"
In OSPF you can change AD of both internal and external addresses by
routing source.
In EIGRP however, you can only change the AD for internal routes by
routing source.
The only way to change AD in EIGRP for external routes is via the
"distance eigrp <internalAD> <externalAD>".
And... Burst away!
andy
-----Original Message-----
From: Brian McGahan [mailto:bmcgahan@internetworkexpert.com]
Sent: Wednesday, November 10, 2004 1:16 PM
To: Edwards, Andrew M; Swaroop Potdar; ccielab@groupstudy.com
Subject: RE: OSPF : Commands Doubt.
Andy,
I hate to keep bursting your bubble, but that's not a
restriction for OSPF :)
R4#sh ip route ospf
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/75] via 14.0.0.1, 00:00:08, Ethernet0/0
33.0.0.0/32 is subnetted, 1 subnets
O E2 33.33.33.33 [110/20] via 14.0.0.1, 00:00:08, Ethernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O E2 3.3.3.3 [110/20] via 14.0.0.1, 00:00:08, Ethernet0/0
10.0.0.0/32 is subnetted, 3 subnets
O 10.0.0.2 [110/74] via 14.0.0.1, 00:00:08, Ethernet0/0
O 10.0.0.3 [110/74] via 14.0.0.1, 00:00:08, Ethernet0/0
O 10.0.0.1 [110/10] via 14.0.0.1, 00:00:08, Ethernet0/0
R4#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R4(config)#access-list 1 permit 3.3.3.3
R4(config)#router ospf 1
R4(config-router)#distance 109 0.0.0.0 255.255.255.255 1
R4(config-router)#end
R4#clear ip route *
*Mar 1 04:32:42.526: %SYS-5-CONFIG_I: Configured from console by
console R4#sh ip route ospf
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/75] via 14.0.0.1, 00:00:03, Ethernet0/0
33.0.0.0/32 is subnetted, 1 subnets
O E2 33.33.33.33 [110/20] via 14.0.0.1, 00:00:03, Ethernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O E2 3.3.3.3 [109/20] via 14.0.0.1, 00:00:03, Ethernet0/0
10.0.0.0/32 is subnetted, 3 subnets
O 10.0.0.2 [110/74] via 14.0.0.1, 00:00:03, Ethernet0/0
O 10.0.0.3 [110/74] via 14.0.0.1, 00:00:03, Ethernet0/0
O 10.0.0.1 [110/10] via 14.0.0.1, 00:00:03, Ethernet0/0
The common problem is that the address you need to match is the
"from" address. In OSPF this is the router-id of the originating
router. It differs from protocol to protocol what the originator is
(EIGRP is the neighbor's interface address), but it's always the "from"
address in the show ip route output.
R4#sh ip route 3.3.3.3
Routing entry for 3.3.3.3/32
Known via "ospf 1", distance 109, metric 20, type extern 2, forward
metric 74
Last update from 14.0.0.1 on Ethernet0/0, 00:01:53 ago
Routing Descriptor Blocks:
* 14.0.0.1, from 10.0.0.3, 00:01:53 ago, via Ethernet0/0
Route metric is 20, traffic share count is 1
In this case 3.3.3.3 was originated by the router with RID 10.0.0.3.
HTH,
Brian McGahan, CCIE #8593
bmcgahan@internetworkexpert.com
Internetwork Expert, Inc.
http://www.InternetworkExpert.com
Toll Free: 877-224-8987 x 705
Outside US: 775-826-4344 x 705
24/7 Support: http://forum.internetworkexpert.com
Live Chat: http://www.internetworkexpert.com/chat/
> -----Original Message-----
> From: Edwards, Andrew M [mailto:andrew.m.edwards@boeing.com]
> Sent: Wednesday, November 10, 2004 2:24 PM
> To: Brian McGahan; Swaroop Potdar; ccielab@groupstudy.com
> Subject: RE: OSPF : Commands Doubt.
>
> Also, I have found for myself, and would like to reiterate, that most
> people don't realize the command only applies to internal OSPF learned
> routes as well. Just like with EIGRP and this command.
>
> If I'm wrong then I need to really go look at this again, but that was
a
> huge eye opener to me...
>
> Especially when I'm banging on the keyboard at 1am trying to get
> external routes to change their AD this way... There is only so much
> banging my keyboard can take before it just wont work. 8)
>
> andy
>
> -----Original Message-----
> From: Brian McGahan [mailto:bmcgahan@internetworkexpert.com]
> Sent: Tuesday, November 09, 2004 6:01 PM
> To: Swaroop Potdar; ccielab@groupstudy.com
> Subject: RE: OSPF : Commands Doubt.
>
>
> Swaroop,
>
> The wildcard mask is simply used to determine which bits in the
> address field are significant. For example, to change the distance to
> 100 for routes matched in access-list 1 from all sources the syntax
> would read:
>
> distance 100 0.0.0.0 255.255.255.255 1
>
> To match routes only learned from 1.2.3.4:
>
> distance 100 1.2.3.4 0.0.0.0
>
> If your syntax worked by matching the access-list of the
neighbor
> then it was just coincidental that the originating address
and
> the neighbor address fall within that range.
>
>
> HTH,
>
> Brian McGahan, CCIE #8593
> bmcgahan@internetworkexpert.com
>
> Internetwork Expert, Inc.
> http://www.InternetworkExpert.com
> Toll Free: 877-224-8987 x 705
> Outside US: 775-826-4344 x 705
> 24/7 Support: http://forum.internetworkexpert.com
> Live Chat: http://www.internetworkexpert.com/chat/
>
> > -----Original Message-----
> > From: Swaroop Potdar [mailto:swarooppotdar@hotmail.com]
> > Sent: Tuesday, November 09, 2004 5:29 PM
> > To: Brian McGahan; ccielab@groupstudy.com
> > Subject: RE: OSPF : Commands Doubt.
> >
> >
> > Hi Brian,
> >
> > Thanks!
> >
> > I was trying to actually match the source /next hop address with a
/32
>
> > mask
> >
> > but actually i think the right thing was to use the actual mask for
> that
> > source address, which can be verified by " sh ip route (source
> address)"
> >
> >
> >
> >
> > >From: "Brian McGahan" <bmcgahan@internetworkexpert.com>
> > >To: "Swaroop Potdar"
> <swarooppotdar@hotmail.com>,<ccielab@groupstudy.com>
> > >Subject: RE: OSPF : Commands Doubt.
> > >Date: Tue, 9 Nov 2004 10:47:05 -0500
> > >
> > >Swaroop,
> > >
> > > You don't want to match on the next-hop IP address. Instead you
>
> > >need to match the route source. This is the address seen in the
> "from
> > >w.x.y.z" field when you do a "show ip route a.b.c.d", where a.b.c.d
> is
> > >the prefix in question.
> > >
> > >
> > >HTH,
> > >
> > >Brian McGahan, CCIE #8593
> > >bmcgahan@internetworkexpert.com
> > >
> > >Internetwork Expert, Inc. http://www.InternetworkExpert.com
> > >Toll Free: 877-224-8987 x 705
> > >Outside US: 775-826-4344 x 705
> > >24/7 Support: http://forum.internetworkexpert.com
> > >Live Chat: http://www.internetworkexpert.com/chat/
> > >
> > >
> > > > -----Original Message-----
> > > > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On
> Behalf
> > >Of
> > > > Swaroop Potdar
> > > > Sent: Tuesday, November 09, 2004 8:41 AM
> > > > To: ccielab@groupstudy.com
> > > > Subject: OSPF : Commands Doubt.
> > > >
> > > > Hi,
> > > >
> > > > Since the command for changing the distance is available on a
per
> hop
> > > > basis
> > > > in OSPF it doesnt seem to work.
> > > >
> > > > distance x (ip address next-hop) (mask) (acceslist matching
> routes)
> > > >
> > > > distance x 10.1.1.1 255.255.255.0 1
> > > >
> > > > Is this fundamental or ??
> > > >
> > > > and also the
> > > >
> > > > default-information originate [route-map] always
> > > > doesnt work when the route matched in the route map vanishes in
> OSPF.
> > > >
> > > > Without the route-map it just works fine.
> > > >
> > > > Can some pls provide some inputs on these topics...
> > > >
> > > > Thanks,
> > > >
> > > > Swaroop.
> > > >
> > > > Regards,
> > > > Swaroop.
> > > >
------------------------------------------------------------------
> > > > Life Is Short & Sweet.
> > > > Live It To The Fullest.
> > > >
------------------------------------------------------------------
> > > >
> > > >
This archive was generated by hypermail 2.1.4 : Thu Dec 02 2004 - 06:57:41 GMT-3