Bug 626107 - ifup script for bridge device does not properly obtain the default route
Summary: ifup script for bridge device does not properly obtain the default route
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: dhcp
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jiri Popelka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-22 00:39 UTC by Russ
Modified: 2010-09-13 08:39 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-09-13 08:39:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Russ 2010-08-22 00:39:34 UTC
Description of problem:
When using libvirt with bridged networking you must manually configure a bridge device as per instructions on the libvirt wiki:
<a href>http://wiki.libvirt.org/page/Networking</a>

In Fedora 12 the bridge device worked fine and properly obtained all settings via DHCP. In Fedora 13, however, the bridge device does not obtain the default route. The default route must be manually added afterwards by using the command:
route add default gw <gateway address>

The component is listed as initscripts since that is the package that contains the ifup script. I'm not certain if the problem is in the networking scripts or somewhere else like the dhclient. All I know is the bridge worked fine in F12 and now it does not in F13. Please refer the issue to the proper maintainer if it is not an initscripts issue.

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. add bridge device (it is not necessary to have libvirt installed)
2. /sbin/service network restart
3. is there a default route?
  
Actual results:
no default route is configured

Expected results:
a default route is configured

Additional info:

Comment 1 Bill Nottingham 2010-08-23 15:56:14 UTC
Is NetworkManager active?

Comment 2 Russ 2010-09-06 01:39:43 UTC
(In reply to comment #1)
> Is NetworkManager active?

No.

Please, please, don't ask us to activate it. . . ;)

Comment 3 Bill Nottingham 2010-09-07 17:04:03 UTC
Just making sure.

dhclient-script sets the default route. Assigning there.

Comment 4 Russ 2010-09-08 19:20:29 UTC
Not a bug after all. Just a change in behaviour in updated packages, and a lack of good documentation in http://wiki.libvirt.org/page/Networking.

Problem turned out to be the following:

In "NORMAL" network configurations a VERY sparse /etc/sysconfig/network is all that is needed:

~]$ cat /etc/sysconfig/network
NETWORKING=yes

But if you are using a bridge device such as when using libvirt you MUST specify the default gateway device:

~]$ cat /etc/sysconfig/network
NETWORKING=yes
GATEWAYDEV=br0

If you do not specify the default gateway device in either the main network configuration file (/etc/sysconfig/network), or in the configuration file for actual gateway device (/etc/sysconfig/network-scripts/ifcfg-br0) the default route will never be configured.

So if GATEWAYDEV=br0 is only present in ifcfg-ethX the default route will never get configured.

Better documentation of this behaviour is needed, as after the update from F12 to F13 until now we had to use a script to configure the default route.

Comment 5 Jiri Popelka 2010-09-13 08:39:31 UTC
Thank you for the explanation. Closing as notabug then.


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