Operating System - HP-UX
1754996 Members
3285 Online
108828 Solutions
New Discussion юеВ

problem in adding additional permanent routes using netconf file

 
SOLVED
Go to solution
Sunil Singh_1
Advisor

problem in adding additional permanent routes using netconf file

Hi All,
I am trying to add two permanent additional routes in HP-UX11i other than default route.

Problem:-- when I am doing /sbin/init.d/net start .... Its adding only one additional route i.e..for network 172.16.0.0... an giving the error for 10.205.0.0.... network...
I am attaching my netconf file....

NOTE:-- but using route add net..... it is adding...

ERROR: Failed to add route entry because its interface is not yet initialized. May need to add this route entry witha route commad after the interface is up



10 REPLIES 10
Paul Torp
Regular Advisor

Re: problem in adding additional permanent routes using netconf file

show me u'r
lanscan, netstat -in and netstat -rvn
What do you type to add it manually?
"sendmail is kind of fun..."
Peter Bemers
Occasional Advisor

Re: problem in adding additional permanent routes using netconf file

Hi Sunil,

The error you show us tells me that you might have a card problem (however not sure), check with lanscan (as Paul said as well) and see if all your cards are up and running. If not, reset the card that gives you a problem with the lanadmin command. See if that helps.

Best regards,

Peter.
Sunil Singh_1
Advisor

Re: problem in adding additional permanent routes using netconf file

Hi,

Manually I use
route add net 10.205.0.0 netmask 255.255.0.0 10.205.46.20 2(for matric)

other info is in attched file.

BONNAFOUS Jean Marc
Trusted Contributor

Re: problem in adding additional permanent routes using netconf file

Hi

Can you give us the complete command you use when you add route manually?

Is the interface up when /sbin/init.d/net start is use?

Add keyword "net " before @ip in ROUTE_DESTINATION when your destination is a network:
ROUTE_DESTINATION[2]="net 10.205.0.0"
...

Rgds
JMB
Si vous ne faites jamais de b├йtises, c'est que vous ne faites rien de difficile. Et ├зa c'est une grosse b├йtise.
Peter Bemers
Occasional Advisor

Re: problem in adding additional permanent routes using netconf file

Hi Sunil,

From your netstat output:

10.205.46.0/255.255.255.0 10.205.46.93 U 3 lan900 1500
10.205.0.0/255.255.0.0 10.205.46.20 UG 0 lan900 0

What you do with the last line you "overrule" the first line (if HP-UX at least accepts it). The 10.205.46.0 C class network is within the 10.205.0.0 B class network, that might be an issue, so it might has to do something regarding this.

If the 10.205.46.20 is a router/gateway that nows the 10.205.46.0 (sub?)network as well, then better delete the 10.205.46.0 line from your routing table.


Best regards,

Peter.
Paul Torp
Regular Advisor
Solution

Re: problem in adding additional permanent routes using netconf file

ROUTE_DESTINATION[1]="net 172.16.0.0"
ROUTE_MASK[1]=255.255.0.0
ROUTE_GATEWAY[1]=10.205.46.230
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""


ROUTE_DESTINATION[2]="net 10.205.0.0"
ROUTE_MASK[2]=255.255.0.0
ROUTE_GATEWAY[2]=10.205.46.20
ROUTE_COUNT[2]=1
ROUTE_ARGS[2]=""

and try to unplumb the devices and plumb them again..

the bad part is that to unplumb the lan900:1 u also have to unplumb the lan900

ifconfig lan900:1 unplumb
ifconfig lan900 unplumb
ifoconfig lan900 plumb

give it a try
"sendmail is kind of fun..."
Sunil Singh_1
Advisor

Re: problem in adding additional permanent routes using netconf file

Hi Peter,
10.205.46.93 comes under 10.205.x.x its default gateway is 172.168.10.1,
But I am having 10.205.40.x, 10.205.41.x etc network... how to use thos network....

Paul Torp
Regular Advisor

Re: problem in adding additional permanent routes using netconf file

hmm looking at the table.. Peter is right..

adding a B class net 10.205.x.x

WITH an existing C class net will be the issue here.
"sendmail is kind of fun..."
Paul Torp
Regular Advisor

Re: problem in adding additional permanent routes using netconf file

change the default to that 10.205.46.20

and add 172.168.10.1 to the network u are connecting from (if its not too many corrections you have to make)

just a suggestion..
"sendmail is kind of fun..."