Operating System - HP-UX
1825748 Members
2442 Online
109687 Solutions
New Discussion

Re: Can I use "ifconfig lan1:1.."command to simulate SG multiple ip's connection?

 
Hanry Zhou
Super Advisor

Can I use "ifconfig lan1:1.."command to simulate SG multiple ip's connection?

We seem to have a communication problem between SG and a special equipment. It seems the equipment can not react approapriately when deal with multiple ip's on the same LAN card.

So, we wanted to do a test before implement the SG. I know that SG will be using cmmodnet command to add additional ip on the card. However, since SG is not implemented, I plan to use "ifconfig lan1:1..." command to add the package ip on the station ip, thus, we can start the communicate between the package ip and the equipment.

My question is, is this good enough to simulate the interface that SG will create, in another words, is this a valid test, if we just want to test the part of lan communication? Is there anything else "cmmodnet" does for us, but "ifconfig ..." command can not do?

none
9 REPLIES 9
John Waller
Esteemed Contributor

Re: Can I use "ifconfig lan1:1.."command to simulate SG multiple ip's connection?

I'm sure that will work OK, when you implement serviceguard a netstat -in command will show your lan1:1 and I've used a similar trick in a DR test
Geoff Wild
Honored Contributor

Re: Can I use "ifconfig lan1:1.."command to simulate SG multiple ip's connection?

As far as I know, that would be a good test of a "simulated" SG network.

How do you plan to test?

If ping, use the -i option.

man ping for details...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
melvyn burnard
Honored Contributor

Re: Can I use "ifconfig lan1:1.."command to simulate SG multiple ip's connection?

Your test would essentially be a valid one
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
rariasn
Honored Contributor

Re: Can I use "ifconfig lan1:1.."command to simulate SG multiple ip's connection?

You can use this command:

# cmmodnet -a -i $IP_ADDRESS $SUBNET_MASK
Hanry Zhou
Super Advisor

Re: Can I use "ifconfig lan1:1.."command to simulate SG multiple ip's connection?

Okay.

The difference when the cluster communicate with outside and when the single node communicate with outside is that the cluster is using the muliple IP's on the same lan card. That is the only difference. Of cause, plus other failover functions, but, it is not our concern at this point.

Now, I have a few questions about cmmodnet

1. Does "cmmodnet -a -i $IP_ADDRESS $SUBNET_MASK" can do the same as what
"ifconfig lan0:1 netmask " can do for us?

2. without brining up the cluster, can "cmmodnet..." work?

3. What is the options or command to manually remove the floating IP?

Thanks for all your help.
none
Geoff Wild
Honored Contributor

Re: Can I use "ifconfig lan1:1.."command to simulate SG multiple ip's connection?

I've never run it while the cluster is down - in the man page, there is a warning bout running it manually while the cluster is running...

So, if the cluster is down - you should be fine.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Hanry Zhou
Super Advisor

Re: Can I use "ifconfig lan1:1.."command to simulate SG multiple ip's connection?

No, I am not able to run cmmodnet when the cluster is down:
cmmodnet : Unable to connect to daemon: Error on send
cmmodnet : Use the cmrunnode command to start the daemon on this node.

If I can't, then I will have the problem to simulate SG lan interface, other than using "ifconfig lan1:1.." command...
none
Geoff Wild
Honored Contributor

Re: Can I use "ifconfig lan1:1.."command to simulate SG multiple ip's connection?

What about having the cluster up - but the packages down?

You could even create a "blank" cluster with no packages (just save the current one to mycluster.asscii).

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Tvs
Regular Advisor

Re: Can I use "ifconfig lan1:1.."command to simulate SG multiple ip's connection?

hi.

it will work.if the service guard is running , then if u r issuning the command netstat -in command will show your lan1:1
means service guard also bind two ip for one physcial network card

pls find the attached sample netat -in

Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan0:1 1500 10.11.19.224 10.11.19.235 144744014 0 966322305 0 0
lan10 1500 192.18.114.0 192.18.114.50 3988876272 0 3830966507 0 0
lan1* 1500 none none 0 0 0 0 0
lan0 1500 10.11.19.224 10.11.19.227 225532008 0 234564487 0 0
lo0 4136 127.0.0.0 127.0.0.1 63047217 0 63047217 0 0
lan10:1 1500 192.18.114.0 192.18.114.54 87012906 0 63480149 0 0
lan6 1500 12.0.0.0 12.0.0.3 609263 0 623347 0 6979
lan4* 1500 none none 0 0 0 0 0