[nsp] ospf (cisco and zebra)

Pavel Narozhniy pasha@sumy.net
Wed, 30 Oct 2002 08:58:43 +0200


Mark Kent wrote:
> Hello,
> 
> I've got a cisco/ospf/zebra query...
> 
> The facts:
> 
>   two freebsd boxes on a fastethernet sub-interface (802.1q)
>   serviced by a cisco7206.
> 
>   freebsd boxes have the same set of IP addresses, X, attached to their
>   loopback interfaces.
> 
>   freebsd boxes run ospf using zebra
> 
> The goal:
> 
>   one freebsd box to be preferred for packets destined for X
>   (from the point of view of the cisco7206).
>   The other one would not get any packets destined for X 
>   delivered to it.
> and
>   I'ld like the preference to be dictated by the freebsd boxes
>   and not by me on the cisco7206.
> 
>   Naturally, when the preferred box goes away (dies, for example)
>   the ospf session would go away and then I'ld want to start
>    delivering packets to the previously un-preferred box.
> 
> My problem:
>   I can't get it working.
> 
> Symptoms:
>   All I ever seem to get from the cisco point of view is
>   equal cost paths.
> 
> What I need:
>   Hints about how to do this using ospf
>   or reasons why I shouldn't be using ospf
>   (yes, I am aware of vrrp)


You must set adjust cost value on interface of a freebsd box.

vlan0 is up, line protocol is up
   Internet Address XXX.XXX.XXX.XXX/XX, Area 0.0.0.0
   Router ID XXX.XXX.XXX.XXX, Network Type BROADCAST, Cost: 10
                                                      ~~~~~~~~

   Transmit Delay is 1 sec, State DR, Priority 1
   Designated Router (ID) XXX.XXX.XXX.XXX, Interface Address XXX.XXX.XXX.XXX
   Backup Designated Router (ID) XXX.XXX.XXX.XXX, Interface Address XXX.XXX.XXX.XXX
   Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
     Hello due in 00:00:01
   Neighbor Count is 4, Adjacent neighbor count is 4


Use command "ospf interface cost <value>" in config mode of ospfd of zebra.


-- 
Pavel Narozhniy
nic-hdl: PN395-RIPE, PN2-UANIC
http://noc.sumy.net