1826061 Members
4213 Online
109690 Solutions
New Discussion

Routing problems

 
SOLVED
Go to solution
vortex_1
New Member

Routing problems

Hello fellow hpux-users,

I have a small problem on hpux 10.20.

I will first explain the situation:

We have a hp 9000 D230 server with autoraid. There is a 10mbit onboard network in it and a 100mbit btlan01 card.

We don't use the 10mbit card, but it has connecting to the network.

There are 2 'networks'.
The unix network:
172.21.184.0/255.255.254.0

and the nt network:
172.21.182.0/255.255.254.0

In the unix network everything works perfect, but when i want to have access to the nt network all the traffic goes through the 10mbit card. Not so fast.
So i checked the routingtabel:

Routing tables
Destination Gateway Flags Refs Use Interface Pmtu PmtuTime
127.0.0.1 127.0.0.1 UH 0 170 lo0 4608
172.21.184.30 127.0.0.1 UH 0 29032 lo0 4608
172.21.184.40 127.0.0.1 UH 1 11674 lo0 4608
default 172.21.184.16 UG 1 21952 lan0 1500
172.21.184.0 172.21.184.30 U 42 1861541 lan0 1500
172.21.184.0 172.21.184.40 U 0 0 btlan01 1500

You can see that the traffic to DEFAULT network is going through lan0 (the 10mbit card).

I have tried to re-enter the route, but hpux still uses lan0. I also checked the man page of route but it doesn't say how i can choose a lancard for a route!
I also checked the forum and there are so users that say that you cannot bind a route to a lan-card... But that it is being done automatically by hpux, it checks the subnets and then hpux chooses the lan-card.

But the problem is the 2 cards have the same subnet. So hpux is choosing a default card or something?

Does anyone have a solution?

Thanx in advance!
11 REPLIES 11
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Routing problems

Hi:

The problem is that you cannot use two cards in the same machine on the same subnet. The packets can get interleaved between the two cards. If you were running HP-UX 11x, you could purchase the Auto Port Aggregation product which, in essence, turns up to 4 ports into 1 MAC address but no in 10.20. You need to simple disable the 10MB port and all will be well.

Regards, Clay
If it ain't broke, I can fix that.
Rainer von Bongartz
Honored Contributor

Re: Routing problems

you gave the answer to this question yourself !!!

But the problem is the 2 cards have the same subnet.

Two lan cards on the same subnet is not possible without problems
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Ravi_8
Honored Contributor

Re: Routing problems

Hi,
your routing table shows that your default lan card is lan0, so remove the default router(see man pages of route delete).
never give up
vortex_1
New Member

Re: Routing problems

Hmm.

But if i look do a route /? on a nt machine i can give INTERFACE as a argument.

So this would be on nt:

route add default 172.21.184.16(router) 1(metric) btlan01(lancard).

But this is not possible on hpux 10.20?
So the solution is to disable the lan0 (10mbit) card?
Strange...
vortex_1
New Member

Re: Routing problems

Ravi,

I already deleted the default route. But when i add it again it still uses lan0.
And when i don't add default route at all you can guess what happens then (=nothing)...
Sachin Patel
Honored Contributor

Re: Routing problems

Hi vortex,
How about if you edit your /etc/rc.config.d/netconf file and changed lan0 to btlan and then restart the network.

Sachin
Is photography a hobby or another way to spend $
linuxfan
Honored Contributor

Re: Routing problems

Hi,

First of all, if you don't want to use the 10MB(184.30) card, why don't you just disable it and use your 100MB card(184.40) as the default card.
Secondly if you have to absolutely use both the cards make sure they are configured to be in different subnets. see man 7 routing for more information. Here is a quote from the man page
/Begin Quote/
If a host has multiple interfaces, then it can belog to different subnets. Unlike the past releases, the subnets can have different sizes even if they may have the same network address. This is accomplished by using a different netmask on each of the host interfaces.
/End Quote/

Again if your idea is only to use the 100MB card why don't you disable the 10MB card and make the 100MB default.

-HTH
I am RU
They think they know but don't. At least I know I don't know - Socrates
vortex_1
New Member

Re: Routing problems

Okay i'll disable the lan0-card, i don't need it that bad so...

I think it's strange that i can't choose a interface with the 'route' command...
If i look on a nt/2k machine and do a route /? i can give a interface as a argument...

Is there also a way to make the btlan01 as default lancard.
I already looked at /etc/rc.config.d/netconf and switched the lan0/btlan01. Now the btlan01 is nr 0, and lan0 is 1. But nothing changed...

Ron Irving
Trusted Contributor

Re: Routing problems

Hi...

Just a thought...why don't you try to 'bring down' the other lan card, before you add your default route? eg:

1. ifconfig lan1 down
2. route add default 'nnn.nnn.nnn.nnn'
3. ifconfig lan1 nnn.nnn.nnn.nnn netmask 255.255.255.254 broadcast nnn.nnn.nnn.nnn up

then take a look at netstat -rn.

Hope this helps...

ron
Should have been an astronaut.
Bob_Vance
Esteemed Contributor

Re: Routing problems

Why did you configure both NICs in the same subnet in the first place? (What problem are you *really* tyring to solve?)
As has been pointed out, HP-UX doesn't support it.

And, no, HP-UX doesn't support using interface in the 'route' command -- it just tries to figure it out based on the IP address of the gateway you give.

Did you mean, maybe, to give one of the NICs and address in the "NT" subnet,
172.21.182.0/255.255.254.0
?

BV
"The lyf so short, the craft so long to lerne." - Chaucer
vortex_1
New Member

Re: Routing problems

I will bring down the lan0 card, because i don't really need it so...
The card was enabled and configured by another employee that has left the company now.

But thanks all for your help and this forum is GOOD !!!

ps:here are some points :)