- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- assigning multiple IP address to a single NIC 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
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
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
тАО01-09-2007 02:30 AM
тАО01-09-2007 02:30 AM
assigning multiple IP address to a single NIC card
Can we do this in HP-UX 11.23? Has anyone done this before? What are the advantage and disadvantage? I appreciate your comments in advance.
Thanks
kesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2007 02:41 AM
тАО01-09-2007 02:41 AM
Re: assigning multiple IP address to a single NIC card
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2007 02:44 AM
тАО01-09-2007 02:44 AM
Re: assigning multiple IP address to a single NIC card
Yes,
Its call virtual networking.
You create a virtual ip address on the same network and subnet as the parent.
You do it in /etc/rc.config.d/netconf
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=10.3.3.104
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=10.3.3.255
INTERFACE_STATE[0]=up
DHCP_ENABLE[0]=0
Add the virtual interface
INTERFACE_NAME[1]=lan0:1
IP_ADDRESS[1]=10.3.3.105
SUBNET_MASK[1]=255.255.255.0
BROADCAST_ADDRESS[1]=10.3.3.255
INTERFACE_STATE[1]=up
DHCP_ENABLE[1]=0
Then restart the system or networking.
I think it works just find and use this feature when needed.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2007 02:45 AM
тАО01-09-2007 02:45 AM
Re: assigning multiple IP address to a single NIC card
ifconfig. (see man ifconfig.)
ifconfig lan1 10.11.61.41 netmask 255.255.255.0 up
Then for a 2nd IP,
ifconfig lan1:1 10.11.62.42 netmask 255.255.255.0
It's done all the time.
As far as the advantage/disadvantage, that depends on what you really want to do...
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2007 12:36 PM
тАО01-09-2007 12:36 PM
Re: assigning multiple IP address to a single NIC card
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2007 01:48 PM
тАО01-09-2007 01:48 PM
Re: assigning multiple IP address to a single NIC card
Say your primary IP on a card (lan0) is 1.2.3.4 with a 255.255.255.0 subnet mask. You are plugged into a switch port that is set up for the 1.2.3 network. This is pretty normal and should work pretty well.
Now, say you add an additional IP to this card (lan0:1) of 1.2.4.5 with a subnet mask of 255.255.255.0. Remember that you are still plugged into a switch port set for 1.2.3 network. The 1.2.4.5 address will likely be essentially useless since it can't get anywhere on the switch since it is not part of the 1.2.3 network.
The restriction for having the addresses on the same subnet may not be a HP-UX restriction anymore, but you must consider your network setup very carefully.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2007 04:45 AM
тАО01-10-2007 04:45 AM
Re: assigning multiple IP address to a single NIC card
A "router" on the other hand will indeed care about what is in the IP header.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2007 05:16 AM
тАО01-10-2007 05:16 AM
Re: assigning multiple IP address to a single NIC card
I agree, somewhat. But if you have a switch that is set up with VLANs. Say ports 1-5 are VLAN3 (1.2.3.x) and port 6-10 are VLAN4 (1.2.4.x).
Then if the HP-UX is attached to port 3 then a 1.2.3 address for lan0 will work, BUT a 1.2.4 address for lan0:1 may not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2007 05:22 AM
тАО01-10-2007 05:22 AM