[Samba] Samba with 2 NICs
hamacker
sirhamacker at gmail.com
Mon Sep 22 16:50:29 GMT 2008
/etc/network/interfaces accept bond0 and runs fine, I change :
interfaces = bond0, lo
bind interfaces only = Yes
in smb.conf
I can ping from anywhere, but Samba can not autenticate any Windows.
Then I change again and back in /etc/network/interfaces to eth0. And
include in smb.conf :
interfaces = bond0, ****eth0****, lo
bind interfaces only = Yes
And now everything is OK, both WinXP e Win9x can logon into domain.
But 'eth0' still disable, see :
bond0 Link encap:Ethernet HWaddr 00:0c:76:97:04:f3
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:76ff:fe97:4f3/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:290850 errors:0 dropped:0 overruns:0 frame:0
TX packets:285844 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:75906076 (72.3 MB) TX bytes:219213427 (209.0 MB)
eth0 Link encap:Ethernet HWaddr 00:0c:76:97:04:f3
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:96067 errors:0 dropped:0 overruns:0 frame:0
TX packets:142953 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:28372347 (27.0 MB) TX bytes:109526393 (104.4 MB)
Interrupt:18 Base address:0x2000
eth1 Link encap:Ethernet HWaddr 00:0c:76:97:04:f3
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:194783 errors:0 dropped:0 overruns:0 frame:0
TX packets:142891 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:47533729 (45.3 MB) TX bytes:109687034 (104.6 MB)
Interrupt:19 Base address:0x9000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1324 errors:0 dropped:0 overruns:0 frame:0
TX packets:1324 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:106749 (104.2 KB) TX bytes:106749 (104.2 KB)
I dont know Why change directly /etc/network/interfaces does not
permit Win machines autenticate on Samba, but :
# ifconfig bond0 192.168.1.2 netmask 255.255.255.0
# ifenslave -v bond0 eth0 eth1
# route add default gw 192.168.1.254
in terminal and changes in smb.conf, resolve my problem.
Thanks a lot.
2008/9/20 Chris Smith <smb_77 at chrissmith.org>:
> On Saturday 20 September 2008 11:35:42 am hamacker wrote:
>> # ifconfig eth0
>> eth0 Link encap:Ethernet HWaddr 00:0c:76:97:04:f3
>> inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
>
> eth0 should not have an address - it should belong only to bond0.
> eth0 and eth1 are both slaves to the master bond0.
>
>> # The primary network interface
>> auto eth0
>> iface eth0 inet static
>
> Should probably more like:
> iface bond0 inet static
>
>> my smb.conf :
>> [global]
>> unix charset = UTF8
>> workgroup = VIDY2005
>> server string = %h server (Samba %v)
>> interfaces = eth0, eth1
>
> Should be:
> interfaces = bond0, lo
> bind interfaces only = Yes
>
More information about the samba
mailing list