Anastasios Papadopoulos
2005-Jul-15 13:12 UTC
[Samba] Samba File Server with 2 NICs, only one is used
Hello all, We have a Mandrake 10.1 server with Samba 3.0.13. The box has 2 NICs, 2 IPs and our DNS servers have both entries (same name for 2 IPs). Since kerberos is not working around here (tried to fix it for about 3 weeks, then gave up) I found my workaround: I use NetBIOS alias for my server, all clients use this alias for samba access and they authenticate thgrough SSPI. My problem is that only one of my NICs seems to work : ifconfig | grep RX\ bytes gives: RX bytes:2906637535 (2771.9 Mb) TX bytes:4256133463 (4058.9 Mb) RX bytes:13805476 (13.1 Mb) TX bytes:546 (546.0 b) RX bytes:151532631 (144.5 Mb) TX bytes:151532631 (144.5 Mb) (last line is lo) This data is after 8 days of heavy usage... Any hints? smb.conf: workgroup = XXX realm = XXX.LOCAL netbios aliases = YYY server string = Samba Server %v interfaces = 192.168.254.2, 192.168.254.4 security = ADS auth methods = winbind password server = 192.168.254.1 192.168.254.3 log file = /var/log/samba/%m.log max log size = 200 read raw = No name resolve order = wins lmhosts bcast client signing = Yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 IPTOS_LOWDELAY hostname lookups = Yes printcap name = /etc/printcap os level = 5 local master = No dns proxy = No wins server = 192.168.254.1, 192.168.254.3 ldap ssl = no remote announce = 192.168.254.255 idmap uid = 10000-20000 idmap gid = 10000-20000 template shell = /bin/bash winbind use default domain = Yes valid users = @ZZZ create mask = 0760 hosts allow = 192.168.254.0/255.255.255.0 hide files = /.*/desktop.ini/thumbs.db/ TIA -- Anastasios Papadopoulos
> > We have a Mandrake 10.1 server with Samba 3.0.13. The box has 2 NICs, > 2 IPs and our DNS servers have both entries (same name for 2 IPs). > Since kerberos is not working around here (tried to fix it for about 3 > weeks, then gave up) I found my workaround: I use NetBIOS alias for my > server, all clients use this alias for samba access and they > authenticate thgrough SSPI. > > >It caused havoc on my system, I used 1 for Samba, 1 for DHCP & DNS.. on the same subnet... It really didn't help system performance, and just caused confusion in the log files... I believe the Best Practice, is to have 2 separate subnets, on those 2 cards. In & Out or 2 different Inside Subnets...
On Friday 15 July 2005 09:12 am, Anastasios Papadopoulos wrote:> Hello all, > > We have a Mandrake 10.1 server with Samba 3.0.13. The box has 2 NICs, > 2 IPs and our DNS servers have both entries (same name for 2 IPs). > Since kerberos is not working around here (tried to fix it for about > 3 weeks, then gave up) I found my workaround: I use NetBIOS alias for > my server, all clients use this alias for samba access and they > authenticate thgrough SSPI. > > My problem is that only one of my NICs seems to work : > > ifconfig | grep RX\ bytes gives: > > RX bytes:2906637535 (2771.9 Mb) TX bytes:4256133463 > (4058.9 Mb) RX bytes:13805476 (13.1 Mb) TX bytes:546 (546.0 b) RX > bytes:151532631 (144.5 Mb) TX bytes:151532631 (144.5 Mb) (last line > is lo)2 nic's on the same subnet? I have been told that this will not work. And to type "route" to see why. Chris
Paul Eggleton
2005-Jul-18 23:46 UTC
[Samba] Samba File Server with 2 NICs, only one is used
Steve wrote:> At a networking level, 2 NIC's on the same network will of course > work. To route traffic, use the -ifa or -ifp modifiers (on > OpenBSD)... ymmv on other OS's.Seems to me that you could use Linux's ethernet bonding support if the switch the machine is connected to supports port trunking. Cheers, Paul --------------------------------------------------------- Paul Eggleton Ph: +64-9-4154790 System Administrator Fax: +64-9-4154791 CJN Technologies Ltd. DDI: +64-9-4154795 http://www.cjntech.co.nz Email: paule@cjntech.co.nz ---------------------------------------------------------