- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HPUX 11.00: Configuring "Virtual" IP Address T...
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
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
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
тАО11-20-2002 03:30 AM
тАО11-20-2002 03:30 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2002 03:29 AM
тАО11-20-2002 03:29 AM
Solutionifconfig lan0:1 192.168.3.5 netmask 255.255.255.0
will assign the ip 192.168.3.5 to lan0:1
Put the appropriate entries in /etc/rc.config.d/netconf to make the changes permanent.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2002 03:32 AM
тАО11-20-2002 03:32 AM
Re: HPUX 11.00: Configuring "Virtual" IP Address To Single LAN Card
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2002 03:34 AM
тАО11-20-2002 03:34 AM
Re: HPUX 11.00: Configuring "Virtual" IP Address To Single LAN Card
This should work.
Here lan0 is the interface card name.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2002 09:44 AM
тАО11-20-2002 09:44 AM
Re: HPUX 11.00: Configuring "Virtual" IP Address To Single LAN Card
to activate:
ifconfig lanX:Y A.B.C.D up
where "lanX" is the device name, "Y" is an (unused) number startinh with 1, and "A.B.C.D" is the IP-address you want to use.
to deactivate:
ifconfig lanX:Y 0.0.0.0
or in other words: the dummy IP-address 0.0.0.0 turns it off.
FWIW,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2002 12:13 PM
тАО11-20-2002 12:13 PM
Re: HPUX 11.00: Configuring "Virtual" IP Address To Single LAN Card
To add alias to interface lan0 enter from root:
ifconfig lan0:1 192.168.3.5 netmask 255.255.255.0 up
specifying netmask in this scenario is optional as your IP is in class C network and subnet 255.255.255.0 is default for class C.
From naming convention we use 'virtual' IPs = real IP + 10 on our site. But this is up to you and your network admins.
Hope this helps,
0leg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2002 01:24 AM
тАО11-22-2002 01:24 AM
Re: HPUX 11.00: Configuring "Virtual" IP Address To Single LAN Card
If U have MC-Service/Guard in UR machine, U can also use cmmodnet command to add virtual IP addresses
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2002 01:36 AM
тАО11-22-2002 01:36 AM
Re: HPUX 11.00: Configuring "Virtual" IP Address To Single LAN Card
To assign multiple IP,
Ifconfig lan0:1 plumb
Ifconfig lan0:1 x.x.x.x netmask x.x.x.x up
Netstat -nr (shows the second IP bound to lan0:1)
You can add lan0:1 array in netconf file for making the changes permanent.
Rgds,
Karthik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2002 02:42 AM
тАО11-22-2002 02:42 AM
Re: HPUX 11.00: Configuring "Virtual" IP Address To Single LAN Card
the extra entry in /etc/rc.config.d/netconf would look like:
INTERFACE_NAME[1]=lan0:1
IP_ADDRESS[1]=xxx.xxx.xxx.xxx
SUBNET_MASK[1]=255.255.255.0
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=""
DHCP_ENABLE[1]=0
Klaus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2002 09:52 PM
тАО11-23-2002 09:52 PM
Re: HPUX 11.00: Configuring "Virtual" IP Address To Single LAN Card
I'm having a similar problem Configuring "Virtual" IP Address To Single LAN Card, maybe you could provide some insight as well.
1.
Assigned the following VIPs only lan0 card on
localhost(zeus:11.11.20.11):
/etc/hosts
zeus-root IN A 11.11.20.21
zeus-user IN A 11.11.20.22
zeus-oper IN A 11.11.20.23
using both methods;
SAM and command line, ifconfig lan0:1 11.11.20.21 netmask 255.255.255.0 up
But route table shows :
# netstat -nr
11.11.20.21/255.255.255.255 ... 11.11.20.21
11.11.20.11/255.255.255.0 ... 11.11.20.21
And I'm getting errors from starting Apache Server reporting : ...can't resolve "localhost" with netmask
255.255.255.255.
When I open SAM, the netmask is shown to be
255.255.255.0 for 11.11.20.21
I read the following in this forum :
>>The trick is setting up static routes on the host box. I.e., you have to explicitely identify routes from local host to "each of the interfaces", then to each of the networks, and each gateway. Plus you still need to pick one or the other as the true default gateway.
Do I actually need to do and how to do the above ?
Please advice.
THanks in advance,
Jessica