Operating System - HP-UX
1820658 Members
2201 Online
109626 Solutions
New Discussion юеВ

how to delete this route automatic

 
thebeatlesguru
Regular Advisor

how to delete this route automatic

i find there is a wrong route when the box restart,and i have to delete it manual once reboot the box,i wanna know where i can revise the route table to delete the wrong route
hihi
5 REPLIES 5
T G Manikandan
Honored Contributor

Re: how to delete this route automatic

check your /etc/rc.config.d/netconf file which contains the ip-address and the default gateway for it.

THanks
Paula J Frazer-Campbell
Honored Contributor

Re: how to delete this route automatic

Hi

Take the long and winding road to the netconf file which will contain entries so:-

ROUTE_DESTINATION[2]="net 10.8.48.0"
ROUTE_MASK[2]=255.255.254.0
ROUTE_GATEWAY[2]="192.1.0.239"
ROUTE_COUNT[2]="1"
ROUTE_ARGS[2]=""


Find you incorrect one and either hash it out or remove it.


Paula
If you can spell SysAdmin then you is one - anon
Darrell Allen
Honored Contributor

Re: how to delete this route automatic

Also check for copies of netconf in /etc/rc.config.d directory. Depending on how the backup files are named, they may also be executed thus setting network configurations differently from what you desire.

Look at /etc/rc.config to see what filenames are excluded from processing. You should be safe if your backup filenames contain any of the following characters:
. , ~ #

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Sean OB_1
Honored Contributor

Re: how to delete this route automatic

Routes are added in the netconf file.

Check the file for the correct entry and either remove it or comment it out.

As an aside it is possible for something else to be adding the route via the "route add" statement.

So if it's not in the netconf file search the rest of your startup scripts for "route add" and see if another script is adding it.

Wodisch
Honored Contributor

Re: how to delete this route automatic

Hello,

in case the route you don't like is NOT the last one, you have to move the other ones *up*, since the index numbers used must be enumerated without gaps!

Goodbye,
Wodisch