[Samba] 2 nics, 2 shares, 1 PC

John H Terpstra jht at samba.org
Tue Feb 11 02:03:26 GMT 2003


On Mon, 10 Feb 2003 bkrusic at yahoo.com wrote:

> Hi,
>
> How would I config my smb.conf file to use a share on
> eth0 and another share on eth1?
>
> This is a manual way of load balancing.
>
> Thanks in advance,

Have not tried it, but here is a start!

In smb.conf:

[globals]
	workgroup = FooBar
	Netbios name = foodman
	Netbios aliases = foodgal
	include = smb.conf.%L


In smb.conf.foodman:

[globals]
	interfaces = eth0
	bind interfaces only = Yes

[sharename1]
	path = /food/barn/foodman



In smb.conf.foodgal:

[globals]
	interfaces = eth1
	bind interfaces only = Yes

[sharename2]
	path = /food/barn/foodgal


Yada, yada, yada ...

- John T.
-- 
John H Terpstra
Email: jht at samba.org


More information about the samba mailing list