↑ Top
dev studios
| Sign in | DE EN

Routing in Linux

This is an example of how to change a default Gateway

Show routes

route -n

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface         UG    0      0        0 eth0   U     0      0        0 eth1   U     0      0        0 eth0

Add a gateway route

route add default gw eth0

delete a route

route del -net gw netmask dev eth0