1822940 Members
3865 Online
109645 Solutions
New Discussion юеВ

IP routing mystery.

 
SOLVED
Go to solution
Nalin Uduwawala_1
Frequent Advisor

IP routing mystery.

We have a remote office who connect to our system using ISDN.

I have added the following route eg:

route add net 4.4.4.0 netmask 255.255.255.0 3.3.3.20

where remote office has a network of 4.4.4.0 and our box is on 3.3.3.0 . the 3.3.3.20 is the routing point at our end of the network.

I cannot ping the remote 3com box. with a similar command I can ping from Win NT box and my desktop.

we have hpUX 10.20 and it is only complaining of this remote office. we have another two offices setup remotely with a similar routing entry and they work fine. The routing entry can be added but does not work.

Another complication we have is that we have another lan card in the system which is disabled.

Any ideas would be greatly appreaciated.

Thanks in advance.
20 REPLIES 20
Andreas Voss
Honored Contributor

Re: IP routing mystery.

Hi,

could it be that your gateway is external ?
If so you have to add a '1' at the end of the route command (metric value) ie:

route add net 4.4.4.0 netmask 255.255.255.0 3.3.3.20 1

Regards

Marcel Boon
Trusted Contributor

Re: IP routing mystery.

Hi,

Thereis also an other way to resolve your problem. go to : /etc/rc.config.d
and open file netconf
change the next:

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

Goodluck,

Marcel
See the man pages
Nalin Uduwawala_1
Frequent Advisor

Re: IP routing mystery.

Thank you Gentlemen.

Your solutions have worked!!!!.

So I will assign full points.

With the net config solution how n=many gateway entries can I add and what should the second third look like ?

Have a good day.
Nalin Uduwawala_1
Frequent Advisor

Re: IP routing mystery.

Hi,
Mr. Boon and Andreas could you both post some replies again so that I could reassign points ?

I think I messed up while assigning points.

My apologies folks.
Marcel Boon
Trusted Contributor
Solution

Re: IP routing mystery.

Hi,

The first:

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

Second:

ROUTE_DESTINATION[1]= a_hosts
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="an_ip_number"
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""

You can find the hostnames in the /etc/hosts

enz...

Greetings,

Marcel

See the man pages
Andreas Voss
Honored Contributor

Re: IP routing mystery.

Hi,

adding routes into /etc/rc.config.d/netconf will make these entries permanent.
The boot process will do as follows:

route $ROUTE_ARGS[#] $ROUTE_DESTINATION[#]netmask $ROUTE_MASK[#] $ROUTE_GATEWAY[#] $ROUTE_COUNT[#]

all in the script /sbin/init.d/net where # stands for the array index of the routing entries.

Regards
Nalin Uduwawala_1
Frequent Advisor

Re: IP routing mystery.

Thank you Andreas and Mr.Boon.

May I pose another query to you ? Our d330 (10.20) has two lan cards. (lan0 -10mbps) and lan 1 - 100mbps. when we reboot both become enabled but we cannot for some eason get the lan1 to work.

Because lan1 does not work we disable it in SAM after the boot process.

Where and how should I start to find out the problem ?
Marcel Boon
Trusted Contributor

Re: IP routing mystery.

Hi,

Please can you post the next file(s):

/etc/rc.config.d/netconf
/etc/rc.log

Marcel
See the man pages
Andreas Voss
Honored Contributor

Re: IP routing mystery.

Hi,

first of all do an ioscan to see if the 100mbps card is claimed to the correct driver:

ioscan -fC lan

If you see UNKNOWN you have to install additional driver from the application CD.

Second do an

lanscan

to see if the two cards are shown as up.

Regards
Nalin Uduwawala_1
Frequent Advisor

Re: IP routing mystery.

MR. Boon,

The files will be posted shortly.

Andreas,

Both are claimed in ioscan,

8/16/6 0x080009FDB25C 0 UP lan0 UP 4 ETHER Yes 52
8/12/1/0 0x001083047651 1 UP lan1 DOWN 5 ETHER Yes 119

Hoardware state is up for both but interface state is down only for lan1 (100mbps)

Thanks for responding to both of you.
/>

Nalin Uduwawala_1
Frequent Advisor

Re: IP routing mystery.

 
Andreas Voss
Honored Contributor

Re: IP routing mystery.

Hi,

the problem is here:

Configure HP GSC 100BT interfaces
Output from "/sbin/rc2.d/S331hpgsc100 start":
----------------------------
ERROR: invalid duplex value for lan1 interface

Check the following command:

lanadmin -x 5

If you get 'Unrecognized option:-x' you have to install the patch: PHNE_21904

This will enable getting/setting duplex mode for 100mbps LAN cards such as yours.

Also have a look at /etc/rc.config.d/hpgsc100conf
for the line
HP_GSC100_SPEED[0]=
and verify the correct syntax (allowed: 10HD, 100HD, 10FD, 100FD, auto_on OR 'nothing')

Regards
Nalin Uduwawala_1
Frequent Advisor

Re: IP routing mystery.

 
Nalin Uduwawala_1
Frequent Advisor

Re: IP routing mystery.

Andreas,

The lanadmin -x 5 works. The lanspeed entry in the conf file is blank should it be 100fd ?

Once they are done what should I do ?

Thanks.
Andreas Voss
Honored Contributor

Re: IP routing mystery.

Hi,

the duplex mode depends on what your card is connected to.
If it is a 100mbps HUB the value should be: 100HD
If it is a switch which is configured to full duplex it should be:
100FD
If you don't know what connection you have you could use the value:
auto_on

Note: Values are case sensitive.

After changing /etc/rc.config.d/hpgsc100conf you could restart with:

/sbin/rc2.d/S331hpgsc100 start

Regards
Nalin Uduwawala_1
Frequent Advisor

Re: IP routing mystery.

Andreas,

whatever value I put for the speed entry it complains of invalid duplex value for lan1 interface.

I am just wondering, do we have to do anything in the netconf or in the "[ ]" at the end of each of the entries in the gsc100conf file ?

I dont know I am just guessing in the dark.
Nalin Uduwawala_1
Frequent Advisor

Re: IP routing mystery.

Andreas or Marcel,

Do you have any ideas on the Lan(1) mystery ?
Marcel Boon
Trusted Contributor

Re: IP routing mystery.

Hi Nalin,

I am still searching for a solution....

Marcel
See the man pages
Marcel Boon
Trusted Contributor

Re: IP routing mystery.

Nalin,

You must put this question as a new one because your first problem has been fixed, a lot of people doesn't read your second problem anymore.

Marcel

Ps. you get a lot of responses.
See the man pages
Marcel Boon
Trusted Contributor

Re: IP routing mystery.

Hi,

The problem could be fix with patch PHCO_21186.
Try this link:

ftp://ftp.itrc.hp.com/hp-ux_patches/s700_800/10.X/PHCO_21186

Before you install, please read the txt file.

Marcel

ps. hp-ux 10.20 ?
See the man pages