Sergio Polini wrote:
<snip>
> default 23.252.112.1 0.0.0.0 UG 0 0
0 eth0
> default 192.168.2.1 0.0.0.0 UG 2000 0
0 wlan0
<snip>
I didn't follow this thread completeley but having two
default routes
is definitly the cause of slow (or even unworkable)
networking.
I would write a script that is run at bootlevel to determine
if
you have eth0 or wlan0 or both and change things at the
default
level accordingly (including dhcp, iptables, routing and
maybe
other things as well).
I did this on several machines and laptops. If the existence
of
wlan0 depends on a pcmcia card you can simply test it at
bootlevel
with ifconfig. If wlan0 is always existing (e.g. by a
pci-nic) but
you don't want to use it, you might create different ways of
booting the system (with or without wlan0) by suffixing your
kernelcommand in grub.conf with wlan0 or not and in your
script
test with "grep wlan0 /proc/commandline" (or
something like that).
Regards,
Hans.
--
gentoo-user gentoo.org mailing list
|