Set specific next-hops for OSPF routes redistributed from static

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?

Reply to
philbo30
Loading thread data ...

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)

Reply to
gcave

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

Reply to
gcave

for OSPF you cannot specifyan interface with the out keyword

see

formatting link

Reply to
Merv

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.