1756649 Members
2565 Online
108849 Solutions
New Discussion юеВ

Re: Update routing table

 
SOLVED
Go to solution
JuDi_4
Occasional Advisor

Update routing table

I have HP-UX B.11.31 server and move him to another network (change IP-address and
gateway using sam).
bash-3.2# netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 32808
1.2.3.8 1.2.3.8 UH 0 lan900 32808
1.2.3.0 1.2.3.8 U 2 lan900 1500
127.0.0.0 127.0.0.1 U 0 lo0 32808
default 1.2.3.1 UG 0 lan900 1500
default 1.2.6.1 UG 0 lan900 1500

and i see 2 default gateway.
How can i refresh routing table without reboot?


Thanks...
6 REPLIES 6
Avinash20
Honored Contributor

Re: Update routing table

In 11.31 you could have multiple gateways.

You could either delete the gateway via

# route delete gateway

To flush the routing table

# route -f

for this you need to logged in via console, since this disconnect all the users who are logged.
This doesnt require any reboot
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Laurent Menase
Honored Contributor
Solution

Re: Update routing table

route delete default 1.2.6.1
in any case there is no direct route to 1.2.6.1
so I think that dead gateway detection may mark it as dead
check with ndd -get /dev/ip ip_ire_status
if its status is not DEAD.
Eric SAUBIGNAC
Honored Contributor

Re: Update routing table

Bonjour,

And don't forget to modify /etc/rc.config.d/netconf or at next reboot there is a chance that you see this route back in your routing table : I guess that sam did not work properly with this file ;-)

Eric
JuDi_4
Occasional Advisor

Re: Update routing table

" # route delete gateway "
i suppose that i will delete both gateways.

" # route -f "
It will delete all routes.

I don't want destroy routing table.
I want refresh routing table.
Avinash20
Honored Contributor

Re: Update routing table

Hi Judi.

There is no refreshing of routing table.

Please let us know what exactly you like to have

You could delete one specific gateway which you like via route delete
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
JuDi_4
Occasional Advisor

Re: Update routing table

route delete default 1.2.6.1

is best way

Thanks.