Set specific next-hops for OSPF routes redistributed from static

Discussion in 'Cisco' started by philbo30, Jul 13, 2007.

  1. philbo30

    philbo30 Guest

    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?
     
    philbo30, Jul 13, 2007
    #1
    1. Advertisements

  2. philbo30

    gcave Guest

    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)
     
    gcave, Jul 14, 2007
    #2
    1. Advertisements

  3. philbo30

    gcave Guest

    You could also use the distribution-list 1 in s0/0 for incoming
    routes, the out will not send egress routes.
     
    gcave, Jul 14, 2007
    #3
  4. philbo30

    Merv Guest

    Merv, Jul 14, 2007
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.