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.
Tutorial details | |
---|---|
Difficulty | Easy (rss) |
Root privileges | Yes |
Requirements | None |
Time | 1m |
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
🐧 1 comment so far... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
Thanks it solved my problem :)