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 123.45.57.0 34.56.78.1 -netmask 255.255.255.192
2. out of no reason, you want to delete routing that u just add:
root@xyz # route delete -net 123.45.57.0 34.56.78.1
delete net 123.45.57.0: gateway 34.56.78.1: 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 123.45.57.0/26 34.56.78.1
* to check netmask for the specific entry, use command: root@xyz # netstat -rvn
Voila!
Monday, July 30, 2007
SunOS: Route delete problem
Posted by kapla.hodot at 13:39
Labels: UNIX Troubleshooting
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment