Operating System - HP-UX
1833043 Members
2617 Online
110049 Solutions
New Discussion

how to config 2 IP address with 2 different card

 
quocduy
Occasional Contributor

how to config 2 IP address with 2 different card

Hi ,

I have 1 server hp unux rx2660, on rx2660 then have 2 network card.

I has config:

lan0: 10.0.65.10

lan1: 10.0.66.10

but in the same time, only 1 ip address I can ping, and only lan0 or lan1 is working,

I would like config in the same time, both lan0 and lan1 is working.

how to config them?

 

 

 

 

            

3 REPLIES 3
shiva_jr
HPE Pro

Re: how to config 2 IP address with 2 different card

Hi, 
To assign the 2 IP addresses to the system. these are the configurations -
a. IP address range must be different.  (Ex. 192.168.x.x and 10.x.x.x)
b. Both IP addresses must belongs to different subnet. (255.255.252.0, 255.255.255.0)
c. Assign the Gateway to the one network which is public. (If I assume, you are assigning Public and Private network)

Regards,
Shiva_JR



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Sunitha_Mod
Honored Contributor

Re: how to config 2 IP address with 2 different card

Hello @quocduy,

Let us know if you were able to resolve the issue.

If you have no further query and you are satisfied with the answer then kindly mark the topic as Solved so that it is helpful for all community members.

Bill Hassell
Honored Contributor

Re: how to config 2 IP address with 2 different card

Sorry you didn't very good help with this question.

You can setup each LAN card using ifconfig but that will only stay until you reboot your server.
To keep the ifconfig settings, they must be added to the file /etc/rc,config.d/netconf.
You'll find your first LAN card settings with the parameters ending with [0].
Your next LAN card will have parameters ending with [1].

However, getting all the values correctly entered can be confusing.
You can instead use smh to configure your cards.
Just type:

smh

And select Networking and Communications (type: n)
Then Network Interfaces Configuration (type: i)
Then Network Interface Cards (type: n)
Now use the up/down arrows to select your LAN card.
When the correct card is highlighted, press enter

You'll see the 1-character commands at the bottom of the screen.
Type: p
to get to the setup screen.
Now use the arrow keys to skip to each value.

Once the IPaddr, Subnet Mask are set, you can select Modify then enter to save the changes.

Or you can use the smh web page to configure lan1.
Specify your IPaddr:2301 to access the web version of smh.

NOTE: Most web browsers will object to http. Find one that you can bypass the https requirement.



Bill Hassell, sysadmin