Double gateway in LAN

"Sam Lefebvre" <[email protected]> Thu, 4 Mar 2010 12:21:32 +0100
Newsgroups gmane.linux.drivers.madwifi.user
Message-ID <[email protected]>
Hi,

Can anyone tell me how I can avoid that both interfaces (fixed and wireless)
cause a double default gateway after startup? In that case, i don't have
wan-connectivity. When i shutdown the wlan0 interface and it bring up again,
the problem is solved. Why? I don't think that I always have to repeat this
procedure after every startup.

The fixed interface eth0 is manual configured and the wifi wlan0 uses dhcp
with ath5k and wpa_supplicant.
I recently uninstalled network-manager because it was always conflicting
with wpa_supplicant.  

sam@Alix3d3:~$ netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
192.168.2.0     *               255.255.255.0   U         0 0          0
eth0
192.168.2.0     *               255.255.255.0   U         0 0          0
wlan0
link-local      *               255.255.0.0     U         0 0          0
eth0
default         192.168.2.1     0.0.0.0         UG        0 0          0
eth0
default         192.168.2.1     0.0.0.0         UG        0 0          0
wlan0
sam@Alix3d3:~$ sudo ifconfig wlan0 down 
sam@Alix3d3:~$ sudo ifconfig wlan0 up
sam@Alix3d3:~$ netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
192.168.2.0     *               255.255.255.0   U         0 0          0
eth0
192.168.2.0     *               255.255.255.0   U         0 0          0
wlan0
link-local      *               255.255.0.0     U         0 0          0
eth0
default         192.168.2.1     0.0.0.0         UG        0 0          0
eth0
sam@Alix3d3:~$

Kind regards,
Sam  


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev