- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to config 2 IP address with 2 different card
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2023 01:57 AM - last edited on 08-16-2023 04:01 AM by support_s
08-16-2023 01:57 AM - last edited on 08-16-2023 04:01 AM by support_s
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?
- Tags:
- Operating System
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2023 03:10 AM
08-16-2023 03:10 AM
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]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2023 07:19 AM
08-24-2023 07:19 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 12:07 PM
08-25-2023 12:07 PM
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