Adding routes
Linux
Display your current routing table
# route
Or
# route -n
Or
# ip route show
Or
# ip route list Adding routes:
# route add default gw 192.168.1.254 eth0
OR
# route add -host {Target host} gw {Gateway IP}
OR Range:
# route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.254 Linux add a default gateway (route) using ip command
Windows
Print routes:
Add route
Remove route:
Last updated