- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ifalias? Need to add 2nd IP 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
04-07-2003 05:04 AM
04-07-2003 05:04 AM
ifalias? Need to add 2nd IP Address?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2003 06:00 AM
04-07-2003 06:00 AM
Re: ifalias? Need to add 2nd IP Address?
It's all built in to the ifconfig command now. Have a look at the man page for ifconfig.
e.g. to bind another IP address onto lan0
ifconfig lan0:1 10.10.10.2 netmask 255.255.255.0 up
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2003 08:13 AM
04-07-2003 08:13 AM
Re: ifalias? Need to add 2nd IP Address?
ifconfig lan0:0 inet 18.2.2.2
ifconfig lan0:1 inet 18.3.3.3
For /etc/rc.config.d/netconf
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=18.2.2.2
SUBNET_MASK[0]=255.0.0.0
INTERFACE_STATE[0]=up
INTERFACE_NAME[1]=lan0:1
IP_ADDRESS[1]=18.3.3.3
SUBNET_MASK[1]=255.0.0.0
INTERFACE_STATE[1]=up
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2003 08:58 AM
04-07-2003 08:58 AM
Re: ifalias? Need to add 2nd IP Address?
follow under of ifconfig command.
ifconfig lan0:0
ifconfig lan0:1 <2nd IP Address> netmask
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)
INTERFACE_NAME[0]="lan0:0"
IP_ADDRESS[0]=10.10.10.1
SUBNET_MASK[0]=255.255.248.0
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0
INTERFACE_NAME[1]="lan0:1"
IP_ADDRESS[1]=10.10.10.15
SUBNET_MASK[1]=255.255.248.0
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=""
DHCP_ENABLE[1]=0
have a good day!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2003 09:03 AM
04-07-2003 09:03 AM
Re: ifalias? Need to add 2nd IP Address?
INTERFACE_NAME[0]=lan0
INTERFACE_NAME[0]=lan0:0