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):
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".
*** This bug has been marked as a duplicate of 149780 ***