samba/smb.conf question

Associate
Joined
28 Oct 2002
Posts
1,510
I have finally managed to network my Ubuntu 11.10 to Win7 - though i seem to have a reduction in internet speed - it was quite bad but improved a lot after changing these bits.........
name resolve order = lmhosts host wins bcast
name resolve order = lmhosts wins bcast host

However it still seems slower.

My query relates to the fact that the motherboard has 2 network connections ETH0 and ETH1 but the smb.conf file (see below) inly refers to eth0 - assuming this matters is there any way to fix this?

==============================================
#### Networking ####
# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
; interfaces = 127.0.0.0/8 eth0
===============================================

thanks
 
It's not clear to me what problem you're experiencing. You mention networking Linux and Win7 boxes and that this has somehow affected your "internet speed." Assuming that they are connected by some intermediary switch or combined router/switch then surely the only way you are going to see diminished throughput from the internet is if the local network bandwidth is saturated or the hard disks on the affected system can't keep up?

name resolve order states that it simply configures the preference for hostname resolution. I don't think that should impact throughput in any way.

You can think of the interfaces and bind interfaces only variables as being more important if, for example, the Linux box is simultaneously using one that is internet-facing and another which is LAN-only and you want to confer a bit more security by telling Samba to only listen on the LAN. If this is not the case then just set interfaces to whichever one you've got the network cable plugged in to.
 
i think you mean that i can't for instance specify both eth0 and eth1 ;
interfaces = 127.0.0.0/8 eth0;eth1
which is what i was curious about

will try what you suggested

many thanks
 
I'm pretty sure ; is a comment prefix in the samba configuration.

Anything after ; will be not be read by samba.
 
Do you want to cobbine eth0 and eth1 so you can increase transfer speeds?

If so you need to bond them and create a bond0 device, then just specify that in smb.conf
 
I'm pretty sure ; is a comment prefix in the samba configuration.

Anything after ; will be not be read by samba.

That was just an example - i put the ";" in myself - i wondered if something like this, but maybe a different notation was possible
 
Back
Top Bottom