Unix HowTo: Start / Stop / Restart Network Service Command

by on May 5, 2012 · 4 comments· last updated at May 5, 2012

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

# /etc/init.d/net start
# /etc/init.d/net stop
# /etc/init.d/net restart

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



You should follow me on twitter here or grab rss feed to keep track of new changes.

Featured Articles:

{ 4 comments… read them below or add one }

1 Aprigio Simoes August 14, 2012 at 5:07 pm

not, error in text.

for HP-UX is /sbin/init.d/net and not /etc/init.d/net

Reply

2 Frank August 15, 2012 at 9:48 pm

For Debian, this method throws an error.

Reply

3 Ajith August 26, 2012 at 5:40 pm

For AIX, to stop the service “stopsrc”. for refresh the services “refresh

Reply

4 Fasial Ali May 16, 2013 at 12:52 pm

Realy very help full these command of me Ubuntu machine
Regards

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <kbd> <blockquote> <pre> <a href="" title="">

Tagged as: , , , , , , , , , , , , ,

Previous Faq:

Next Faq: