Set specific next-hops for OSPF routes redistributed from static

Set specific next-hops for OSPF routes redistributed from static

NewsGroups | Search | Tools
 comp.dcom.sys.cisco  Post an article  get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Set specific next-hops for OSPF routes redistributed from static philbo30 07-13-2007
Posted by philbo30 on July 13, 2007, 11:50 am
If you were  Registered and logged in, you could reply and use other advanced thread options
I have the following OSPF routes in my routing table that have been
redistributed from static:

O E2 10.49.241.0/24 [110/5] via 172.22.246.79, 00:06:35,
FastEthernet1
[110/5] via 172.22.240.106, 00:06:35,
FastEthernet0

O E2 10.64.63.0/24 [110/5] via 172.22.246.79, 00:00:10,
FastEthernet1
[110/5] via 172.22.240.106, 00:00:10,
FastEthernet0

I need to make sure that network 10.49.241.0 is available via
172.22.246.79 and NOT available via 172.22.240.106 and that network
10.64.63.0 is available via 172.22.240.106 and NOT available via
172.22.246.79.


Note that the routes described above are being picked up by a Cisco
PIX during a network transition, so I have no control over the
"listener", I can only see the results.

What's the best approach? Route maps perhaps?


Posted by on July 14, 2007, 4:17 pm
> I have the following OSPF routes in my routing table that have been
> redistributed from static:
>
> O E2 10.49.241.0/24 [110/5] via 172.22.246.79, 00:06:35,
> FastEthernet1
> [110/5] via 172.22.240.106, 00:06:35,
> FastEthernet0
>
> O E2 10.64.63.0/24 [110/5] via 172.22.246.79, 00:00:10,
> FastEthernet1
> [110/5] via 172.22.240.106, 00:00:10,
> FastEthernet0
>
> I need to make sure that network 10.49.241.0 is available via
> 172.22.246.79 and NOT available via 172.22.240.106 and that network
> 10.64.63.0 is available via 172.22.240.106 and NOT available via
> 172.22.246.79.
>
> Note that the routes described above are being picked up by a Cisco
> PIX during a network transition, so I have no control over the
> "listener", I can only see the results.
>
> What's the best approach? Route maps perhaps?

I would say use a distribution-list -

access-list 1 deny 10.49.241.0 0.0.0.255
access-list 1 permit any
!
access-list 2 deny 10.64.63.0 0.0.0.255
access-list 2 permit any
!
router ospf 100
distribution-list 1 out s0/0 (This is the interface you want to
supress the 10.49.241.0 network)
distribution-list 2 out s0/1 (This is the interface you want to
supress the 10.64.63.0 network)


Posted by on July 14, 2007, 4:56 pm
> I have the following OSPF routes in my routing table that have been
> redistributed from static:
>
> O E2 10.49.241.0/24 [110/5] via 172.22.246.79, 00:06:35,
> FastEthernet1
> [110/5] via 172.22.240.106, 00:06:35,
> FastEthernet0
>
> O E2 10.64.63.0/24 [110/5] via 172.22.246.79, 00:00:10,
> FastEthernet1
> [110/5] via 172.22.240.106, 00:00:10,
> FastEthernet0
>
> I need to make sure that network 10.49.241.0 is available via
> 172.22.246.79 and NOT available via 172.22.240.106 and that network
> 10.64.63.0 is available via 172.22.240.106 and NOT available via
> 172.22.246.79.
>
> Note that the routes described above are being picked up by a Cisco
> PIX during a network transition, so I have no control over the
> "listener", I can only see the results.
>
> What's the best approach? Route maps perhaps?

You could also use the distribution-list 1 in s0/0 for incoming
routes, the out will not send egress routes.


Posted by Merv on July 14, 2007, 6:22 pm

for OSPF you cannot specifyan interface with the out keyword

see http://www.ciscotaccc.com/kaidara-advisor/iprout/showcase?case=K47811632


Similar ThreadsPosted
OSPF and Static routes convergence December 21, 2004, 11:16 pm
ospf and multiple static routes August 4, 2006, 1:39 pm
how to route traffic from server via specific static IP? May 1, 2008, 8:55 pm
Influencing OSPF Routes March 21, 2006, 8:07 pm
Routes received by BGP and OSPF February 5, 2007, 11:48 am
How do I remove routes from the OSPF RIF table ? August 26, 2005, 11:20 am
OSPF routes not in routing table June 10, 2006, 1:07 am
OSPF O routes vs. redist connected (E2) October 2, 2006, 12:01 pm
standby ASA doesn't learn ospf routes May 30, 2007, 2:24 pm
OSPF external routes filtering between areas March 21, 2006, 3:45 am

other useful resources:
The Federal Communications Commission (FCC)
Telecommunications Industry Association
Electronic and Software Security Products and Services
International Telecommunication Union

Custom CGI Perl and PHP programming by 1-Script.com

Contact Us | Privacy Policy
The site map in XML format XML site map