середа, 29 грудня 2010 р.

How to add permanent static routes in Ubuntu

Static route can be added (as usual) by “route” command:
sudo route add [-net|-host] IP netmask MASK gw GATEWAYIP dev INTERFACE

Fo the permanent route add the line to the /etc/network/interfaces:

up route add [-net|-host] IP/MASK gw GATEWAYIP dev INTERFACE

See also: How to add route in HP-UX (Ukrainian language)

Немає коментарів:

Дописати коментар