Red Hat Bugzilla – Bug 1062409
default gateway broken if NetworkManager is disabled/uninstalled
Last modified: 2014-10-07 10:46:52 EDT
Description of problem:
network connection to computers outside the subnet is not possible, if NetworkManager is disabled/uninstalled.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. kickstart text-only installation with static IPv4 adress assignment (IPv6 disabled); uninstall NetworkManager in %post section
2. after installation:
$ cd /etc/sysconfig/network-scripts/
$ cat ifcfg-em1
GATEWAY0=<IPv4 gateway adress>
$ sed -i 's/0=/=/' ifcfg-em1
$ cat ifcfg-em1
GATEWAY=<IPv4 gateway adress>
$ systemctl restart network.service
#and everything works fine again
not possible to open external website with firefox
being able to open external website with firefox
This is a repost of bug 911949 because I could not change the Fedora version.
It is fixed in Fedora 21 - bug 771673.
This problem is also seen in RHEL 7.
(In reply to C.M. Connelly from comment #2)
> This problem is also seen in RHEL 7.
RHEL7 is already handled by bug 1105770.
NetworkManager-0.9.9.0-44.git20131003.fc20 has been submitted as an update for Fedora 20.
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing NetworkManager-0.9.9.0-44.git20131003.fc20'
as soon as you are able to, then reboot.
Please go to the following url:
then log in and leave karma (feedback).
NetworkManager-0.9.9.0-44.git20131003.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
I am using NetworkManager-0.9.9.0-45.git20131003.fc20.
If NetworkManager is uninstalled and you restart your F20 machine, connections to computers outside of local network is not possible. A simple ping will fail.
I suspect the reason is '/etc/sysconfig/network-scripts/ifcfg-em1' still uses GATEWAY0
sed -i 's/0=/=/' ifcfg-em1
systemctl restart network.service
is a workaround.
Shall I open a bug for a different package? Which package to blame?
The problem of writing GATEWAY has been fixed in NetworkManager-0.9.9.0-44.git20131003.fc20.
However, if there are old files with GATEWAY0, they need to be fixed as you did when you use legacy network.service.
sorry, I left out important information in my previous post:
I reinstalled my computer. There were no leftover files from previous installation.
The reinstallation was performed with a kickstart text-only installation.
It was initiated with a F20 USB thumb drive that was loaded with Fedora-20-x86_64-netinst.iso.
An update repo is specified. It is accessible and works.
The kickstart file contains static IPv4 adress assignment; IPv6 is disabled; NetworkManager package is uninstalled in %post section of kickstart file.
After installation '/etc/sysconfig/network-scripts/ifcfg-em1' contains GATEWAY0.
NetworkManager-0.9.9.0-45.git20131003.fc20 is the version that was available in the update repo.