有一系统用netstat -rn查看,发现有两条默认路由,信息如下: Routing tables Destination Gateway Flags Refs Use If Exp Groups Route Tree for Protocol Family 2 (Internet): default 192.168.0.1 UG 4 6962 en1 - - => default 192.168.0.1 UG 0 603 en0 - - 分别用route delete、smitty rmroute、chdev -l inet0 -a delroute="net,-hopcount,0,,0,192.168.0.1"三种方式进行删除均报错如下,默认路由无法删除。
#route delete 0 192.168.0.1 0821-279 writing to routing socket: The process does not exist. #smitty rmroute #chdev -l inet0 -a delroute="net,-hopcount,0,,0,192.168.0.1" Method error (/usr/lib/methods/chginet): 0514-009 Cannot delete an object from the device configuration database. 0821-216 chginet: Cannot delete route (net,0,192.168.0.1) from CuAt.