Red Hat Bugzilla – Bug 613803
ip / ifconfig appears to not work in single-user mode
Last modified: 2014-03-16 23:24:13 EDT
1. Boot into runlevel 1
2. Edit /etc/sysconfig/network-scripts/ifcfg-eth0, and change NM_CONTROLLED=yes to NM_CONTROLLED=no
3. /etc/init.d/networking restart
5. ifconfig -a
6. ping 184.108.40.206
(I get output)
7. ip addr
Something is going wrong here... same as if I run with ifup eth0
Steps to reproduce:
1. telinit 1
2. 'ip a' or 'ifconfig -a'
3. setenforce 0
4. 'ip a' or 'ifconfig -a'
(work as expected)
This is a known problem, which we are changing by forcing the running of sulogin.
If you execute sulogin, the terminals will work correctly.
Or you can do a little trick by executing
ip a | cat
Actually, we're not forcing sulogin, but we're putting another command in between so policy can work.
*** This bug has been marked as a duplicate of bug 585053 ***