Slackware HowTo

Configure static routing on Slackware

Add persistent static routes without relying on external tools or unavailable services.

1. Goal

Add persistent static routes without relying on external tools or unavailable services.

2. Files and components involved

/etc/rc.d/rc.local
/sbin/ip
/usr/sbin/traceroute

3. Operational flow

ip route add network via gateway dev eth0
add command in rc.local
chmod +x /etc/rc.d/rc.local

4. Operational verification

ip route show
ip route get host
traceroute host
ping host

5. Practical notes

Apply network changes from a local console or with an emergency session ready, so you do not lose SSH access.

Every network change should have a rollback path ready: a second console, KVM access, or a temporary command to remove.

Quick checklist

[ ] Backup or copy of the existing configuration completed
[ ] Files and commands updated as expected
[ ] Local test completed successfully
[ ] Logs or final output verified
[ ] Rollback procedure documented

Back to the Linux HowTo section