HP-UX does not work with two NICs - HP UX

This is a discussion on HP-UX does not work with two NICs - HP UX ; Hi, I was assigned as administrator of a HP-UX host which has three NICs installed. Lan0 is built in LAN interface which has IP address 192.168.0.25.lan1 & lan2 are two 10/100Mbps ethernet card which has 10.10.10.12 & 10.10.10.13 configured. the ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: HP-UX does not work with two NICs

  1. HP-UX does not work with two NICs

    Hi,


    I was assigned as administrator of a HP-UX host which has three NICs
    installed.

    Lan0 is built in LAN interface which has IP address 192.168.0.25.lan1 &
    lan2 are two 10/100Mbps ethernet card which has 10.10.10.12 &
    10.10.10.13 configured. the host is connected to two L4 switches as
    below


    L4-switch-1 L4-switch-2
    \ /
    \ /
    --------------- -----------
    | |
    ----- port Lan1-------------- port Lan2 ----
    | HP-UX B.11.11 U 9000/800 |

    --------------------------------------------------------

    Problem we are facing ( make ports on L4 switches always on)
    1) Interface lan2 must be disabled on host to make L4-switch-1 find
    10.10.10.12 is OK

    2) if lan2 is enabled, both L4 swtich marked both 10.10.10.12 and
    10.10.10.13 FAILED

    3) if lan1 is disabled, lan2 is enabled on the host, the two L4
    switches consider 10.10.10.12 & 10.10.10.13 FAILED;

    4) when lan1 & lan2 are both enabled on host, I noticed lan1's
    Ipkts & lan2's Opkts increase, but lan1's Opkts and Ian2'2 Ipkts does
    not change at all

    rar5> netstat -ni

    Name Mtu Network Address Ipkts Ierrs Opkts
    Oerrs Coll
    lan2 1500 10.10.10.0 10.10.10.13 0 0 1353
    0 0
    lan1 1500 10.10.10.0 10.10.10.12 1922568 0 1918150
    0 0
    lan0 1500 192.168.1.0 192.168.1.25 59723842 0 66442227
    0 18847
    lo0 4136 127.0.0.0 127.0.0.1 50908 0
    50908 0 0
    rar5> netstat -ni
    Name Mtu Network Address Ipkts Ierrs Opkts
    Oerrs Coll
    lan2 1500 10.10.10.0 10.10.10.13 0 0 1359
    0 0
    lan1 1500 10.10.10.0 10.10.10.12 1922575 0 1918150 0
    0
    lan0 1500 192.168.1.0 192.168.1.25 59724686 0 66443172
    0 18847
    lo0 4136 127.0.0.0 127.0.0.1 50908 0 50908
    0 0
    rar5>

    I'm very new to HP-UX, I don't know what cause the problem? Is it
    possible for NIC fault?

    each word will be highly appreciated.

    Joe


  2. Re: HP-UX does not work with two NICs

    jshen.cad@gmail.com wrote:
    > Hi,
    >
    >
    > I was assigned as administrator of a HP-UX host which has three NICs
    > installed.
    >
    > Lan0 is built in LAN interface which has IP address 192.168.0.25.lan1 &
    > lan2 are two 10/100Mbps ethernet card which has 10.10.10.12 &
    > 10.10.10.13 configured. the host is connected to two L4 switches as
    > below
    >
    >
    > L4-switch-1 L4-switch-2
    > \ /
    > \ /
    > --------------- -----------
    > | |
    > ----- port Lan1-------------- port Lan2 ----
    > | HP-UX B.11.11 U 9000/800 |
    >
    > --------------------------------------------------------
    >
    > Problem we are facing ( make ports on L4 switches always on)
    > 1) Interface lan2 must be disabled on host to make L4-switch-1 find
    > 10.10.10.12 is OK
    >
    > 2) if lan2 is enabled, both L4 swtich marked both 10.10.10.12 and
    > 10.10.10.13 FAILED
    >
    > 3) if lan1 is disabled, lan2 is enabled on the host, the two L4
    > switches consider 10.10.10.12 & 10.10.10.13 FAILED;
    >
    > 4) when lan1 & lan2 are both enabled on host, I noticed lan1's
    > Ipkts & lan2's Opkts increase, but lan1's Opkts and Ian2'2 Ipkts does
    > not change at all
    >
    > rar5> netstat -ni
    >
    > Name Mtu Network Address Ipkts Ierrs Opkts
    > Oerrs Coll
    > lan2 1500 10.10.10.0 10.10.10.13 0 0 1353
    > 0 0
    > lan1 1500 10.10.10.0 10.10.10.12 1922568 0 1918150
    > 0 0
    > lan0 1500 192.168.1.0 192.168.1.25 59723842 0 66442227
    > 0 18847
    > lo0 4136 127.0.0.0 127.0.0.1 50908 0
    > 50908 0 0
    > rar5> netstat -ni
    > Name Mtu Network Address Ipkts Ierrs Opkts
    > Oerrs Coll
    > lan2 1500 10.10.10.0 10.10.10.13 0 0 1359
    > 0 0
    > lan1 1500 10.10.10.0 10.10.10.12 1922575 0 1918150 0
    > 0
    > lan0 1500 192.168.1.0 192.168.1.25 59724686 0 66443172
    > 0 18847
    > lo0 4136 127.0.0.0 127.0.0.1 50908 0 50908
    > 0 0
    > rar5>
    >
    > I'm very new to HP-UX, I don't know what cause the problem? Is it
    > possible for NIC fault?
    >
    > each word will be highly appreciated.
    >
    > Joe
    >



    By having lan1 & lan2 both in the network 10.10.10 you're confusing the
    hell out of the routing tables.

    What do you see if you do netstat -rn ?

    I don't know how your switch will respond to this, probably by being
    confused.

    But

    HP-UX will not know where to send out LAN packets from. If you have lan2
    in the netconf file after lan1, I suspect that it gets added second
    and so when ifconfig sets up the IP address it will set the routing
    tables so that packets going to 10.10.10.X go out of lan2.

    Unless you want to go and explicitly create routes such that some
    destination are routed via lan1 and some via lan2 you aren't going to
    see both lan cards working sensibly.

    If you have multiple LAN cards they should be in different subnets.

    If you want to use the 2 LAN cards to increase the through put then look
    at using Auto Port Agrigation (APA, bonding).


    Cheers

    Ken

  3. Re: HP-UX does not work with two NICs

    > By having lan1 & lan2 both in the network 10.10.10 you're confusing the
    > hell out of the routing tables.


    >
    > What do you see if you do netstat -rn ?



    rar5> netstat -nr
    Routing tables
    Destination Gateway Flags Refs Interface Pmtu
    127.0.0.1 127.0.0.1 UH 0 lo0
    4136
    10.10.10.12 10.10.10.12 UH 0 lan1
    4136
    10.10.10.13 10.10.10.13 UH 0 lan2
    4136
    192.168.1.25 192.168.1.25 UH 0 lan0
    4136
    10.10.10.0 10.10.10.13 U 2 lan2
    1500
    10.10.10.0 10.10.10.12 U 2 lan1
    1500
    192.168.1.0 192.168.1.27 U 2 lan0
    1500
    127.0.0.0 127.0.0.1 U 0 lo0
    0
    default 10.10.10.65 UG 0 lan1
    0
    rar5>

    With routing table above, I 'ping' default gateway, and find

    Before "ping" :

    # netstat -ni
    Name Mtu Network Address Ipkts Ierrs Opkts
    Oerrs Coll
    lan2 1500 10.10.10.0 10.10.10.13 4 0 1876
    0 0
    lan1 1500 10.10.10.0 10.10.10.12 3198506 0 3191893 0
    0
    lan0 1500 192.168.1.0 192.168.1.25 94021683 0 104702712
    0 28653
    lo0 4136 127.0.0.0 127.0.0.1 226172 0 226172 0
    0


    After "ping"

    ## netstat -ni
    Name Mtu Network Address Ipkts Ierrs Opkts
    Oerrs Coll
    lan2 1500 10.10.10.0 10.10.10.13 4 0 1876
    0 0
    lan1 1500 10.10.10.0 10.10.10.12 3198506 0 3191893 0
    0
    lan0 1500 192.168.1.0 192.168.1.25 94021683 0 104702712
    0 28653
    lo0 4136 127.0.0.0 127.0.0.1 226172 0
    226172 0 0
    #

    But, one both of L4-switches MAC address of lan2 is not learnt at all

    /* got from L4 switch */
    10: 10.10.10.12, 00:30:6e:4a:98:44, vlan 1, port 8, health 3, FAILED
    11: 10.10.10.13, 00:00:00:00:00:00, vlan 0, port 0, health 3, FAILED
    /* end of got from L4 switch */

    We have some other HP server configured as the server above, they work
    fine and L4 switch has no difficulty.

    Joe


  4. Re: HP-UX does not work with two NICs

    Ken Green wrote:
    > By having lan1 & lan2 both in the network 10.10.10 you're confusing
    > the hell out of the routing tables.


    Who's? HP-UX's? It doesn't care, it will simply take whichever
    interface was configured first or last (I can _never_ remember which,
    which I suppose is just as well since one cannot rely on that
    behaviour remaining from patch to patch).

    > Unless you want to go and explicitly create routes such that some
    > destination are routed via lan1 and some via lan2 you aren't going to
    > see both lan cards working sensibly.


    Now, that first or last may not be what seems sensible to the user

    > If you have multiple LAN cards they should be in different subnets.


    Or one should be setting ip_strong_es_model and/or doing the static
    route thing.

    Indeed though there is the question of just what these so called "L4
    switches" are up to.

    rick jones

    This is for the initial poster:

    One can specify more than one newsgroup in the Newsgroups: line. The
    format would look like this:

    Newsgroups: group1,group2,group3

    with no spaces in the grouplist. This has several advantages (so long
    as it is not abused by posting messages to inappropriate groups). Only
    one copy of your message must traverse the Internet, saving network
    bandwidth; only one copy of your message must be stored on each news
    server on the Internet, saving many MB of space world-wide; you only
    have to enter the news posting once, saving you time; people only have
    to read/skip your post once, saving them time; all responses in any
    group can be seen in all groups, keeping everyone up to date with the
    conversation.

    Also, you can add a Followup-to: header line which will direct all the
    follow-ups to a particular group, making it easier for you to look for
    responses.

    I hope you find this helpful. If you do, please pass it along to your
    peers as you see them needing the same advice.

    sincerely,

    rick jones

    --
    The glass is neither half-empty nor half-full. The glass has a leak.
    The real question is "Can it be patched?"
    these opinions are mine, all mine; HP might not want them anyway...
    feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...

+ Reply to Thread