winxp 下面命令怎么 用在ubuntu上面

上网、浏览、聊天、下载等
回复
kukuergan
帖子: 4
注册时间: 2008-08-04 9:34

winxp 下面命令怎么 用在ubuntu上面

#1

帖子 kukuergan » 2008-08-04 9:39

winxp 下命令
route print
route delete 0.0.0.0 mask 0.0.0.0 10.68.129.253 -p
route add 10.0.0.0 mask 255.0.0.0 10.68.129.253 -p
route add 0.0.0.0 mask 0.0.0.0 10.68.129.254 -p
不知ubuntu下怎么做相同的命令
头像
blackiron
帖子: 887
注册时间: 2007-05-25 16:47
来自: 上海

#2

帖子 blackiron » 2008-08-05 17:00

man route自己去看

EXAMPLES
route add -net 127.0.0.0 netmask 255.0.0.0 dev lo
adds the normal loopback entry, using netmask 255.0.0.0 and
associated with the "lo" device (assuming this device was previ-
ously set up correctly with ifconfig(8)).

route add -net 192.56.76.0 netmask 255.255.255.0 dev eth0
adds a route to the local network 192.56.76.x via "eth0". The
word "dev" can be omitted here.

route del default
deletes the current default route, which is labeled "default" or
0.0.0.0 in the destination field of the current routing table.
回复