LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-10-2005, 04:14 AM   #1
pingu
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:
Code:
ifcfg-eth0:
DEVICE=eth0
IPADDR=10.0.4.6
DHCP_HOSTNAME=UGGLAN

ifcfg-eth1
DEVICE=eth1
IPADDR=172.16.1.6
DHCP_HOSTNAME=UVEN
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 172.16.1.6
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, 09:03 PM   #2
GrueMaster
Member
 
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:
Quote:
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, 01:49 AM   #3
pingu
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.
Actually,
Quote:
Allows you to have multiple network interfaces on the same
subnet
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.
 
  


Reply



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 04:31 PM
NetBIOS names not resolving Xhalman Linux - Networking 0 02-16-2004 02:38 PM
SAMBA: display of share names is OK but files names are wrong superandrzej Linux - Software 5 02-02-2004 09:14 AM
Weird Netbios Names RWild Linux - Networking 4 01-04-2003 10:09 AM
samba NetBIOS names problem dkodegwc Linux - Networking 10 12-10-2002 12:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:03 AM.

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