Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HP-UX 11 1

Status
Not open for further replies.

agomez1966

IS-IT--Management
May 15, 2002
17
US
I need help!! I am trying to delete a route that is in use.
Any ideas?
 
What command are you using, and are you getting any error messages when you issue it?
 
Hi Ken:
I am using /usr/sbin/route add 192.168.1.9 192.168.1.9
but i am getting entry in use.
Thanks for your response..
Regards,
Alberto
 
ken:
I am sorry, correction
/usr/sbin/route delete 192.168.1.9 192.168.1.9

Thanks,
 
Hi,

What is the output of "netstat -rnv" in your system and what is exactly the message you get when running route delete?
Output of ifconfig for a relevant interface would be also helpful.

mewa
 
Hi Mewa:
thanks for your response, I am getting this information after run netstat -rnv:

dest/Netmask Gateway Flags Refs Use Interface Pmtu
127.0.0.1/255.255.255.255
127.0.0.1 UH 0 469 lo0 4136
192.168.1.9/255.255.255.255
192.168.1.9 UH 0 201 lan1 4136
192.168.1.0/255.255.255.0
192.168.1.9 U 2 0 lan1 1500
127.0.0.0/255.0.0.0 127.0.0.1 U 0 0 lo0 4136
#

And this is whatr i am gettin when I run netstat -rn:
Dest/Netmask Gateway Flags Refs Use Interface Pmtu

127.0.0.1 127.0.0.1 UH 0 469 lo0 4136
192.168.1.9 192.168.1.9 UH 0 185 lan1 4136
192.168.1.0 192.168.1.9 U 2 0 lan1 1500
127.0.0.0 127.0.0.1 U 0 0 lo0 4136

I need this route 192.168.1.9 192.168.1.1 (gateway )

thank you...:--)
 
The message I am getting is :
No such file or directory
 
If I understand correctly you need
> I need this route 192.168.1.9 192.168.1.1

#route add default 192.168.1.1 1 (assuming that this gateway is in same network)

Patel
 
hi Patel:
Thanks for your response..!!!

I have added the default gateway following your intructions, now my problem is when I try to delete the route 192.168.1.9 192.168.1.9, I am getting no such file or directory.
and when I try to add the route 192.168.1.9 192.168.1.1, I get the error message that say "entry in use".
Any ideas?

regards,
Alberto

 
Hi,
I guess you want to change the gateway for a host itself. Unfortunately I'm not an expert in networking, but I don't think this is a good idea.
What exactly do you want to achive by deleting this route?

mewa
 
My goal is to add a route pointing the local IP (192.168.1.9)to the gateway (192.168.1.1), and when I try to add the route 192.168.1.9 192.18.1.1 i get entry in use because there is a route 192.168.1.9 192.168.1.9, so I want to delete this route. probably there is a command that allow you to redirect this route?
I am not a unix expert, but I am trying. ;--)
 
This means you want to add route to a local hosta via a different host (gateway), which in my opinion does not make any sense. You cannot get to local host without using a local host, so the route cannot be deleted.
You can define routing to different hosts, nets via different gateways but not to a local host.

mewa
 
Mewa:
Than for your response.

I want to give my machine a default gateway (default gateway route),
My IP is 192.168.1.9 and your GW is 192.18.1.1
how to do it...?
Also when I re-start my machine I lost te configuration for my lan1 card, is there any way to set it up that permanent?

Why when I run netstat -rnv I get this?
27.0.0.1/255.255.255.255
127.0.0.1 UH 0 469 lo0 4136
192.168.1.9/255.255.255.255 I do not understand ?
192.168.1.9 UH 0 0 lan1 4136
192.168.1.0/255.255.255.0
192.168.1.9 U 2 0 lan1 1500
127.0.0.0/255.0.0.0 127.0.0.1 U 0 0 lo0 4136
default/0.0.0.0 192.168.1.1 UG 0 0 lan1 1500

Please, help me I am very confuse..!!!!
 
Hi,
As you were told previosly to add a default route you have to run:
# route add default 192.18.1.1 1 (If the route leads to a destination through a remote host)
or
# route add default 192.18.1.1 0 (if the gateway is the local host)

To make the changes permanent you have to edit file /etc/rc.config.d/netconf
This file is self-explaining, so I don't think you might have any problems to add your routes and other network cards definitions.


Now a short explanation of your netstat -rn output. A 127.0.0.0 loopback route is added automaticaly when the interface lo0 is configured.
And a line with your ip:
192.168.1.9/255.255.255.255 192.168.1.9 ...
is also added automaticaly when you configure your ip address.

mewa
 
Hi mewa:

What I do not undestand is why 192.168.1.9/255.255.255.255 192.168.1.9 since my netmask is 255.255.255.0, also I am not able to ping my gateway, I am only able to ping my network card....??/
 
mewa:

This is my netconf file, probably there is something wrong?

HOSTNAME="eas4rpdv"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1

INTERFACE_NAME[0]=lan1
IP_ADDRESS[0]=192.168.1.9
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=192.168.1.1
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""

Regards,
Alberto
 
Alberto,
The mask 255.255.255.255 simply points that the destination is one ip address and not a range of computers.
As you cannot ping your gateway (192.168.1.1) it is not alive or there is no cable connection from eas4rpdv to the gateway. Check the switch configuration or whatever you have between the host and the gateway.
Your netconf looks fine.

mewa
 
help Again:

I am trying to configure a HP Web console to a hp-ux version 11, I want to know where I can configure on the hp-ux the (baud rate, parity/data bits, parity checking, recvpace/xmitpace ) in order to access the unix box from the web console.

Any ideas?

Thanks,
Alberto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top