Routing : How to force outgoing ethernet interface

From: Alexandre Déry/dgt/sct (Alexandre.Dery@sct.gouv.qc.ca)
Date: Thu Jul 29 2004 - 10:02:24 EDT


Hi gurus,

I have a machine with an interface qfe0 with ip address 192.168.2.132, and
the default route is 192.168.2.1 (set with "route add default
192.168.2.1"). The interface works fine, and so does the default route...
I plumb a second interface, qfe1, with ip addresss 192.168.2.131. Now I
have 2 interfaces on the same subnet (2.131 and 2.132). Everything is
fine.

The problem :

At this point, all the traffic that goes out the default route is using
qfe0 (192.168.2.132), because it was the first one to be plumbed.

What I would like is a way change de default route to force the traffic to
go out the qfe1 interface (with ip 192.168.2.131).

I tried a few things late last night (mostly interface metrics) but it
didn't work. I tried route with the -ifq parameter with no luck... maybe I
had the wrong syntax though.

So, the question is : How can I change my default route to force traffic
to go out of the newly plumbed qfe1 (192.168.2.131) interface, instead of
qfe0 (192.168.2.132) ?

Thanks !

Alexandre Dery
Technicien, SCSA, CCNA
Direction ginirale des technologies de l'information et des communications
1500E, rue Jean-Talon Nord 1er itage
Sainte-Foy (Quibec) G1N 4T6
Tiliphone: (418) 646-9273
Tilicopieur: (418) 528-0418
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:10 EDT