dhcpd는 파일 이름 옵션에 콜론을 허용하지 않습니다.

dhcpd는 파일 이름 옵션에 콜론을 허용하지 않습니다.

어떤 이유로든 tftpboot매개변수에 콜론을 사용할 수 없습니다.filename

group {
  filename "node7:linux/pxelinux.0";

  host machine_7a  {
    hardware ethernet 02:01:02:02:01:11;
    fixed-address 192.168.10.8;
  }

  host machine_7b {
    hardware ethernet 02:01:02:02:01:12;
    fixed-address 192.168.10.9;
  }
}

콜론을 대시로 변경하면 -원격 시스템이 tftpboot를 정상적으로 시작합니다. 매개변수의 콜론이 filename작동하지 않는 이유를 알고 계십니까?

고쳐 쓰다:

/var/log/message내가 설정했을 때의 filename출력"node7-linux/pxelinux.0"

Jan 22 22:52:48 linux-yp1y dhcpd: DHCPDISCOVER from 02:01:02:02:01:11 via br0
Jan 22 22:52:48 linux-yp1y dhcpd: DHCPOFFER on 192.168.10.7 to 02:01:02:02:01:11 via br0
Jan 22 22:52:49 linux-yp1y dhcpd: DHCPDISCOVER from 02:01:02:02:01:11 via br0
Jan 22 22:52:49 linux-yp1y dhcpd: DHCPOFFER on 192.168.10.7 to 02:01:02:02:01:11 via br0
Jan 22 22:52:51 linux-yp1y dhcpd: DHCPREQUEST for 192.168.10.7 (192.168.10.1) from 02:01:02:02:01:11 via br0
Jan 22 22:52:51 linux-yp1y dhcpd: DHCPACK on 192.168.10.7 to 02:01:02:02:01:11 via br0
Jan 22 22:52:51 linux-yp1y atftpd[12967]: Serving node7-linux/pxelinux.0 to 192.168.10.7:1024
Jan 22 22:52:51 linux-yp1y dhcpd: DHCPDISCOVER from 02:01:02:02:01:11 via br0
Jan 22 22:52:51 linux-yp1y dhcpd: DHCPOFFER on 192.168.10.7 to 02:01:02:02:01:11 via br0
Jan 22 22:52:52 linux-yp1y dhcpd: DHCPDISCOVER from 02:01:02:02:01:11 via br0
Jan 22 22:52:52 linux-yp1y dhcpd: DHCPOFFER on 192.168.10.7 to 02:01:02:02:01:11 via br0
Jan 22 22:52:54 linux-yp1y dhcpd: DHCPREQUEST for 192.168.10.7 (192.168.10.1) from 02:01:02:02:01:11 via br0
Jan 22 22:52:54 linux-yp1y dhcpd: DHCPACK on 192.168.10.7 to 02:01:02:02:01:11 via br0
Jan 22 22:52:54 linux-yp1y atftpd[12967]: Serving node7-linux/pxelinux.cfg/default to 192.168.10.7:1024
Jan 22 22:52:54 linux-yp1y atftpd[12967]: Serving node7-linux/vmlinuz to 192.168.10.7:1025
Jan 22 22:52:55 linux-yp1y atftpd[12967]: Serving node7-linux/initrd to 192.168.10.7:1026
Jan 22 22:53:14 linux-yp1y dhcpd: DHCPDISCOVER from 02:01:02:02:01:11 via br0
Jan 22 22:53:14 linux-yp1y dhcpd: DHCPOFFER on 192.168.10.7 to 02:01:02:02:01:11 via br0
Jan 22 22:53:14 linux-yp1y dhcpd: DHCPREQUEST for 192.168.10.7 (192.168.10.1) from 02:01:02:02:01:11 via br0
Jan 22 22:53:14 linux-yp1y dhcpd: DHCPACK on 192.168.10.7 to 02:01:02:02:01:11 via br0
Jan 22 22:53:15 linux-yp1y dhcpd: DHCPDISCOVER from 02:01:02:02:01:12 via br0
Jan 22 22:53:15 linux-yp1y dhcpd: DHCPOFFER on 192.168.10.8 to 02:01:02:02:01:12 via br0
Jan 22 22:53:15 linux-yp1y dhcpd: DHCPREQUEST for 192.168.10.8 (192.168.10.1) from 02:01:02:02:01:12 via br0
Jan 22 22:53:15 linux-yp1y dhcpd: DHCPACK on 192.168.10.8 to 02:01:02:02:01:12 via br0

