Restart networking service on Debian

Most Debian user should run into this problem before they find out a good way to restart networking service.

Debian deprecated the restart option of /etc/init.d/networking script for security issue. Users will get following warning when they do restart:

Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning).

And their network won't be restart finally.

How to restart the networking service? There are several ways to achieve that. (Login as root or sudo it)

  • /etc/init.d/networking stop && /etc/init.d/networking start (You'd better run the command on console than remote it)
  • inovke-rc.d networking restart

Hope those helpful for you and me. :-)

Comments

Popular posts from this blog

How to show only month and year fields in android Date-picker?

How to construct a B+ tree with example

Conflict Serializability in database