how to fake more then one device?
Eric Z. Ayers
Eric.Ayers@intec-telecom-systems.com
Tue, 10 Apr 2001 10:39:47 -0400 (EDT)
Hello Clemens,
I've seen some argue to the contrary, but my understanding is that
what you're setting up is "illegal".
The program 'find_if' is the one that searches out the best interface
for the IP address that you give it. You've got both nics on the same
IP subnet. find_if.c stops as soon as the network of the IP address
you pass matches the network of one of the Nics. I don' t think this
is really a problem with heartbeat. In general, my understanding is
that the second NIC is just not used in this case (unless an
application specifically requests to be bound that IP address), making
this seutp practially useless.
If you changed eth1 to be on a different IP subnet, and made its alias
on a different subnet, from reading the code, it looks like find_if
would put the second 'fake' ip on the second nic
e.g.
netmask: 255.255.255.0
real NIC: eth0 -> 192.168.0.1
faked NIC: eth0:0 -> 192.168.0.10
and
netmask: 255.255.255.0
real NIC: eth1 -> 192.168.1.2
faked NIC: eth1:0 -> 192.168.1.20
-Eric.
Clemens Gesell writes:
> Hello,
>
> i want to use the "heartbeat" tool on a machine that has 2 NICs!
> its a firewall machine with to network interfaces.
>
> so my question is, is it possible to give each NICs a extra faked
> ip-adress?
>
> e.g.
>
> real NIC: eth0 -> 192.168.0.1
> faked NIC: eth0:0 -> 192.168.0.10
>
> and
> real NIC: eth1 -> 192.168.0.2
> faked NIC: eth1:0 -> 192.168.0.20
>
> i have tested it with some haresoures configurations but the result was
> that "heartbeat" only uses the first networkcard.
> the result was the first networkcard (eth0) has 2 extra faked ips!
> but i need for each interface an faked ip.
>
>
> --
> Clemens Gesell <cgesell@astaro.de> | Product Development
> Astaro AG | www.astaro.com | Phone +49-721-490069-0 | Fax - 55
>
> ------------------------------------------------------------------------------
> Linux HA Web Site:
> http://linux-ha.org/
> Linux HA HOWTO:
> http://metalab.unc.edu/pub/Linux/ALPHA/linux-ha/High-Availability-HOWTO.html
> ------------------------------------------------------------------------------
--
Eric Z. Ayers Lead Software Engineer
Phone: +1 404-705-2864 Computer Generation, Incorporated
Fax: +1 404-705-2805 an Intec Telecom Systems Company
Web: http://www.intec-telecom-systems.com/
Email: eric.ayers@intec-telecom-systems.com
Postal: Bldg G 4th Floor, 5775 Peachtree-Dunwoody Rd, Atlanta, GA 30342 USA