1838553 Members
3119 Online
110127 Solutions
New Discussion

route statement

 
SOLVED
Go to solution
John Booth_3
Occasional Contributor

route statement

I am try to add a route on a HP 11.0 server and I am getting errors on the netmask.

Here is the command I am using:
route add 64.212.167.0 netmask 255.255.255.128 63.167.19.11 1

Here is the error:
netmask: bad value

It is a valid network and netmask.

Thanks in advance,
John Booth
My mouth is writing checks that Munis can't cash!!
11 REPLIES 11
Ross Zubritski
Trusted Contributor

Re: route statement

John,

Try this:

route add 64.212.167.0 netmask 255.255.255.128 63.167.19.11 2

BTW, you should refrain from posting "real" ip's in any kind of forum.

Regards,

RZ

John Booth_3
Occasional Contributor

Re: route statement

These are not valid addresses. Just examples. I tried with the 2 for metric and got the same error on the netmask.
My mouth is writing checks that Munis can't cash!!
Sridhar Bhaskarla
Honored Contributor
Solution

Re: route statement

Hi John,

Use ndd to override HP's still old method of verifying the subnets.

ndd -set /dev/ip ip_check_subnet_addr 0

Then try again.

Edit /etc/rc.config.d/netconf and use the examples to set this permanently so that it will survive the reboots.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Ross Zubritski
Trusted Contributor

Re: route statement

Great call sri---- Forgot about that one. ;)

RZ

John Booth_3
Occasional Contributor

Re: route statement

I ran the ndd -set /dev/ip ip_check_subnet_addr 0

and still got the same error with bad netmask.
My mouth is writing checks that Munis can't cash!!
Steven E. Protter
Exalted Contributor

Re: route statement

The problem with not posting "real" ip addresses here is you may have an invalid IP/netmask combination in real life.

If you need to maintain network security, you may need to communicate with one of us via email with actual network setup information.

Or perhaps more appropriate for people that have service contracts, open a support call.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sridhar Bhaskarla
Honored Contributor

Re: route statement

Hi John,

Use "net" before 64.212.167.0

route add net 64.212.167.0 netmask 255.255.255.128 63.167.19.11 1


-Sri
You may be disappointed if you fail, but you are doomed if you don't try
John Booth_3
Occasional Contributor

Re: route statement

I am able to use these same route statements fine on other servers with different OS's. It works on our AIX, SCO and Windows Servers. I can't figure out why it won't work on HP-UX.

Thanks,
john
My mouth is writing checks that Munis can't cash!!
John Booth_3
Occasional Contributor

Re: route statement

Thanks Sri add the net before the destination fixed the issue and of course the ndd. Is their anything special I need to do in the netconf file for this route to be readded when the system reboots?
My mouth is writing checks that Munis can't cash!!
Sridhar Bhaskarla
Honored Contributor

Re: route statement

Yes John,

Add the following entries.

ROUTE_DESTINATION[1]="net 64.212.167.0"
ROUTE_GATEWAY[1]="63.167.19.11 "
ROUTE_MASK[1]="255.255.255.128"
ROUTE_COUNT[1]="1"


-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Sridhar Bhaskarla
Honored Contributor

Re: route statement

Also, keep these entries in your /etc/rc.config.d/nddconf file.

TRANSPORT_NAME[0]=ip
NDD_NAME[0]=ip_check_subnet_addr
NDD_VALUE[0]=0

-Sri
You may be disappointed if you fail, but you are doomed if you don't try