IPMP/zones config how for this case ,urgent

Hi

I am setting up a test server for actual 2 node servers which will be behind load balancer. I will not be using sun cluster at all. The test machine is installed with solaris 10.

I am not sure how to setup a test env of 2 nodes on only 1 node..may be creating 2 zones on test server will help the situation.

now if I want to create 2 zones on this solaris 10 test machine and 2 network ports connected to switch from the test server , how should I configure IPMP on the test server.

What I have is,

4 IPS and 4 corresponding hostnames available ( with DNS entries) which I have to use on test machine. following info is given to me...

a.b.c.10 - machine specific hostname
a.b.c.11 - hostanme-e1000g0
a.b.c.12 - hostname-e1000g1
a.b.c.13 - application specific hostname

I wonder how to configure this test server for IPMP.

Please guide me and provide steps as it would save my time.

Current-test server

I have all4 ip-hosts entry in /etc/hosts and hostname of server is /etc/nodename = /etc/hostname.e1000g0

Thanks

you will just need to have 2 cables. one for each IP. the zones will host the virtual IP, thus your zones should nit be configured for IPMP except for your physical box.
check this out.
[Solaris IP Multipathing made easy](Click here)

Thanks, I will see that link;)

Can you tell me , if I want to create 2 zones,

can I use 1 network interface on physical server for both zones or 2 zones *have* to be on two different network interfaces ?ie. e1000g0, e1000g1

Also, can I use same host name I used in /etc/hosts for one external interface - for a zone ?

I have 4 IPS and 4 hostnames in /etc/hosts and I configured IPMP for 2 hostnames mentioned in the file.

Please let me know,

Also , the link you pasted helped in configuring IPMP, Thanks

Yes, you can have a single interface for 2 zones bcos they are virtual. When you set the physical net, automatically the first zone will use e1000g0:1 and so on..
you can use same hostname (but not recommended) in a case if you were to implement DNS, there'll be conflict

My method of ipmp configuration will be like this, just a sample:
/etc/hosts:

host 192.168.2.34 #floating IP/server IP
hostA 192.168.2.134 # IP for 1st NIC e1000g0
hostB 192.168.2.234 # IP for 2nd NIC e1000g1

Thanks for quick reply again,

my config is as follows, I have not created zones !!

-bash-3.00$ cat /etc/hosts

-bash-3.00$ cat /etc/hostname.e1000g0

-bash-3.00$ cat /etc/hostname.e1000g1

/sbin/ifconfig -a

apache-t has a dns entry already..but what I will be doing is have a load balancer for the Apps installed in 2 zones and test the 2 load balanced zones.
apache-t is the host name that will be used to access the load balanced apps installed in 2 zones.

BTW I have one more hostname available with IP not yet used and not having entry in /etc/hosts and already with resource record in DNS.

I am confused on what host names should be given and what IPs and if these IPs have to have a DNS record at all.

Thanks

You can keep any hostname or IP you want and theres no hard and fast rule for that. /etc/hosts need not have zonename and IP in it. Its just virtual.
once you have created the zone successfully , you will be able to see its attributes by doing a zonecfg -z <zonename> info . zoneadm list -vc should show whether your zone is running.
ifconfig -a will "see" the ip and name of you zone. or you may diectly login to the zone using zlogin -l root <zonename> from the global zone. Once you're in the zone do ifconfig to check the IP, you should be able to ping the zone similar to how you do to the host from anywhere and it should work.

Thanks a lot ...:b:

you're always welcome! :slight_smile: