Redistribute static to OSPF, overriding the slower OSPF-native route?

Discussion in 'Cisco' started by E.Finlayson, Sep 10, 2004.

  1. E.Finlayson

    E.Finlayson Guest

    Interesting question for you experts:

    I've got three routers in a network loop, arranged as such:

    ROUTER1--------- 100BaseTX -------ROUTER2
    \ /
    100BaseTX T1
    \ /
    FW1---VPN---FW3---ROUTER3--

    The links between ROUTER1 and ROUTER2, and ROUTER2 and ROUTER3, are
    point-to-point links running OSPF. The link between ROUTER1 and
    ROUTER3 is a VPN tunnel over an ISP routed private backbone, and can
    only run static routes. All routers are in Area 0, and each has a
    LAN behind it of the same number (ROUTER1 has 192.168.1.0/24, etc.)

    Router IPs:
    ROUTER1 192.168.255.1/30 to ROUTER2 192.168.255.2/30
    ROUTER2 192.168.255.5/30 to ROUTER3 192.168.255.6/30
    ROUTER1 192.168.255.9/30 to FW1 192.168.255.10/30
    ROUTER3 192.168.255.13/30 to FW3 192.168.255.14/30

    Right now, in order to get traffic to use the fastest link, I have to
    write a static route into ROUTER2 to go to ROUTER1 to reach ROUTER3.
    The firewall-to-router and firewall-to-firewall connections are all
    configured correctly, as with the static route in place, connectivity
    is fine.

    On ROUTER1, I've done this:
    ip route 192.168.3.0 255.255.255.0 192.168.255.10
    router ospf 1
    redistribute static metric 20 metric-type 1 subnets

    And doing a show ip ospf database on all the routers show the
    now-advertised route under External Link states:
    192.168.3.0 192.168.255.9 317 0x80000777 0x2620 0

    But when I drop the static route off ROUTER2, it chooses the
    higher-cost (48) native-OSPF route over the lower-cost (21 total, by
    my calculation) redistributed route.

    Any ideas on what I'm missing, or how to get this to work?

    (Oh, and ideally, I'd love to have ROUTER3 doing the reverse:
    advertising a 20-cost route to ROUTER1's LAN via the VPN in case the
    192.168.255.4/30 net goes down... but that's way, way down on my
    list.)
     
    E.Finlayson, Sep 10, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    3,579
    Vincent C Jones
    Jun 5, 2007
  2. SAF
    Replies:
    0
    Views:
    2,328
  3. Replies:
    12
    Views:
    13,689
  4. Replies:
    9
    Views:
    5,343
    Scott Perry
    Aug 7, 2008
  5. Paul
    Replies:
    2
    Views:
    1,408
Loading...

Share This Page