我正在尝试从路由中删除默认网关。
route | grep UG |cut -f 2 -d ' '但我得到了一条线..。
航线的苗木产量是
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.0.2.2 0.0.0.0 UG 1024 0 0 eth0
10.0.2.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 eth0请帮帮我..。谢谢
发布于 2015-10-08 10:05:14
route -n | grep '^0.0.0' | awk '{print $2}'https://stackoverflow.com/questions/33012390
复制相似问题