舉例子來說明就是很簡單了
先說windows
ROUTE [-f] [-p] [command [destination]
[MASK netmask] [gateway] [METRIC metric] [IF interface]
route add 10.0.0.0 mask 255.0.0.0 10.11.11.127
其中10.11.11.127爲網關
再說linux
route [ -f ] [ -n ] [ -q ] [ -v ] Command [ Family ] [ [ -net | -host ]
route [-v] [-A family] add [-net|-host] target [netmask Nm] [gw Gw] [metric N] [mss M] [window W] [irtt I] [reject] [mod] [dyn] [reinstate] [[dev] If]
route add -net 10.0.0.0 netmask 255.0.0.0.0 gw 10.11.11.127
aix , by the way:
Destination [ -prefixlen n] [ -netmask [ Address ] ] Gateway ] [ Arguments ]