|
|
我想加如一条route 命令
route add -net 192.168.0.0 netmask 255.255.255.0 gw 192.168.1.1
显示SIOCADDRT: Network is unreachable
route add -net 192.168.0.0 gw 192.168.1.1
显示
SIOCADDRT: Invalid argument
我的路由表为。。
Destination Gateway Genmask Flags Metric Ref Use Iface
172.16.22.0 * 255.255.255.0 U 0 0 0 eth1
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default172.16.22.254 0.0.0.0 UG 0 0 0 eth1
route del 192.168.0.0
显示SIOCDELRT: No such process
怎么把172.16.22.0和192.168.0.0两段的地址分别加网关为172.16.22.254和192.168.1.1
请写下格式。
最好写下ROUTE的用法。多谢了 |
|