Red Hat Bugzilla – Bug 488332
[enh] ifcfg-rh: handle routes-* files
Last modified: 2010-07-22 08:30:45 EDT
Description of problem:
Static routes placed in /etc/sysconfig/network-scripts/route-<interface> files are not added when the interface is added by NetworkManager.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a route-eth0 file by hand or through system-config-network
2. Select the interface with NetworkManager
No static route
static routes added
I can make this work by addind a script to /etc/NetworkManager/dispatcher.d/
like this (found on a forum):
# START SCRIPT
if [ -x /usr/bin/logger ]; then
LOGGER="/usr/bin/logger -s -p user.notice -t NetworkManager"
if [ ! -x /etc/sysconfig/network-scripts/ifup-routes ]; then
$LOGGER "script ifup-routes missing or nor executable"
if [ -n $1 ] && [ $2 == "up" ]; then
$LOGGER "adding statis routes for $1"
# END SCRIPT
The static route can also be added by using the "Routes" button in the Network Manager dialog windows. In any case, it still doesn't work and the static route is not added during cold boot.
But, from within Gnome, if you use network manager to disconnect and then connect to the same network, the static route is added correctly to the routing table. You can also restart the "Network" service and it will be added.
In my case, I have both the "Network" service enabled and Network manager is controlling the eth0 interface. I have a dual NIC and maybe this is related to the problem? My eth1 interface is disabled and not being used. I read somewhere on the net that there are problems related to using Network manager in a dual-NIC configuration.
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.
More information and reason for this action is here:
A patch adding route-<interface> handling functionality attached to
*** This bug has been marked as a duplicate of bug 507307 ***