Answer the question
In order to leave comments, you need to log in
What is the best way to configure a DHCP server with static addresses for LAN and WLAN connections?
I set up the distribution of ip-addresses in accordance with the MAC-addresses.
(Debian, isc-dhcp-server + bind and about 170 clients on the network)
Of course, MAC-and LAN and WLAN cards in client laptops are different.
However, so far it has been done like this:
The following construction is used in the DHCP server config
host c18m-04.lan { hardware ethernet 54:BE:F7:16:4B:FA; fixed-address c18m-04; }
host c18m-04.wifi { hardware ethernet 70:18:8B:B9:8B:1D; fixed-address c18m-04; }
That is, if you connect via wifi or lan, the address will be assigned to the one that is tied to c18m-04 in the dns-server (BIND).
With this scheme, it is convenient that addresses can only be changed in BIND'e, and in the dhcp config you can only leave a pointer to the domain name. But sometimes problems arise if the client, being automatically connected to wifi, clings to the network via a twisted pair cable, and as a result, it receives addresses from APIPA on the LAN port, because. ip-shnik is already reserved for wifi-connection (which can be weak). As a result, there is no network (it does not happen often, but I want to avoid such a development of events).
How would you break it down more elegantly?
While choosing from:
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question