Windows
** add a specified route
C:\>route ADD 172.16.0.0 MASK 255.255.0.0 172.17.0.254
METRIC 20 IF 4
Sometimes if we have dual interfaces in the windows host, and we get 2 DHCP-addresses/gateways from these two interfaces. So we want to disable one gateway, and only leave one gateway in the windows routing table. We can issue the following command...
** delete the default gateway of windows
C:\Documents and Settings\vincentlin>route DELETE 0.0.0.0 MASK 0.0.0.0 192.168.
.1
Linux
# route add -net 172.16.0.0/16 gw 172.17.0.254
or
# route add -net 172.16.0.0 netmask 255.255.0.0 gw 172.17.0.254
# route add default gateway A.B.C.D
沒有留言:
張貼留言