Routing : How to force outgoing ethernet interface

From: Alexandre Déry/dgt/sct (Alexandre.Dery_at_sct.gouv.qc.ca)
Date: 07/29/04

  • Next message: IMA-E, ULINET: "Booting from DVD"
    To: sunmanagers@sunmanagers.org
    Date: Thu, 29 Jul 2004 10:02:24 -0400
    
    

    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


  • Next message: IMA-E, ULINET: "Booting from DVD"

    Relevant Pages

    • Re: Cant send packets via WiFi (possibly route issue)
      ... I think that this WiFi device should route all ... it should *all* be routed to the eth1 interface. ... Wireless is much like a point-to-point link using ... The connection between the two networks is the "Wifi AP". ...
      (comp.os.linux.networking)
    • RE: Running public IPs inside an RFC 1597 network
      ... > I'm running a typical Class C RFC 1597 network in my lab. ... know or care if we humans designate a subnet as public or private. ... is the absolute most general route there is for a machine. ... In a correctly configured system when you define an interface, ...
      (freebsd-questions)
    • Equal cost paths from separate OSPF Processes
      ... the network statements are valid in all OSPF processes. ... interface Serial0.300 point-to-point ... router#sh ip route ospf ... connected, includes subnets in redistribution ...
      (comp.dcom.sys.cisco)
    • Re: panic in rt_check_fib()
      ... It dropped a the lock on one route while it went off an did something ... then brings up the wired interface of my laptop. ... echo '## Bringing up network interface.' ... With your version of rt_check_fibI have no panics so far. ...
      (freebsd-current)
    • kludgily solved: bridge with access on both interfaces
      ... address on each interface that is only accessible ... from its own interface side of the bridge - which is actually what we ... there are some checks in the ARP code ... wound up having better luck with route, though it was still a struggle ...
      (freebsd-net)