Operating System - HP-UX
1832935 Members
3008 Online
110048 Solutions
New Discussion

Re: How do I delete a default gateway if I have 2 entries in netstat rn.

 
SOLVED
Go to solution
John Goetz
Advisor

How do I delete a default gateway if I have 2 entries in netstat rn.

 
3 REPLIES 3
G. Vrijhoeven
Honored Contributor
Solution

Re: How do I delete a default gateway if I have 2 entries in netstat rn.

Hi,

Did you try the route delete command.
check the route man page for info.

Regards,

Gideon
Bharat Katkar
Honored Contributor

Re: How do I delete a default gateway if I have 2 entries in netstat rn.

Hi There,
Edit /etc/rc.config.d/netconf file.
Look for the entry for Gatewaye there and delete it.
Save the file and either reboot the server.

You can even use SAM to do the same.
Go thr' SAM
..Networking and communications
..Routes

..Choose your entry to delete
..Select Action TAB
..Remove.

This should work.
All the best
Regards,
You need to know a lot to actually know how little you know
Jeff Schussele
Honored Contributor

Re: How do I delete a default gateway if I have 2 entries in netstat rn.

Hi John,

First of all I'd do this from the console.
Because if you delete the wrong one from a telnet session - poof - the session will be no more.

Then the route delete command will look like:

route delete default 111.222.111.222

use the IP for that router of course.
You may also want to do a
netstat -rvn
before you remove it just to be sure there's no unique subnet mask in play here.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!