Can not delete route
Hi, There is a route entry in my netstat -rn output and I cannot delete it using route delete net <network> <gateway> command. I googled a bit, there is similar problems but no solutions. I also tried to delete it by deleting all routes using flush option without success. Any opinions?
|
What error do you get when you try to delete it ?
It could be you need to specify the netmask in the route as well. |
Already tried every possible way to delete the route without success. I am getting "gateway not in table" error. But I see it in routing table. I also tried route -p flush but after reboot route appears in table again...
|
Can you post all of the actual commands you run and their output ?
|
Quote:
Code:
bash-3.00# netstat -rn Code:
bash-3.00# route delete net 10.5.0.0 10.5.3.1 Code:
bash-3.00# route delete net 10.5.0.0 -netmask 255.255.0.0 10.5.3.1 Code:
bash-3.00# route delete net 10.5.0.0 -netmask 255.255.0.0 -gateway 10.5.3.1 Code:
bash-3.00# route delete host 10.5.0.0 10.5.3.1 |
This one isn't a route to a router (a.k.a gateway).
Why do you want to delete this route which is the only way for your machine to communicate with the network ? |
I added it accidentally, my connection was working through default route.
|
I don't think you added it as it is created by default.
As I wrote, removing that route would prevent your machine to reach your default router or any other device connected to your LAN. The problem must be elsewhere, and by the way, what is the problem you are trying to fix in the first place ? |
As I was trying to communicate to global zone (IP:10.5.3.1) from local zone (IP:192.168.0.1), I set up this entry in routing table. Then I see it is not what I wanted so I just tried to get rid of it. This is a test machine and I want to delete this route entry, I don't care if my net goes down:) I am confused why I cannot delete it?
|
You didn't tell you used zones.
Anyway, you can't directly communicate between 10.5.3.1 to 192.168.0.1, you need IPs on the same network on each connected zones. |
Quote:
Anyway forget about zones, I want to get rid of that entry in routing table is this possible in any way? I am ready to reinstall the OS because of this:) 1-http://forum.java.sun.com/thread.jspa?threadID=5075797&messageID=9276196 |
Use the routeadm command from the global zone . Not sure of the exact switch though
man routeadm Rgds PK |
Quote:
Quote:
Quote:
Quote:
|
Thanks for replays, I did not manage to remove this route entry, I am giving up for now:)
|
I'm afraid you are still missing you didn't add this route and deleting it would be useless.
You can remove that route by using the correct syntax, but after that your host is isolated: Code:
bestouan:~ $ netstat -rn |
All times are GMT -5. The time now is 12:34 AM. |