Gentoo Archives: gentoo-user

From: "Florian Gamböck" <ml@×××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] netifrc, configure by SSID and MAC simultaneously?
Date: Fri, 21 Apr 2017 12:21:33
Message-Id: 20170421122007.GA31343@furore
In Reply to: Re: [gentoo-user] netifrc, configure by SSID and MAC simultaneously? by Neil Bothwick
1 Hi Neil!
2
3 On 2017-04-19 12:00, Neil Bothwick wrote:
4 > On Wed, 19 Apr 2017 12:46:09 +0200, Florian Gamböck wrote:
5 >> On 2017-04-18 20:41, Mick wrote:
6 >>> Assuming you have access to your home's router, you can configure on
7 >>> it a static IP address for the MAC address of the Raspi. The home
8 >>> router will not allocate any such reserved IP address to any other
9 >>> device, but reserve it for the Raspi's MAC address.
10 >
11 >> That's what I've been doing in the past, but my Cisco router had
12 >> problems with that. It tried to give away addresses I have
13 >> specifically reserved and it ended up cutting the connections and
14 >> refusing to let new machines connect as long as there was a conflict.
15 >
16 > You should allocate static addresses from outside of the DHCP reserved
17 > range. For example, set the DHCP range to 192.168.1.100-200 then
18 > allocate static addresses from below there.
19
20 That's what I've been doing until now, which is why I originally started
21 this thread.
22
23 What Mick meant was configuring the router, so it reserves IP addresses
24 for specified MAC addresses. These "almost" static addresses have to be
25 taken from within the DHCP range, because it is actually the DHCP server
26 that provides them. I used routers in the past which worked perfectly
27 with this setup, but somehow the machines I have to use nowadays don't
28 like anything wich is not plain old DHCP.
29
30 >> Besides, I like having configuration files on my computers, which I
31 >> can exchange and adjust as I like, without the need to click through
32 >> heavily overloaded router configuration WebApps.
33 >
34 > If you have an always on computer on your network, I would recommend
35 > trying dnsmasq. It has a DHCP server and means you can do all your
36 > network configuration in the one place, with simple text config files.
37
38 This sounds really promising, thank you for this tip! And also thank you
39 Peter and Paul for your feedback!
40
41 I will put it on my ToDo list and consider it the next time I'm about to
42 kick my router! ;-)
43
44 --
45 Kind regards
46
47 Flo

Replies

Subject Author
Re: [gentoo-user] netifrc, configure by SSID and MAC simultaneously? Neil Bothwick <neil@××××××××××.uk>