You haven't stated clearly what your problem really is, but ...
On Thu, 29 Oct 2015 12:08:46 +0100, askfor <
[email protected]> wrote:
My problem is not unique, but I still don't have a solution. My home computers obtain IP addresses from DHCP server on my home router. The addresses change.
So far, so normal.
I could force fixed addresses, but I wonder if there is a more elegant solution. I could create dummy network devices with fixed addresses, but
that is more or less the same, but more complicated.
Why do you want to do this? I think I can guess as below, but you
haven't actually said what is the original problem that fixed IP
addresses would, erm, 'address'?!
There is a daemon named NMBD which comes with Samba. It does the right
thing, only for NetBIOS protocol. Clients register with it when they
'come alive'. My guess is that NMBD requires fixed IP address, too ?
Is there any way I could put NMBD in the good use ?
smbd and nmbd are the server daemons to run samba/cifs which is
Windows-style file sharing for Linux PCs, and both daemons are
required for a Linux PC to offer shares to Windows PCs.
Your mentioning of NETBIOS gives me some clue as to what is the real
problem that you haven't actually stated ...
Yer average common-or-garden router has two modes of running DHCP, as
a server, and as a relay. As a server, it dishes out IPs to your
local subnet, as a relay, it obtains them from an authority higher up,
usually your ISP. The server arrangement is by far the most commonly
used. In principle, DHCP is primarily designed to dish out IP
addresses, but in practice usually doles out other network-related configuration data as well, most importantly, DNS settings.
DNS is what dynamically associates a name with an IP address, so that
in a Windows machine you can type into Explorer \\Server\Share rather
than \\IPAddress\Share, and on a Linux machine you can connect via nfs
to Sever:Path rather than IPAdress:Path. However, a lot of
programmers of router software do not realise that the above model of
either being a server or a relay is inadequate for DNS. A local DNS
server still needs to relay upstream those DNS requests it cannot meet
locally, but many common-or-garden routers cannot do this - if
configured as a server, they think the entire world is encapsulated in
the LAN, so you can ping by name any local machine, but a ping fails
for a device on the internet, or they relay everthing upstream, so you
can ping by name anything on the internet, but not anything local, or
perhaps you can, but only at the cost of your ISP knowing the details
of all the machines on your LAN, which certainly shouldn't be
necessary, and some may think an undesirable lapse of security.
With such a router, the above is the basic situation wrt to Linux
devices on the LAN, but Windows devices are more fortunate, in that
NETBIOS over TCP/IP can at least cover for the lack of proper router
DNS functionality by the Browser Master, on a SOHo LAN usually the
first PC to power up, dispensing NETBIOS names. As Windows is by far
the most common OS, and many SOHo networks consist only of Windows
machines, many routers appear only to be tested on such LANs, so the
lack of proper DNS functionality is never found, and never corrected.
Therefore, if you want to mix Linux and Windows on the same network,
you either have to use Samba on the Linux machines - which means the
daemons to offer shares, and the client to connect to shares offered
by others - or do something about the router - which means either
replacing it (but how do you know in advance that the replacement will
be any better), or reflashing it with open source firmware, such as
OpenWRT, the DNS of which can be configured to work properly.
Does that answer your unstated question?
--
========================================================
Please always reply to ng as the email in this post's
header does not exist. Or use a contact address at:
http://www.macfh.co.uk/JavaJive/JavaJive.html
http://www.macfh.co.uk/Macfarlane/Macfarlane.html
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)