Unix HowTo: Start / Stop / Restart Network Service Command

Posted on in Categories last updated November 9, 2013

How do I start, stop, or restart networking service under HP-UX, OpenBSD, AIX and other Unix like operating systems?

You can use the following commands as per your UNIX operating systems.

HP-UX Unix start / stop / restart networking service

# /sbin/init.d/net stop
# /sbin/init.d/net start
# /sbin/init.d/hostname start

IBM AIX Unix start / stop / restart networking service

Simply type the following command to make changes to tcp/ip
# smitty mktcpip
Start network service:
# startsrc
Stop network service:
# startsrc

OpenBSD start / stop / restart networking service

See this faq for more information on how to restart networking service:
# sh /etc/netstart pnc0

FreeBSD start / stop / restart networking service

See this post for more information on how to restart networking service:
# /etc/rc.d/netif restart

Sun/Oracle Solaris Unix start / stop / restart networking service

# svcadm restart physical

Linux: CentOS / RHEL / Red Hat / Fedora start / stop / restart networking service

See this faq for more information:
# service network stop
# service network start
# service network restart

Linux: Debian / Ubuntu server start / stop / restart networking service

See this faq for more information:
# service networking stop
# service networking start
# service networking restart

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Share this on (or read 6 comments/add one below):

6 comment

  1. What about SCO UNIX how I can stop and start the services such as ssh and telnet.
    and how to enable telnet services

    thanks

    Have a question? Post it on our forum!