Operating System - HP-UX
1834140 Members
2758 Online
110064 Solutions
New Discussion

Problem with configuration Secondary NIC.

 
SOLVED
Go to solution
bunty.....
Frequent Advisor

Problem with configuration Secondary NIC.

Hi,
I need to configure another IP address on secondary NIC.

these are the details:
# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/0/8/1/0/4/0 0x00306EF3D7AA 0 UP lan0 snap0 1 ETHER Yes 119
1/0/1/1/0/4/0 0x00306E497FFE 1 UP lan1 snap1 2 ETHER Yes 119
1/0/10/1/0 0x00306EF4680E 2 UP lan2 snap2 3 ETHER Yes 119

# ifconfig lan0
lan0: flags=1843
inet 170.120.1.14 netmask ffffff80 broadcast 170.120.1.17

# ifconfig lan1
ifconfig: no such interface

# ifconfig lan2
ifconfig: no such interface

I need to configure the secondary NIC as follows:

lan1--170.120.1.15 (subnet:255.255.255.128)

how can i do this?
and in which files , i have to make changes & what changes

Once I tried with this:
#ifconfig lan1 170.120.1.15 netmask 255.255.255.128 broadcast 170.120.1.127 up

Then i got disconnected from my server,
I am not physicaly near to my server thatz why i faced a alot of problems.

thanks
bunty
6 REPLIES 6
Jeff_Traigle
Honored Contributor

Re: Problem with configuration Secondary NIC.

You can't configure two NICs on the same subnet.
--
Jeff Traigle
Steven E. Protter
Exalted Contributor

Re: Problem with configuration Secondary NIC.

Shalom bunty,

What you are tyring is no problem with Linux.

You should not do it with HP-UX. With early versions of HP-UX having two cards on the same network caused a complete network crash.

You need a product like APA, auto port aggregation and supported hardware to do what you are trying and then you'll end up with a number of network ports with the same master address.

At that point you can do virtual addressing to have multiple ip addresses.

So stop trying this, it won't work.

:-)

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
bunty.....
Frequent Advisor

Re: Problem with configuration Secondary NIC.

please suggest
Jeff_Traigle
Honored Contributor
Solution

Re: Problem with configuration Secondary NIC.

What are you trying to accomplish by assigning the second IP address? If it's to add bandwidth, you'll need the APA product that Steven mentioned. If you just need to add a second IP address for user/application accessibility, then you can assign a second IP address to the currently configured interface. Add the following to /etc/rc.config.d/netconf:

INTERFACE_NAME[1]="lan0:1"
IP_ADDRESS[1]=170.120.1.15
SUBNET_MASK[1]=255.255.255.128
BROADCAST_ADDRESS=""
INTERFACE_STATE[1]="up"
DHCP_ENABLE[1]=0

And to configure it immediately manually:

ifconfig lan0:1 170.120.1.15 netmask 255.255.255.128 up
--
Jeff Traigle
Raj D.
Honored Contributor

Re: Problem with configuration Secondary NIC.

Hi Bunty ,

The same subnet on both the card will not support and one card will be disabled or the original IP will not be available, causing you will loose your connection , like before . And then you need to make it ok after logging to GSP IP , if you have one.

So it is not possible , though with a separate product HP APA as mentioned earlier it is possble.

btw what are u going to configure with this,

Best Regards,
cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
rick jones
Honored Contributor

Re: Problem with configuration Secondary NIC.

Stephen is mostly correct, if perhaps a triffle overstated :) It is generally not a good idea to configure multiple physical (from the view of the transport) NICs into the same IP subnet under HP-UX. If you must do this (cannot purchase APA which is the "Right" way to do this) then you either need to script some ping/linklopp commands to detect when your primary NIC is down and bring-up the secondary, or consider using ip_strong_es_model set to 1 (not sure if there is a 2 option yes) and the attendent issues and/or doa bunch of static routes.

Otherwise, if you configure both NICs into the same IP subnet both will be used for inbound but only one will be used for outbound. If both NICs are not equally connected to the network, it can make the network look flakey at best.

When making host networking changes like yours it is best to be on the console rather than connected via the network. that way if you do mess-up the network you have a chance at fixing it.
there is no rest for the wicked yet the virtuous have no pillows