First of all, I'm a newbie in networks, so, maybe somewhere there is an answer for my question, but I failed to find an answer.
Well, I have a lot of devices what has an Internet connection. I want to connet all of them into one network using VPN technologies. I use tinc-vpn to solve my needs and I want to use DHCP to configure my network.
The problem is here: I've successfully configure DHCP server and it serve all connected devices well, but when I reset device it obtain new address from DHCP.
As I understand when device become online it sends special broadcasting request into network what contains device's MAC. DHCP process what request and send response with network configurations back to device. Well, ifconfig
up virtual interface for VPN on device and assign random MAC to it. Whats why I always get random IP. I think if I ask ifconfig
to assign MAC address of physical network to the virtual interface I'll resolve my problem. Is it possible? If not how can I resolve my problem? I would not bother about this if DHCP IP pool was very big, but it serve only 250 devices, and device became offline very often.
Thanks in advance.