1827385 Members
3911 Online
109963 Solutions
New Discussion

route delete

 
bobstar
Frequent Advisor

route delete

how do u delete a route which has flags UGH ?

4 REPLIES 4
Pete Randall
Outstanding Contributor

Re: route delete

"route delete host xxx.xxx.xxx.xxx"


Pete

Pete
bobstar
Frequent Advisor

Re: route delete

i have tryed that and get ;

route delete host xxx.xxx.xxx.xxx
usage: delete destination [netmask mask] gateway

so i try this without luck ;

route delete host xxx.xxx.xxx.xxx gateway xxx.xxx.xxx.xxx
gateway: bad value
Hakan Aribas
Valued Contributor

Re: route delete

-----
route
-----

route is used to manipulate the network routing tables manually, and accessible only by users who have appropriate privileges.

route supports two commands:
add Add a route.
delete delete a route.

Example:
route delete 10.10.100.60

Mel Burslan
Honored Contributor

Re: route delete

if this is a host route, i.e., last octet of your ip address is NOT zero:

route delete

if it is a network route, i.e., last octet of the ip address is zero

route delete net

in your case, since you have UGH flags, this is a host route but for the sake of clarification, from netstat -rn output

This is a host route
14.22.82.221 10.44.5.254 UGH 0 lan0 0

This is a network route
10.0.111.0 10.44.12.254 UG 0 lan2 0
________________________________
UNIX because I majored in cryptology...