Samba on two Interfaces
Samba on two Interfaces
Hi All,
I've a File Server running CENTOS 7.1 with two interfaces: enp4s0 & enp4s1
enp4s0: 192.168.1.10
enp4s1: 192.168.2.10
Both shall share different dir's of the underlying Raid system.
But how to setup the Samba service to work on two interfaces ?
Or if that's not possible, how to setup multiple instances of Samba ?
I've a File Server running CENTOS 7.1 with two interfaces: enp4s0 & enp4s1
enp4s0: 192.168.1.10
enp4s1: 192.168.2.10
Both shall share different dir's of the underlying Raid system.
But how to setup the Samba service to work on two interfaces ?
Or if that's not possible, how to setup multiple instances of Samba ?
Re: Samba on two Interfaces
Can't you get Samba to listen on both interfaces? Is that the problem?
Re: Samba on two Interfaces
No, that's not the problem.
The point is: I've two interfaces that support two different networks. And both net's should get their shares from this machine
The point is: I've two interfaces that support two different networks. And both net's should get their shares from this machine
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Samba on two Interfaces
Then what is the problem?
Re: Samba on two Interfaces
How to:
configure samba to work on two different sub-nets
or
start two different instances of Samba so I'd have one per subnet
configure samba to work on two different sub-nets
or
start two different instances of Samba so I'd have one per subnet
Re: Samba on two Interfaces
Samba works on multiple interfaces at the same time if you tell it to do so. What is your concern about doing that?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 1522
- Joined: 2014/05/21 20:16:00
- Location: Central New York, USA
Re: Samba on two Interfaces
Going out on a limb here I think they're eluding to options in the /etc/samba/smb.conf file. I'm by no means an expert but I'd guess it's a matter of defining the interfaces. I did a little digging and found the docs below but didn't immediately spot any references to your question therein.How to:
https://access.redhat.com/documentation ... samba.html
Hopefully someone with more know-how than myself will step in. In the meantime perhaps you'll find something worth while.
Re: Samba on two Interfaces
As a clue, if samba is listening on all interfaces (usually presented as *:<port number> in ss and netstat) then it'll "get" requests to it from any network connected.
Re: Samba on two Interfaces
If I understand it correctly, samba by defaults listens on all active interfaces. You can restrict it, or include a complete list using the "interfaces" directive, but you only need one instance of samba to provide shares to you network.
You may have a problem, however, if you want to offer different services on each interface.
You may have a problem, however, if you want to offer different services on each interface.