Koozali.org: home of the SME Server

Samba + two interfaces!!!

Grzesiek

Samba + two interfaces!!!
« on: February 25, 2003, 06:53:20 PM »
Hi,
I have installed SME ver.5.6 server and gateway.There are two ethernet cards.
My problem is that when I have configured Samba I only can see Samba Server from  one subnet and from other I can't see!!!
Can you suggest me something that I can do?
I configure Samba to allow hosts to enter from my subnets and I configure Samba to use both interfaces.
What else can I do?
Thanks for any suggestions.

tanyu

Re: Samba + two interfaces!!!
« Reply #1 on: February 25, 2003, 07:19:36 PM »
Have you set up the [interfaces] sections of the SMB.conf ?

if not, 'edit /etc/e-smith/templates/etc/smb/conf/11interfaces' add the adresses of your cards and rebuild the smb.conf.

Then do a 'service smb restart'

That should be enough.

--
Phil.

tanyu

Re: Samba + two interfaces!!!
« Reply #2 on: February 25, 2003, 07:22:50 PM »
I mistaped the path, you sould have dread :
'/etc/e-smith/templates/etc/smb.conf/11interfaces'

sorry.

Grzesiek

Re: Samba + two interfaces!!!
« Reply #3 on: February 25, 2003, 07:55:12 PM »
Yes I have done it.
But that doesn't work.I even restart server.Can you tell me how to restart smb service?I to this time kill the samba deamon and then start them.
What else can I do?

tanyu

Re: Samba + two interfaces!!!
« Reply #4 on: February 25, 2003, 08:10:00 PM »
you have to simply type :

'service smb restart'
(without the quotes of course)

you ought to do this after each smb.conf modification.

--
Phil.

Grzesiek

Re: Samba + two interfaces!!!
« Reply #5 on: February 25, 2003, 09:39:22 PM »
Thanks for that,but what about my problem.It doesn't work!!!
Have you got any ideas?

Jim Little

Re: Samba + two interfaces!!!
« Reply #6 on: February 26, 2003, 12:23:31 AM »
You say you have two interfaces.

Does that mean you really have three cards or do you have the system set up as server only?  If you have the system set as server and gateway one of your cards will act as an external interface.

Jim

Grzesiek

Re: Samba + two interfaces!!!
« Reply #7 on: February 26, 2003, 10:18:42 AM »
I have two cards and I have server and gateway.
If that mean that I can't configure samba shares to be seen from my two subnets of my network???

tanyu

Re: Samba + two interfaces!!!
« Reply #8 on: February 26, 2003, 11:20:22 AM »
Well ok... this is why...
Turn your server into server only and it will work..

Grzesiek

Re: Samba + two interfaces!!!
« Reply #9 on: February 26, 2003, 12:24:07 PM »
Ok one more quastion.If I add to my server one card (it will be the third card) and I will still have the server and gateway Samba will work correctly???
Thank you for your time.

tanyu

Re: Samba + two interfaces!!!
« Reply #10 on: February 26, 2003, 12:36:00 PM »
Yes, 2 cards for the local networks and 1 for the gateway...
That will work imho.

--
Phil.

Grzesiek

Re: Samba + two interfaces!!!
« Reply #11 on: February 26, 2003, 12:39:10 PM »
Thanks a lot you save my life:)
Have a nice day!