[haiku-development] Using more than one network interface, multiple default routes

  • From: Jérôme Duval <korli@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 4 Aug 2011 18:47:49 +0200

Hi,

On a current revision, I noticed that, when two network interfaces are
up, I get two default routes.
Is this a normal situation? For instance on Linux, I got only one
default route in this case.

Also packets go either through one or the other interface, randomly on
each boot, depending on the order of the routes.

Is this worth a ticket?

Bye,
Jérôme

~> ifconfig
loop    Hardware type: Local Loopback, Address: none
        inet addr: 127.0.0.1, Mask: 255.0.0.0
        MTU: 16384, Metric: 0, up loopback link
        Receive: 0 packets, 0 errors, 0 bytes, 0 mcasts, 0 dropped
        Transmit: 0 packets, 0 errors, 0 bytes, 0 mcasts, 0 dropped
        Collisions: 0

/dev/net/atheros813x/0
        Hardware type: Ethernet, Address: 00:1e:33:25:c5:66
        Media type: 100 MBit, 100BASE-TX
        inet addr: 192.168.0.5, Bcast: 192.168.0.255, Mask: 255.255.255.0
        MTU: 1500, Metric: 0, up broadcast link auto-configured
        Receive: 6 packets, 0 errors, 3012 bytes, 0 mcasts, 0 dropped
        Transmit: 7 packets, 0 errors, 1847 bytes, 0 mcasts, 0 dropped
        Collisions: 0

/dev/net/iprowifi4965/0
        Hardware type: Ethernet, Address: 00:1e:64:41:01:40
        Network: SFR WiFi Public, Address: 00:17:33:f2:22:da, (encrypted), /
        inet addr: 192.168.2.18, Bcast: 192.168.2.255, Mask: 255.255.255.0
        MTU: 1500, Metric: 0, up broadcast link auto-configured
        Receive: 7 packets, 0 errors, 1934 bytes, 0 mcasts, 0 dropped
        Transmit: 8 packets, 0 errors, 2156 bytes, 0 mcasts, 0 dropped
        Collisions: 0

~> route
      127.0.0.1 mask                 loop, host local
   192.168.2.18 mask                 /dev/net/iprowifi4965/0, host local
    192.168.0.5 mask                 /dev/net/atheros813x/0, host local
    192.168.2.0 mask 255.255.255.0   /dev/net/iprowifi4965/0
    192.168.0.0 mask 255.255.255.0   /dev/net/atheros813x/0
      127.0.0.0 mask 255.0.0.0       loop
        0.0.0.0 mask 0.0.0.0         gateway 192.168.2.1
/dev/net/iprowifi4965/0, default
        0.0.0.0 mask 0.0.0.0         gateway 192.168.0.254
/dev/net/atheros813x/0, default

Other related posts: