[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Linux-cluster] Network Interface Binding



Hi,

On Tue, 2010-07-27 at 16:30 +0100, Mark Watts wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I have a working CentOS 5.5/RHCS cluster in order to support a simple
> GFS2 filesystem (ontop of DRBD) between 2 nodes.
> 
> Since the two nodes have multiple network interfaces, I'd like to tie
> all cluster communication to ETH2 as ETH0 is my production-facing interface.
> 
> I understand I can partially achieve this by using a hostname mapped
> (via /etc/hosts) to the IP address of ETH2 in cluster.conf.
> This seems to work for OpenAIS; the multicast address it uses is bound
> to to eth2 according to "ip maddress show dev eth2", but ccsd is still
> listening on 0.0.0.0 for various ports according to netstat.
> 
> How can I force ccsd to use ETH2?
> 
> Regards,
> 
> Mark.
> 
Assuming that you have different subnets on the interfaces, setting the
routing table correctly should be enough. Just be careful that any names
which are being resolved point to the correct ip addresses.

If you don't have a different subnet, you can still do it if you mark
the traffic with iptables and route according to the mark.

You may need multiple routing tables (again depending on the exact
configuration) and a couple of routing rules to ensure that replies are
always sent out of the same interfaces on which the queries came in on,

Steve.

> - -- 
> Mark Watts BSc RHCE MBCS
> Senior Systems Engineer, IPR Secure Managed Hosting
> www.QinetiQ.com
> QinetiQ - Delivering customer-focused solutions
> GPG Key: http://www.linux-corner.info/mwatts.gpg
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.14 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAkxO+4IACgkQBn4EFUVUIO3+5QCgwctCm6Xd4kohggq8RsvPim5+
> iYUAn2jLHQAUejGof9VDCRr3t/HYS9iH
> =0XH3
> -----END PGP SIGNATURE-----
> 
> --
> Linux-cluster mailing list
> Linux-cluster redhat com
> https://www.redhat.com/mailman/listinfo/linux-cluster



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]