You are not logged in.

#1 2008-07-24 22:02:40

insane
Member
Registered: 2006-06-04
Posts: 106

Please help me configure the routing table

Yesterday I installed Arch in a laptop. I managed to get to the Internet with my wireless and my wired connection. Everything seemed fine. Today I tried to connect with the wireless and I couldn't. I located the problem to the routing table. It had only these lines

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth1
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0

eth0 is my wired interface and eth1 is my wireless interface. So I added the line

default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth1

One for each interface. Now the problem is that it always tries to use the wired eth0 even if here is no cable plugged. I have to bring the interface down for the wireless to work. After that even if I bring the eth0 back up the wireless still works and the corresponding line

default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0

does not appear in the routing table.

How can I make it so it can detect which interface is active and use the apropriate route? From dmesg I can see this line

ADDRCONF(NETDEV_UP): eth0: link is not ready

Offline

Board footer

Powered by FluxBB