This service will be undergoing maintenance at 00:00 UTC, 2016-09-28. It is expected to last about 1 hours
Bug 162902 - Switching between static and dhcp leaves static settings for gateway
Switching between static and dhcp leaves static settings for gateway
Status: CLOSED DUPLICATE of bug 149780
Product: Fedora
Classification: Fedora
Component: system-config-network (Show other bugs)
4
All Linux
medium Severity medium
: ---
: ---
Assigned To: Harald Hoyer
:
Depends On: 162648
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-11 11:35 EDT by Darren Fulton
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-05-19 06:35:12 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Darren Fulton 2005-07-11 11:35:31 EDT
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 00:40:08 EDT
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 02:25:59 EST
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 02:36:55 EST
on the other hand, people want to switch between static and dynamic without
entering all information again... :-/
Comment 4 Harald Hoyer 2006-05-19 06:35:12 EDT

*** 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.