linux静态路由添加删除 第一种: 添加: route add -net 192.168.13.0/24 gw 192.168.28.1 dev eth0 删除: route del -net 192.168.13.0/24 永久添加: (1). 编辑文件:/etc/sysconfig/static-routes 添加内容:“eth0 net 192.168.13.0/24 gw 192.168.0.1” (2). 把命令写入/etc/rc.local 第二种: 添加: ip route add 192.168.13.0/24 via 192.168.28.1 dev eth0 删除: ip route del 192.168.13.0/24 永久添加: (1). 编...
我的路由表是这样的, [root@localhost ~]$ route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default 211.96.27.1 0.0.0.0 UG 0 0 0 eth0 default 211.96.27.1 0.0.0.0 UG 1 0 0 eth0 我想把删除其中一条路由,...
我的路由表是这样的, [root@localhost ~]$ route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default 211.96.27.1 0.0.0.0 UG 0 0 0 eth0 default 211.96.27.1 0.0.0.0 UG 1 0 0 eth0 我想把删除其中一条路由,...
本人一台嵌入式系统,装linux。有1个网口eth0,为其配置静态IP。 连接eth0网线,从串口可以看到正常的路由信息。 但是当拔掉网线来模拟eth0链路断开后,从串口查看,本机路由信息依然存在。正常LINUX应该自动删除故障网口的路由信息把。 是不是LINUX那个功能选项没打开或功能被裁剪掉了(LINUX内核是风河 2.6.27). 怎么处理,才能保证在网口链路断开后,系统自动删除该网口的路...