- Ubuntu [shell] #cat /etc/network/interfaces
- Windows [shell] route add 172.16.1.0 mask 255.255.255.0 192.168.1.20 if <if number>
auto eth0
iface eth0 inet static
address 1.1.1.1
netmask 255.255.255.0
network 1.1.1.0
broadcast 1.1.1.255
up route add -net 10.1.1.0 netmask 255.255.255.0 gw 1.1.1.254
#route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
<snip>
10.1.1.0 1.1.1.254 255.255.255.0 UG 0 0 0 eth0
[/shell]
route print –4
[/shell]