Bug 269836

Summary: if-up script does not set default route and dns
Product: [openSUSE] openSUSE 10.2 Reporter: Edwin Boersma <edwin>
Component: NetworkAssignee: Christian Zoz <zoz>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Edwin Boersma 2007-04-29 08:06:17 UTC
Hi,

I have a laptop and work wireless in the office. At home, I have a dial up connection and at customers sometimes a cable connection.

The problem is that the ifup script sets the default route only for the dhclient that was started first:
# Per default, only the DHCP client that is started first will be allowed to
# change the default route / resolver configuration etc.  All other running
# clients will only configure the interface with an address, but not change
# "global" configuration.

In most cases, this is eth0, the cable interface. I can set eth1 to be default (with DHCLIENT_PRIMARY_DEVICE=yes), but it still doesn't work for my dialup, which is my third interface.

This is certainly a problem for mobile/laptop users! It should be changed to the __first__ interface that gets a DHCP_ACK from the DHCP server. There are never two interfaces that will get an address at the same moment. The current situation is unworkable for those that use different kind of connections on a regular basis.

Regards,

Edwin
Comment 1 Christian Zoz 2007-07-31 10:19:59 UTC
If never two interfaces will get an address at the same moment, why do you want to have them active at all? Use STARTMODE=ifplugd (together with IFPLUGD_PRIORITY=<priority>)

Further you might have a look at package scpm (System Configuration Profile Manager) and use it. With it you can easily switch between different configuration profiles.

Last but not least, NetworkManager should work well for you.