IP issue

Hi
i'm encountering this really weird problem, and i was wondering if anyone could help me out.

Basically we have server A, and B. All on the same network, same subnet.

Here's the scenario:

Box A's ifconfig stats:
eth0 --> 216.18.0.100
eth0:1 --> 216.18.0.101
eth0:2 --> 216.18.0.102

Box B's ifconfig stats:
eth0 --> 216.18.0.30
eth0:1 --> 216.18.0.31
eth0:2 --> 216.18.0.32

On Box A, i have websites, and mail running.
Mail.mywebsites.com dns to either 216.18.0.101 or .102
Domains and www DNS to .101 and .102
name servers run off .101 and .102 (tinydns)

On Box B, nothing. Fresh, just put online.

What i want to do is dupliate Box A, onto Box B.
Then once i'm done duplicating, copying files, and all that. I would like to unbind the two ips (101 and 102) off Box A and bind them on Box B. Get what i'm saying?

Sounds easy doesn't it?

Well, after i finished copying. I was ready
I logged into box A, and ran:
cd /etc/rc.d/
pico ipsoff

inside the file ipsoff i wrote:
/sbin/ifconfig eth0:1 down
/sbin/ifconfig eth0:2 down

saved it, chmod +x'ed it
then pico ipson
inside there i wrote:
/sbin/ifconfig eth0:1 216.18.0.101
/sbin/ifconfig eth0:2 216.18.0.102

chmod +x'ed that too.

then i Logged into box B and did:
cd /etc/rc.d
pico ipsnew
i wrote
/sbin/ifconfig eth0:3 216.18.0.101
/sbin/ifconfig eth0:4 216.18.0.102

saved it, chmod +x'ed it

Then on BOX A, i ran
cd /etc/rc.d
./ipsoff

then on box B i ran:
cd /etc/rc.d/
./ipsnew

ran /sbin/ifconfig on box B
ips were binded
But for some reason when i told someone to goto www.mysite.com
it wouldnt work

I don't know why.... So i restored everything back to normal, i wont explain how. I'm sure you can figure that out.

I logged onto ANOTHER server, on a totally different network
I typed this command:

ping 218.18.0.102

the replies came, and came.. and kept going, steady, great.

So then, after everything was restored, everything worked. So then what i did was, i logged in box A, and i ran ifconfig, and what i saw was:
eth0 --> 216.18.0.100
eth0:1 --> 216.18.0.101
eth0:2 --> 216.18.0.102

That's correct. At this point, i was still pinging that ip, anyhow, this is what i did

/sbin/ifconfig eth0:2 down

Once i did that, the ping replies stopped. Normal.

Then, i went onto box B and ran
/sbin/ifconfig eth0:3 216.18.0.102

You would think, that after doing this, i would get ping replies, right? well.. --> No ping replies

So then
ifconfig eth0:3 down
ifconfig eth0:99 216.18.0.102

Still no ping replies
then
ifconfig eth0:99 down

I logged back onto box A, and put 216.18.0.102 BACK on the ip list
with ifconfig eth0:2 216.18.0.102 -- BAM
ping came back
replies were coming in the second i hit enter

Why? This makes me wonder. Have i done something wrong? Or does my isp have a setting or somethign where it gives the main ip (eth0) control over my eth0:* ips ?

I'm calling my provider today or tomorrow anyway, i just wanted to know if anyone could help me find a solution.

 

 

 

 

Top