Double gateway in LAN

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Double gateway in LAN

Sam Lefebvre
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® 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
_______________________________________________
Madwifi-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/madwifi-users
Reply | Threaded
Open this post in threaded view
|

Re: Double gateway in LAN

Pavel Roskin
On Thu, 2010-03-04 at 12:21 +0100, Sam Lefebvre wrote:
>
> The fixed interface eth0 is manual configured and the wifi wlan0 uses dhcp
> with ath5k and wpa_supplicant.

You are not even using MadWifi, then why are you asking here?  Please
don't send off-topic questions to this mailing list.  This mailing list
is about MadWifi driver, not about network administration.

--
Regards,
Pavel Roskin

------------------------------------------------------------------------------
Download Intel® 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
_______________________________________________
Madwifi-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/madwifi-users