James Knott writes:
Ti Kan wrote:
[ no default gateway for eth0 when wireless antenna is turned off ]
What's wrong and how can I fix this? I'd like the laptop to be able to plug-and-play on anyone's LAN as long as there is a working DHCP server, without having to manually add a default gateway.
Is the wireless NIC disabled, using the ifconfig command?
No, I just let it time out when it boots and it backgrounds itself.
If it's enabled, that might be the cause of your problem.
Sure looks like it. It seems that if the machine has two network interfaces both using DHCP, even though the first one (which is my wireless) doesn't get a DHCP server response and the second one (my ethernet) does, a default gateway does not get set up based on the DHCP response from the second.
You might also try using different profiles. I have my system configured to boot up, using the ethernet NIC and if I want wireless, run a script, that shuts down the ethernet and starts up the wireless. I have another script that does the reverse as well.
I just came across SCPM and Profiles while perusing the SuSE Admin Guide. Haven't played with this before but it looks promising. I'll see what it could do. Thanks for the tip. -Ti -- Ti Kan http://www.amb.org/ti Vorsprung durch Technik