Add Default Gateway to Linux
Add a Default Gateway
The syntax is as follows:
route add default gw IP-Address Interface-Name
For example if your router IP address is 192.168.1.1 and the interface is called eth0, type the following command as the root user:
route add default gw 192.168.1.1 eth0
To check the routes configured on your system, type:
route
on 9 May 2016 at 23:18
· Permalink
Cool, thanks for this