Beaglebone DHCP 서버는 자체 IP 주소를 할당합니다.

Beaglebone DHCP 서버는 자체 IP 주소를 할당합니다.

Beaglebone Black(Debian 실행)에서 DHCP 서버를 실행하려고 하는데 고정 IP 주소(192.168.17.1)를 제공하고 싶지만 자체적으로 다른 IP 주소(192.168.17.12)를 계속 할당하고 있습니다. 나는 임대 계약서를 확인하여 실제로 자체 주소를 할당하고 있는지 확인했으며 어딘가에 오타가 있는지 확인했습니다.

내 /etc/network/interfaces 파일은 다음과 같습니다.

auto eth0
iface eth0 inet static
address 192.168.17.1
netmask 255.255.255.0
gateway 192.168.17.1

iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.0
network 192.168.7.0
gateway 192.168.7.1

내 dhcpd.conf 파일은 다음과 같습니다.

option domain-name "BBB";
option domain-name-servers ns1.example.org, ns2.example.org;

default-lease-time 600;
max-lease-time 7200;

subnet 192.168.17.0 netmask 255.255.255.0 {
   range 192.168.17.10 192.168.17.20;
   option subnet-mask 255.255.255.0;
   option broadcast-address 192.168.17.255;
   option routers 192.168.17.1;
}

한 가지 가능한 해결 방법은 dhcpd.conf 파일에서 IP 주소를 수정하는 것입니다. 예를 들어:

host fantasia {
  hardware ethernet 08:00:07:26:c0:a5;
  fixed-address fantasia.fugue.com;
}

하지만 이 방법은 옳지도 안전하지도 않은 것 같습니다. 더 나은 해결책을 아는 사람이 있습니까?

관련 정보