Bug 448554

Summary: undefined default gateway after network installation
Product: [Fedora] Fedora Reporter: Erik Heckers <erik.heckers>
Component: anacondaAssignee: David Cantrell <dcantrell>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 9CC: nik
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-30 03:38:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 458183    
Bug Blocks:    

Description Erik Heckers 2008-05-27 16:53:06 UTC
Description of problem:
Default gateway not properly set after network installation

After installing Fedora 9 my /etc/sysconfig/network looks like this:

But the (ipv4) default gateway is not set, route command lists:
# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
__net__      *        U     0      0        0 eth0

As soon as I remove the line "IPV6_DEFAULTGW=" and restart networking
with "/etc/init.d/network restart" everything is okay.
# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
__net__      *        U     0      0        0 eth0
default         __mygw__         UG    0      0        0 eth0

I tried installing using the "noipv6" option, but still got that 

Version-Release number of selected component (if applicable):
As provided by Fedora 9 images

How reproducible:

Steps to Reproduce:
1. Install Fedora 9 over network (with static ip in ks.cfg)
2. Check routing with "route" - default route missing.

Actual results:
/etc/sysconfig/network looks okay, but as long as the
line "IPV6_DEFAULTGW=" is in there no default route is set
when restarting network with "/etc/init.d/network restart".

Expected results:
Default route using the gateway specified in /etc/sysconfig/network
with "GATEWAY=gw"
The "IPV6_DEFAULTGW" is something new, I have never seen it with
installation of RHEL 3,4, or 5.

Additional info:
In ks.cfg I have
network --device eth0 --bootproto static --ip __myip__ --netmask
--gateway __mygw__ --hostname __myhost__ 

Workaround: Remove line "IPV6_DEFAULTGW=" from /etc/sysconfig/network in
%post section of ks.cfg.


Comment 1 Nik Lam 2008-07-29 00:43:15 UTC
I can confirm most of this behaviour when installing from DVD in GUI mode,
except the workaround for me is quite different.

I configured IPV4 manually and when I boot up the newly installed system, there
is no default route, according to "netstat -rn".

Kernel IP routing table
Destination     Gateway          Genmask        Flags    MSS Window   irtt Iface  U          0 0           0 eth0

However, unlike in Erik's case, neither commenting out the IPV6_DEFAULTGW line
in /etc/sysconfig/network with a "#" or deleting the line entirely solves the

For me, I had to add "GATEWAY=" to my
/etc/sysconfig/network-scripts/ifcfg-eth0 script to get the default route to
appear after a reboot.

Comment 2 Nik Lam 2008-07-29 06:07:44 UTC
I've just done a yum update, and now the original /etc/sysconfig/network and
/etc/sysconfig/network-scripts/ifcfg-eth0 as created during the install work fine.