-   Linux - Networking (
-   -   2 nic's = 2 netbios names wanted! (

pingu 11-10-2005 05:14 AM

2 nic's = 2 netbios names wanted!
I have been struggling with this for quite some time now:
I have a samba-server (FC4) with 2 network cards. Naturally, they shall have different names and this is the problem - both names are tied to same IP.
/etc/sysconfig/network-scripts/ and /etc/sysconfig/networking/defaults/ ifcfg-eth0 and eth1 clearly states:



In smb.conf I have netbios aliases and wins server = x.x.x.x
Pinging these two names from server returns correct IP's, but from any other workstation in any subnet both are assigned to
The two subnets use the same DHCP, DNS and WINS-server.
So how on earth do I get one name per nic???

GrueMaster 11-10-2005 10:03 PM

As a test, try this:

Echo 1 >/proc/sys/net/ipv4/conf/all/arp_filter

Here's the snipit of documentation from the kernel doc's:

arp_filter - BOOLEAN
1 - Allows you to have multiple network interfaces on the same
subnet, and have the ARPs for each interface be answered
based on whether or not the kernel would route a packet from
the ARP'd IP out that interface (therefore you must use source
based routing for this to work). In other words it allows control
of which cards (usually 1) will respond to an arp request.

0 - (default) The kernel can respond to arp requests with addresses
from other interfaces. This may seem wrong but it usually makes
sense, because it increases the chance of successful communication.
IP addresses are owned by the complete host on Linux, not by
particular interfaces. Only for more complex setups like load-
balancing, does this behaviour cause problems.

arp_filter for the interface will be enabled if at least one of
conf/{all,interface}/arp_filter is set to TRUE,
it will be disabled otherwise
Try that and let me know the results.

pingu 11-11-2005 02:49 AM

Thaks for the suggestion, but it didn't help.

Allows you to have multiple network interfaces on the same
that's not really the problem.
The interfaces are and must be on different subnets.
This should be a simple setup according to samba's doc
You add "netbios aliases = name1 name2", "include = /etc/samba/smb.conf-%L" and create two config files: /etc/samba/smb.conf-name1 and /etc/samba/smb.conf-name2.
"testparm" reads smb.conf.name1 but ignores smb.conf.name2 completely. It isn't even mentioned.
It could be a samba-problem, but I do believe the real problem is computer has only one netbios-name.

All times are GMT -5. The time now is 07:10 AM.