Operating System - HP-UX
1828218 Members
2029 Online
109975 Solutions
New Discussion

Howto configure Virtual Hostname

 
SOLVED
Go to solution
Rahul Sharma_4
Advisor

Howto configure Virtual Hostname

HI folks - Im not aware how to set up a virtual hostname for a hpux 11.23 system. I need a virtual hostname for my machine inorder to install Oracle Cluster Ready Service for PA. Any assistance appreciated!
4 REPLIES 4
Jannik
Honored Contributor
Solution

Re: Howto configure Virtual Hostname

are you looking for the way to configure a virtual IP on a host it is done by ifconfig:
/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)
jaton
Rajesh SB
Esteemed Contributor

Re: Howto configure Virtual Hostname

Hi,

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
Matthew Ghofrani
Regular Advisor

Re: Howto configure Virtual Hostname

If you have ServiecGuard installed, use this command;
cmmodnet -a -i ip_address subnet_address

Boston, MA
Life is full of bugs
Rahul Sharma_4
Advisor

Re: Howto configure Virtual Hostname

solved! thanx a ton!
PS: Im not using MCSG but Veritas Cluster Server