On Wed, Feb 22, 2012 at 05:05:28PM +0100, Mathieu BLANC wrote: > Hello ! > > I have an OSPF setup with 4 routers : > > INTERNET > | | > C1 C2 > |----| > O1 O2 > | | > NE1 NE2 > > C1 and C2 are Cisco Routers, O1 and O2 OpenBSD. > OSPF is used between C1/C2/O1/O2 > NE1 is the network managed by O1, NE2 the network managed by O2. > > C1 and C2 distribute a default route to O1/O2 (same metric) > > Is there a way, in ospfd, to say to O1 : "C1 is your prefered default > route" and to O2 : "C2 is your prefered default route" ? > > The link between O1---C2 (and O2---C1) is a very slow line and should be > used just as backup. > > If i use different metric on C1/C2, i think O1 and O2 will use the same > router (and by the way one of them will use the slow link). Maybe i have > missed something ? >
If C1, C2, O1 and O2 share the same L2 network then you're out of luck. For OSPF a L2 network has no metric -- only the uplinks into the L2 network have a metric but that does not matter in your case. There are some more or less evil ways to workaround this. IMO the cleanest would be to make sure that the slow link between the systems shows up as different network (e.g. by using VLANs). Then it is possible to introduce higher metrics for this link. -- :wq Claudio

