Not able to delete the route on one of the server


 
Thread Tools Search this Thread
Operating Systems Solaris Not able to delete the route on one of the server
# 1  
Old 05-21-2012
Not able to delete the route on one of the server

I try to delete the route on one of the server
But I am not able to do it
its show the error
Code:
# route delete 10.1.88.0 10.37.201.33
delete host 10.1.88.0: gateway 10.37.201.33: not in table

If I add the route also its shows the error message
Code:
# route add -net 10.1.88.0 10.37.201.33
add net 10.1.88.0: gateway 10.37.201.33: entry exists

But still its there in netstat -rn

Code:
# netstat -rn |grep 10.1.88.0
10.1.88.0 193.172.69.62 UG 1 302
10.1.88.0 10.37.201.33 UG 1 0

Solaris 8 server

what was the issue here. How to resolve the same

Last edited by joeyg; 05-21-2012 at 11:56 AM.. Reason: Please use CodeTags with scripts, commands, data
# 2  
Old 05-21-2012
Try deleting both routes and re-adding the one you want.
# 3  
Old 05-21-2012
Hey pls chck through below files

/etc/gateways
/etc/defaultrouter

check through what this script does /usr/sbin/in.routed, srry dont have sol8 with me to check through

And routeadm serves as alternative
# 4  
Old 05-21-2012
Try,

# route delete -net 10.1.88.0 10.37.201.33
Don't have solaris here but I think that's the correct syntax
# 5  
Old 05-22-2012
hi bapu

this is proper syntax on solaris

route delete default < GW ip>
# 6  
Old 05-24-2012
Hi,

Your syntax is wrong, as pointed by Juan you have missed -net while deleting the route.

Correct syntax is
Code:
route delete -net 10.1.88.0 10.37.201.33

If you look at the output of netstat -nr.
Code:
 
# netstat -rn |grep 10.1.88.0
10.1.88.0 193.172.69.62 UG 1 302
10.1.88.0 10.37.201.33 UG 1 0

The flag G means the route was added with -net option [-net Force the destination to be interpreted as a network], hence in order to delete it you must specify -net while deleting otherwise it will always say not in table.

Regards,
Vishal Aswani
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Delete route so it does not persist after reboot

Solaris 10 I am trying to delete a route using the command: route -p delete 192.0.0.0 192.1.3.254 The route gets delete but for some reason the route pops back up in the routing table after reboot. I also deleted the /etc/inet/static_routes file and the route still persists after reboot.... (6 Replies)
Discussion started by: jastanle84
6 Replies

2. Shell Programming and Scripting

Find and delete files and folders which are n days older from one unix server to another unix server

Hi All, Let me know how can i find and delete files from one unix server to another unix server which are 'N' days older. Please note that I need to delete files on remote unix server.So, probably i will need to use sftp, but question is how can i identify files and folders which are 'N'... (2 Replies)
Discussion started by: sachinkl
2 Replies

3. AIX

IBM Server doesn't ping gateway unless you put a static route

Just want to know if someone has a clue about what could be happening here: I have an AIX box with four NICs in Ether channel connected to a Cisco Switch. When I try to ping the default gateway, sometimes it works, but sometimes it doesn't work unless it has a defined static route. Thanks... (1 Reply)
Discussion started by: witt
1 Replies

4. IP Networking

When to use static route on server?

Hi guys, sorry for asking noob question. When do we really need to add a static route on the server? I encounter this situation whereby a client trigger a network packet to the destination but the destination does not know how to return the traffic back to the client (source). The issue was... (4 Replies)
Discussion started by: DrivesMeCrazy
4 Replies

5. IP Networking

Software/tool to route an IP packet to proxy server and capture the Proxy reply as an

Hi, I am involved in a project on Debian. One of my requirement is to route an IP packet in my application to a proxy server and receive the reply from the proxy server as an IP packet. My application handles data at the IP frame level. My application creates an IP packet(with all the necessary... (0 Replies)
Discussion started by: Rajesh_BK
0 Replies

6. Shell Programming and Scripting

delete old files from FTP server

Hi I just started learning Unix scripts. I need to access an FTP server, delete all the files except the latest 6 files and the latest 6 files should be downloaded to my local server. Could some body help me to code this logic in KSH ? Thanks Athena (1 Reply)
Discussion started by: Athena
1 Replies

7. AIX

delete user on kerberised server

how r u all, i have AIX server which is kerberised, and i create a user on it called "sam" when i want to assign a password for it i typed smit user then i choosed change password and i choosed the user " sam" when i press enter this message ' user 'sam' doesnt exist" appears. then when i want... (2 Replies)
Discussion started by: abu7maid2005
2 Replies

8. IP Networking

Connect to RAS callback server: route problem

I'm trying to use my Gentoo Linux home workstation for connecting to a Windows RAS callback server through analogic telephone line (PSTN). I'm using pppd and successfully configured pppd's options and chat files, both for the outgoing call and for receiving the incoming callback. All seems going... (20 Replies)
Discussion started by: robotronic
20 Replies

9. UNIX for Advanced & Expert Users

delete files on a remote server

Hi Guys, I am currently working on a script to find all the files that have not been accessed for the past 2 years. This, i guess has been discussed n number of times in this forum. Now, my requirement is to find all the files in the remote windows server. I have it mounted in unix. I... (1 Reply)
Discussion started by: bond_bhai
1 Replies

10. Programming

To delete a file at some other unix server

I need to delete a file located at some other Unix server. Can it be done in a Shell script where I pass it the login and password and it should not prompt me for the same? and it should not prompt me for the same? thanks dharmesh (1 Reply)
Discussion started by: dharmesht
1 Replies
Login or Register to Ask a Question

Featured Tech Videos