Ti Kan wrote:
Some background info:
I have a new Toshiba A65 laptop which is now running dual boot with SuSE 9.1 Pro and WinXP. This laptop has a built-in 802.11g wireless as well as a 10/100 ethernet interface. The wireless antenna can be turned on and off via a switch.
I have a home ethernet LAN as well as a Netgear 802.11g-to-ethernet router. The ethernet LAN has another SuSE 9.1 machine acting as a DHCP server. The Netgear wireless-G router itself also acts as a DHCP server for all wireless devices. WinXP works perfectly on either interface.
Here is the problem:
Under SuSE 9.1, I configured both interfaces to use DHCP, but the machine will only set up a default gateway route to the Netgear router when I enable the wireless antenna. If I turn off the wireless antenna, and plug in the ethernet LAN, the system boots up with the correct IP number (served from the other SuSE-based DHCP server), but it does not set up a default gateway route.
If I add a /etc/sysconfig/network/ifroute-eth-id-*:*:*:*:*:* file with a hard-wired default route, then it works, but only if I use the laptop on my own LAN. I I plug the laptop into a foreign LAN (like when I bring my laptop to the office), it no longer sets up a default gateway.
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? If it's enabled, that might be the cause of your problem. 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.