[Gluster-users] how to restrict client connection to server to only one IP address

Łukasz Zygmański vins at umk.pl
Thu Oct 16 18:48:03 UTC 2014


Hello,

I am new to this list and new to GlusterFS, so I would be grateful if 
you could help me.

I am trying to do this setup:

client1(10.75.2.45)
    |
    |   MTU 1500
    V
(10.75.2.41)
   gluster1                gluster2
(10.75.2.43)  ------->  (10.75.2.44)
               <-------
               MTU 9000

In words, I have two glusterfs servers (in replication): gluster1 and 
gluster2 and a glusterfs client client1.
The gluster1 has two network interfaces: 10.75.2.41 and 10.75.2.43.
I would like gluster1 to communicate with gluster2 using jumbo frames 
and connection would be between interfaces 10.75.2.43 and 10.75.2.44.
Since the client1 can only use default packet size (MTU 1500) I would 
like it to connect with gluster1 using only other network interface: 
10.75.2.41.

Is it possible?

At the moment on gluster1 I have:

eno16780032: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
         inet 10.75.2.43  netmask 255.255.255.0  broadcast 10.75.2.255
eno33559296: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
         inet 10.75.2.41  netmask 255.255.255.0  broadcast 10.75.2.255

and when I mount from client1 using:
mount -t glusterfs 10.75.2.41:/vol1 /mnt/glusterfs

it still uses connection to 10.75.2.43:
# netstat -natup | egrep '(2.41|2.43)'
tcp        0      0 10.75.2.45:1020 10.75.2.43:49152        ESTABLISHED 
10856/glusterfs
tcp        0      0 10.75.2.45:1022 10.75.2.41:24007        ESTABLISHED 
10856/glusterfs

Is there a way to restrict communication from client1 to gluster1 using 
only one IP address: 10.75.2.41?

Any help would be much appreciated.

Best regards
Lukasz

PS
GlusterFS version on client:
glusterfs-3.5.2-1.el7.x86_64
glusterfs-fuse-3.5.2-1.el7.x86_64

GlusterFS version on server:
glusterfs-server-3.5.2-1.el7.x86_64
glusterfs-3.5.2-1.el7.x86_64


More information about the Gluster-users mailing list