/var/log/message다음과 같이 설정하면 filename출력됩니다 "node7:linux/pxelinux.0".

Jan 22 23:16:57 linux-yp1y kernel: [343021.700191] br0: port 6(vnet6) entering forwarding state
Jan 22 23:16:57 linux-yp1y kernel: [343021.700296] device vnet6 left promiscuous mode
Jan 22 23:16:57 linux-yp1y kernel: [343021.700302] br0: port 6(vnet6) entering disabled state
Jan 22 23:16:57 linux-yp1y kernel: [343021.721423] br0: port 7(vnet7) entering forwarding state
Jan 22 23:16:57 linux-yp1y kernel: [343021.721467] device vnet7 left promiscuous mode
Jan 22 23:16:57 linux-yp1y kernel: [343021.721470] br0: port 7(vnet7) entering disabled state
Jan 22 23:16:58 linux-yp1y kernel: [343021.742969] br2: port 4(vnet8) entering forwarding state
Jan 22 23:16:58 linux-yp1y kernel: [343021.743040] device vnet8 left promiscuous mode
Jan 22 23:16:58 linux-yp1y kernel: [343021.743042] br2: port 4(vnet8) entering disabled state
Jan 22 23:16:58 linux-yp1y ifdown:     vnet6     
Jan 22 23:16:58 linux-yp1y ifdown: Interface not available and no configuration found.
Jan 22 23:16:58 linux-yp1y ifdown:     vnet7     
Jan 22 23:16:58 linux-yp1y ifdown: Interface not available and no configuration found.
Jan 22 23:16:58 linux-yp1y ifdown:     vnet8     
Jan 22 23:16:58 linux-yp1y ifdown: Interface not available and no configuration found.
Jan 22 23:17:01 linux-yp1y kernel: [343025.377050] device vnet6 entered promiscuous mode
Jan 22 23:17:01 linux-yp1y kernel: [343025.393810] br0: port 6(vnet6) entering forwarding state
Jan 22 23:17:01 linux-yp1y kernel: [343025.393814] br0: port 6(vnet6) entering forwarding state
Jan 22 23:17:01 linux-yp1y kernel: [343025.449562] device vnet7 entered promiscuous mode
Jan 22 23:17:01 linux-yp1y kernel: [343025.466276] br0: port 7(vnet7) entering forwarding state
Jan 22 23:17:01 linux-yp1y kernel: [343025.466280] br0: port 7(vnet7) entering forwarding state
Jan 22 23:17:01 linux-yp1y kernel: [343025.557549] device vnet8 entered promiscuous mode
Jan 22 23:17:01 linux-yp1y kernel: [343025.574265] br2: port 4(vnet8) entering forwarding state
Jan 22 23:17:01 linux-yp1y kernel: [343025.574270] br2: port 4(vnet8) entering forwarding state
Jan 22 23:17:03 linux-yp1y dhcpd: DHCPDISCOVER from 02:01:02:02:01:11 via br0
Jan 22 23:17:03 linux-yp1y dhcpd: DHCPOFFER on 192.168.10.7 to 02:01:02:02:01:11 via br0
Jan 22 23:17:04 linux-yp1y dhcpd: DHCPDISCOVER from 02:01:02:02:01:11 via br0
Jan 22 23:17:04 linux-yp1y dhcpd: DHCPOFFER on 192.168.10.7 to 02:01:02:02:01:11 via br0
Jan 22 23:17:05 linux-yp1y kernel: [343029.580829] br2: port 4(vnet8) entering forwarding state
Jan 22 23:17:06 linux-yp1y dhcpd: DHCPREQUEST for 192.168.10.7 (192.168.10.1) from 02:01:02:02:01:11 via br0
Jan 22 23:17:06 linux-yp1y dhcpd: DHCPACK on 192.168.10.7 to 02:01:02:02:01:11 via br0
Jan 22 23:17:06 linux-yp1y dhcpd: DHCPDISCOVER from 02:01:02:02:01:12 via br0
Jan 22 23:17:06 linux-yp1y dhcpd: DHCPOFFER on 192.168.10.8 to 02:01:02:02:01:12 via br0
Jan 22 23:17:07 linux-yp1y dhcpd: DHCPDISCOVER from 02:01:02:02:01:12 via br0
Jan 22 23:17:07 linux-yp1y dhcpd: DHCPOFFER on 192.168.10.8 to 02:01:02:02:01:12 via br0
Jan 22 23:17:09 linux-yp1y dhcpd: DHCPREQUEST for 192.168.10.8 (192.168.10.1) from 02:01:02:02:01:12 via br0
Jan 22 23:17:09 linux-yp1y dhcpd: DHCPACK on 192.168.10.8 to 02:01:02:02:01:12 via br0
Jan 22 23:17:12 linux-yp1y kernel: [343035.804008] vnet8: no IPv6 routers present
Jan 22 23:17:12 linux-yp1y kernel: [343036.148005] vnet7: no IPv6 routers present
Jan 22 23:17:12 linux-yp1y kernel: [343036.397004] vnet6: no IPv6 routers present
Jan 22 23:17:24 linux-yp1y dhcpd: DHCPDISCOVER from 02:01:02:02:01:11 via br0
Jan 22 23:17:24 linux-yp1y dhcpd: DHCPOFFER on 192.168.10.7 to 02:01:02:02:01:11 via br0
Jan 22 23:17:25 linux-yp1y dhcpd: DHCPDISCOVER from 02:01:02:02:01:11 via br0
Jan 22 23:17:25 linux-yp1y dhcpd: DHCPOFFER on 192.168.10.7 to 02:01:02:02:01:11 via br0
Jan 22 23:17:27 linux-yp1y dhcpd: DHCPREQUEST for 192.168.10.7 (192.168.10.1) from 02:01:02:02:01:11 via br0
Jan 22 23:17:27 linux-yp1y dhcpd: DHCPACK on 192.168.10.7 to 02:01:02:02:01:11 via br0
Jan 22 23:17:27 linux-yp1y dhcpd: DHCPDISCOVER from 02:01:02:02:01:12 via br0
Jan 22 23:17:27 linux-yp1y dhcpd: DHCPOFFER on 192.168.10.8 to 02:01:02:02:01:12 via br0
Jan 22 23:17:28 linux-yp1y dhcpd: DHCPDISCOVER from 02:01:02:02:01:12 via br0
Jan 22 23:17:28 linux-yp1y dhcpd: DHCPOFFER on 192.168.10.8 to 02:01:02:02:01:12 via br0
Jan 22 23:17:30 linux-yp1y dhcpd: DHCPREQUEST for 192.168.10.8 (192.168.10.1) from 02:01:02:02:01:12 via br0
Jan 22 23:17:30 linux-yp1y dhcpd: DHCPACK on 192.168.10.8 to 02:01:02:02:01:12 via br0

답변1

PXELINUX는 다음과 같은 특수 경로 이름 규칙을 지원합니다.

::파일 이름 일반적인 파일 이름 접두사를 억제합니다. 즉, "filename" 문자열을 수정하지 않은 채 서버에 전달합니다.

IP 주소::파일 이름 (e.g. node7::filename) 일반적인 파일 이름 접두사를 억제하고 대체 TFTP 서버로 요청을 보냅니다. IP 주소 대신 DNS 이름을 사용할 수 있습니다. 점이 포함되어 있으면 정규화된 것으로 간주됩니다. 그렇지 않으면 DHCP 서버(옵션 15)에서 보고한 로컬 도메인이 추가됩니다.

이중 콜론("::")은 운영 체제 사용과 충돌할 가능성이 적기 때문에 선택되었습니다.

속성:여기

관련 정보