SUSE Linux Restart / Stop / Start Network Service

How do I start / stop or restart networking service under Suse Linux without rebooting the server?

OpenSUSE and Suse Enterprise Linux provides /etc/init.d/network script, which can be used as follows to configure the network interfaces, set up routing and start / stop / restart network interface. You must login as root user to run commands.

Task: Start Network Service

# /etc/init.d/network start
# /etc/init.d/network start eth0

Task: Stop Network Service

# /etc/init.d/network stop
# /etc/init.d/network stop eth0

Task: Restart Network Service

# /etc/init.d/network restart
# /etc/init.d/network restart eth0

Sample outputs:

Shutting down network interfaces:
    eth0      device: Intel Corporation 82573E Gigabit Ethernet Controller (Copper) (rev 03)
    eth0      configuration: eth-id-00:30:48:98:9c:bc                 done
Hint: you may set mandatory devices in /etc/sysconfig/network/config
Setting up network interfaces:
    eth0      device: Intel Corporation 82573E Gigabit Ethernet Controller (Copper) (rev 03)
    eth0      configuration: eth-id-00:30:48:98:9c:bc
    eth0      IP address: 10.24.116.2/26   
Checking for network time protocol daemon (NTPD):                     doneed

If you need to make any changes to IP address or routing table use yast tool, enter:
# yast
Select Network Devices > Network Card

Fig.01: Suse Linux Yast2 Network Device TCP/IP Manager


🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 2 comments so far... add one


CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
2 comments… add one
  • Steven Jun 24, 2010 @ 19:06

    Hej,

    Instead of using the full path, you can also use eg. rcnetwork restart as root (or sudo rcnetwork restart) at whatever location you are.
    The rc-prefix can be used for any service in the /etc/init.d directory…

    Steven

  • bharat May 24, 2012 @ 10:26

    what about start the services for permanent (while reboot) like chkconfig in Redhat linux.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum