Bug 167593 - system-config-network doesn't add default gw in DHCP mode if greyed out default gateway previously configured.
Summary: system-config-network doesn't add default gw in DHCP mode if greyed out defau...
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:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-09-06 01:30 UTC by Steven Elliott
Modified: 2007-11-30 22:11 UTC (History)
0 users

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


Attachments (Terms of Use)

Description Steven Elliott 2005-09-06 01:30:51 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.0.4-1.3.1 Firefox/1.0.4

Description of problem:
When a one of the devices in system-config-network is in DHCP mode, but there is a greyed out "Default gateway address" from a previous static IP address configuration, the resulting non-blank "GATEWAY=" in the /etc/sysconfig/network-scripts/ifcfg-<interface> file causes the DHCP client to ignore the "routers" option.  So, a default gateway is not configured.

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

How reproducible:
Always

Steps to Reproduce:
1. Configure an intreface, such as eth0 (any will work) with a static IP adderss with a "Default gateway address".
2. Save the interface.
3. Change to DHCP mode by moving the radio button to "Automatically obtain IP address settings with dhcp".
4. Attempt to bring up the intreface in DHCP mode using a DHCP server that will provide a default gateway via the "option routers <default gateway>" option in /etc/dhcpd.conf
  

Actual Results:  A default gateway was not created.  Manually creating the default gateway with 
    route add default gw <ip addr of the gateway>
where the IP address is obtained from
    grep routers /var/lib/dhcp/dhclient-eth0.leases | tail -1
fixes the problem.  It does not route correctly without the default gateway.

Expected Results:  The default gateway should have been created.  One way of fixing the problem would  be for the DHCP client to ignore the "GATEWAY=" attribute if "BOOTPROTO=dhcp".

Additional info:

Comment 1 Harald Hoyer 2006-05-19 10:14:30 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.