First page Back Continue Last page Overview Graphics
The Routing Table
# route
- # route -n (for numerical addresses only)
- # route add default gw 10.0.0.1
- # route add -net 192.168.0.2 dev eth1
Notes:
The second command tells the Linux kernel to send any packets that it doesn't know how to immediately deliver, to the host 10.0.0.1
Thus, this host will act as our default gateway.
In a home environment, your default gateway is usually provided by your ISP.