Ubuntu en Default Gateway

Ubuntu Default Gateway toevoegen:

$ sudo ip route add default via 192.168.1.254

http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/

Save routing information to a configuration file /etc/network/interfaces

Open /etc/network/interfaces file
$ sudo vi /etc/network/interfaces

http://serverfault.com/questions/39902/how-can-i-find-the-default-gateway-of-an-ubuntu-box

route

Look for a line that says something like:

default         10.63.3.254     0.0.0.0         UG    0      0        0 eth0

The second column contains the default gateway, and the last column is the interface.

You can also use the ip command:

ip route

which will give you something like

default via 10.63.3.254 dev eth0
Geplaatst in Algemeen
%d bloggers op de volgende wijze: