Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-10-2005, 05:14 AM   #1
Senior Member
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
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???
Old 11-10-2005, 10:03 PM   #2
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
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.
Old 11-11-2005, 02:49 AM   #3
Senior Member
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Original Poster
Rep: Reputation: 127Reputation: 127
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ping netbios names from linux (samba) HadroLepton Linux - Networking 25 03-23-2016 05:31 PM
NetBIOS names not resolving Xhalman Linux - Networking 0 02-16-2004 03:38 PM
SAMBA: display of share names is OK but files names are wrong superandrzej Linux - Software 5 02-02-2004 10:14 AM
Weird Netbios Names RWild Linux - Networking 4 01-04-2003 11:09 AM
samba NetBIOS names problem dkodegwc Linux - Networking 10 12-10-2002 01:32 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration