- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Howto configure Virtual Hostname
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
09-04-2005 07:26 PM
09-04-2005 07:26 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2005 08:48 PM
09-04-2005 08:48 PM
Solution/usr/sbin/ifconfig lan0:1 172.0.0.2 netmask 255.255.255.0
or in the file /etc/rc.config.d/netconf that will work over reboots:
INTERFACE_NAME[1]=lan1:1
IP_ADDRESS[1]=172.0.0.2
SUBNET_MASK[1]=255.255.255.0
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=""
DHCP_ENABLE[1]=0
or as a script (this is on solaris):
LOGICAL_IP=172.0.0.2
MASK=255.255.255.0
BOROADCAST=172.0.0.255
case "$1" in
start)
ifconfig bge0 addif $LOGICAL_IP netmask $MASK broadcast $BOROADCAST up
;;
stop)
ifconfig bge0 removeif $LOGICAL_IP
;;
*)
echo "Unknown positional parameter ! - no action taken."
;;
Esac
Remember that the interfase lan1 and lan1:1 is the same and then is on the same subnet it is just to virtualise a IP (hostname)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2005 09:02 PM
09-04-2005 09:02 PM
Re: Howto configure Virtual Hostname
I understand Virtual hostname in two way.
1. Virtual IP address with Virtual hostname:
You can define the virtual IP address
in the file /etc/rc.config.d/netconf that will work over reboots:
INTERFACE_NAME[1]=lan1:1
IP_ADDRESS[1]=10.0.0.1
SUBNET_MASK[1]=255.255.255.0
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=""
DHCP_ENABLE[1]=0
This means single Lan interface host, identified by multiple IP Addresses.
2. Alias/another hostname for same IP node. This can be achived by putting the CNAME entry for existing IP and hostname in the DNS Server.
This is like one IP address and multiple name.
Regards,
Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2005 12:30 AM
09-06-2005 12:30 AM
Re: Howto configure Virtual Hostname
cmmodnet -a -i ip_address subnet_address
Boston, MA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2005 12:39 AM
09-06-2005 12:39 AM
Re: Howto configure Virtual Hostname
PS: Im not using MCSG but Veritas Cluster Server