Monday, July 30, 2007

SunOS: Route delete problem

If you ever encouter problem deleting routing in SunOS, make sure you specify the netmask.

For example:
1. add routing:
root@xyz # route add -net -netmask

2. out of no reason, you want to delete routing that u just add:
root@xyz # route delete -net
delete net gateway not in table
root@xyz #

you will received error msg as above.

So, what you need to do is to specify the netmask, such as:
root@xyz # route delete -net

* to check netmask for the specific entry, use command: root@xyz # netstat -rvn

No comments: