How to restart the network service in Linux and FreeBSD

In Linux, every service can be rebooted. This is very usefull because you don’t need to restart the whole system, in order get the modifications applied.

In this article I will show you how to reboot the network (or networking) service in the most used Linux distros and FreeBSD.

How to restart the network in Fedora/CentOS/openSUSE:

$ sudo /etc/init.d/network restart

AND

$ sudo service network restart

How to restart the network in Debian/Ubuntu/Linux Mint:

$ sudo /etc/init.d/networking restart

How to restart the network in FreeBSD/PCBSD:

# /etc/rc.d/netif restart

AND

# service netif restart

You can also start or stop services in Linux/Unix.

 

Repost from here.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s