- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to set an ip-alias address ?
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
05-28-2009 12:05 PM
05-28-2009 12:05 PM
How to set an ip-alias address ?
I have to configure an alias-IP address on a lan-card in addition to the existing one.
Until now , I couldn't find anything in the documentation.
How do i setup the alias-address?
Any help from from the forum would be apreciated.
As far as i know following command can be useful:
#ifconfig lan0:1 ip_address up
but if i want to set it permanently then???
Thanks in advance,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2009 12:23 PM
05-28-2009 12:23 PM
Re: How to set an ip-alias address ?
Have a look at this thread.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=72711
1)
ifconfig lan0:0
ifconfig lan0:1 <2nd IP Address> netmask
2)
open/edit this file if, you wanna got permanent ip setting
/etc/rc.config.d/netconf
(ip address lan0:0 -> 10.10.10.1 , lan0:1 -> 10.10.10.15)
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2009 12:29 PM
05-28-2009 12:29 PM
Re: How to set an ip-alias address ?
edit the file /etc/rc.config.d/netconf
copy a block of lanX definition into a new block (example below)
INTERFACE_NAME[1]=lan1
IP_ADDRESS[1]=14.2.82.21
SUBNET_MASK[1]=255.255.255.0
BROADCAST_ADDRESS[1]=14.2.82.255
INTERFACE_STATE[1]=up
DHCP_ENABLE[1]=0
and make a new block with your ip-alias and new lanX:Y instance as in the example below:
INTERFACE_NAME[2]=lan1:1
IP_ADDRESS[2]=14.2.82.31
SUBNET_MASK[2]=255.255.255.0
BROADCAST_ADDRESS[2]=14.2.82.255
INTERFACE_STATE[2]=up
DHCP_ENABLE[2]=0
Stop and start networking
/sbin/init.d/net stop
/sbin/init.d/net start
or just reboot the machine
this should be it.
On the other hand, if the IP alias is going to be on a different subnet, you have to configure VLAN and talk to your network administrators about trunking this physical interface but it is a matter of a totally separate discussion as it is not called aliasing.
Hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2009 12:37 PM
05-28-2009 12:37 PM
Re: How to set an ip-alias address ?
/etc/rc.config.d/netconf add :
root@hpeos001[] # vi /etc/rc.config.d/netconf
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=192.168.0.67
SUBNET_MASK[0]=255.255.255.224
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0
INTERFACE_NAME[1]=lan0:1
IP_ADDRESS[1]=200.200.10.10
SUBNET_MASK[1]=255.255.255.0
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=""
DHCP_ENABLE[1]=0
INTERFACE_NAME[2]=lan0:2
IP_ADDRESS[2]=150.17.35.100
SUBNET_MASK[2]=255.255.0.0
BROADCAST_ADDRESS[2]=""
INTERFACE_STATE[2]=""
DHCP_ENABLE[2]=0
from the book : HP-UX CSE Official Study Guide and Desk Reference => 15.12 IP Multiplexing
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2009 12:40 PM
05-28-2009 12:40 PM
Re: How to set an ip-alias address ?
Thanks
Minhaz