Bug 162902 - Switching between static and dhcp leaves static settings for gateway
Summary: Switching between static and dhcp leaves static settings for gateway
Keywords:
Status: CLOSED DUPLICATE of bug 149780
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-network
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact:
URL:
Whiteboard:
Depends On: 162648
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-07-11 15:35 UTC by Darren Fulton
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-05-19 10:35:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Darren Fulton 2005-07-11 15:35:31 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4

Description of problem:
If ethernet interface is configured with static network settings in the ifcfg-eth$ file and then switched to DHCP using system-config-network, it leaves the network settings in the ifcfg-eth$ file and just changes BOOTPROTO=dhcp.  That causes the interface to get network settings via DHCP, when the interface is activated, with the exception of the gateway.  If the gateway entry is not set to blank, the interface will not have get a gateway via DHCP.  If the static gateway setting that was left behind is removed, the interface gets a static route added to the gateway, which is desirable.

Version-Release number of selected component (if applicable):
system-config-network-1.3.26-1

How reproducible:
Always

Steps to Reproduce:
1. configure a network interface with valid static settings using system-config-networking
2. modify ifcfg-eth$ to include a gateway
3. activate the interface
4. modify interface to get settings via dhcp on a network with a good dhcp server
5.  reactivate the interface.  Interface will receive network settings from DHCP with the exception of the gateway.

Actual Results:  If the gateway entry is not set to blank, the interface will not have get a gateway via DHCP.

Expected Results:  If the static gateway setting that was left behind is removed, the interface gets a static route added to the gateway, which is desirable.

Additional info:

This behavior would be very confusing to most people.

Comment 1 Weston Schmidt 2005-07-28 04:40:08 UTC
Hi,  I just found this exact bug with my system.  I spent half of last night and
a few hours today trying to figure out what was wrong with my NAT server until
my wife told me that she was able to communicate with the outside world.

Is this project's repository externally available somewhere?  I am interested to
see if I can fix this & submit the patch.

Thanks,
Weston Schmidt

Comment 2 Sean Coleman 2006-03-14 07:25:59 UTC
It would be nice if system-config-network removed all entries in
the ifcfg-* file relating to the old static IP information to make
the config file look clean

Comment 3 Harald Hoyer 2006-03-14 07:36:55 UTC
on the other hand, people want to switch between static and dynamic without
entering all information again... :-/

Comment 4 Harald Hoyer 2006-05-19 10:35:12 UTC

*** This bug has been marked as a duplicate of 149780 ***


Note You need to log in before you can comment on or make changes to this bug.