對比windows和linux的route設置

舉例子來說明就是很簡單了

先說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 ]

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章