Slackware Linux Restart / Start / Stop Networking Service Command

last updated in Categories , ,

How do I restart or start or stop networking service on Slackware Linux using command line option?

Under Slackware Linux you can use the /etc/rc.d/inet1 script to start, stop and restart networking service. It can start / restart / stop selected interface too. You must be logged in as the root user to restart networking.

Syntax

The basic syntax is as follows:
/etc/rc.d/rc.inet1 start|stop|restart

OR

/etc/rc.d/rc.inet1 INTERFACE_start|INTERFACE_stop|INTERFACE_restat

Restart network on Slackware Linux

Type the following command to restart Slackware networking:
# /etc/rc.d/rc.inet1 restart
You can take down (stop), start, or restart particular interface such as eth0 as follows:
# /etc/rc.d/rc.inet1 eth0_restart

Stop network on Slackware Linux

Type the following command to stop Slackware networking service:
# /etc/rc.d/rc.inet1 stop
OR
# /etc/rc.d/rc.inet1 eth0_stop

Star network on Slackware Linux

Type the following command to start Slackware networking service:
# /etc/rc.d/rc.inet1 start
OR
# /etc/rc.d/rc.inet1 eth0_start

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 1 comments/add one below):

1 comment

    Have a question? Post it on our forum!