I have linux redhat machine version 6.5

I reboot machine and work as single user mode ,

then I set the network on eth0 with default gw address


but from some reason dg address not appears from netstat -rn after service network restart

my question - can we set default gw address and start network when we in single user mode ?

  • 1) why after service network restart? Was it started at all? 2) you can debug systemctl with journalctl 3) after you found the exact problem, ask about the corresponding instruments. Was it because of rfkill, bridges or whatsoever. – Yaroslav Nikitenko Jul 2 '17 at 18:11
  • If the problem is with default gateway address, then find how to set that. It has nothing to do with single user mode. – Yaroslav Nikitenko Jul 2 '17 at 18:13

Single-user mode by definition does not implement networking at startup. To put it in sysV runlevel terms, you want runlevel 2 (local multi-user with networking). You can switch to this with telinit 2.

The standard runlevel definitions are:

  • 0 - Halt the system
  • 1 - Single-user mode
  • 2 - Multi-user with networking, but no network services (e. g. NFS)
  • 3 - Multi-user with networking and services
  • 4 - Undefined
  • 5 - Multi-user with networking, services, and GUI (e. g. Xorg)
  • 6 - Reboot the system.
  • 1
    Your answer is wrong. Of course, by default runlevel 1 doesn't allow networking, but one can start networking from runlevel 1 using systemctl network start. There is no need to change runlevel in order to start only network. – Yaroslav Nikitenko Jul 2 '17 at 18:07
  • I have modified my answer accordingly. – DopeGhoti Jul 5 '17 at 15:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.