다른 네트워크에서 PXE 부팅

다른 네트워크에서 PXE 부팅

그래서 문제가 생겼어요.

Debian9로 라우터를 설정했는데, 그 작업은 네트워크의 클라이언트가 PXE 서버에서 부팅할 수 있다는 것입니다(PXE 서버는 다른 네트워크에 있습니다). IP-Helper RelayAgent 정보

하지만 내 문제에 대한 문서를 찾지 못했습니다. 내가 찾은 모든 문서는 동일한 네트워크의 PXE 서버에 대한 것이었습니다.

그런데 PXE 서버는 존재하지만 네트워크 A에 있으므로 네트워크 B의 클라이언트가 이 서버에서 부팅할 수 있는지 확인하면 됩니다.

많은 조사를 했지만 아무것도 찾지 못했습니다 :(

@안드레아스 로게

그래서 인터넷을 찾아봤는데... dhcp.conf를 그렇게 구성하겠습니다...

allow booting;
allow bootp;

subnet 10.5.200.0 netmask 255.255.255.0 {
    option domain-name-servers 10.5.200.254;
    option broadcast-address 10.5.200.255;
    option subnet-mask 255.255.255.0;
    option routers 10.5.200.254;
    range 10.5.200.100 10.5.200.200;


#       group {
#               next-server the TFTP server address/pxe server;
#               filename "filename";
#
#
#               host ubuntu {
#                       hardware ethernet 08:00:07:26:c0:a5;
#                       fixed-address 10.5.200.10; }
            }
    }

그리고 내 Relay.conf는 다음과 같습니다.

# Defaults for isc-dhcp-relay initscript
# sourced by /etc/init.d/isc-dhcp-relay
# installed at /etc/default/isc-dhcp-relay by the maintainer scripts

#
# This is a POSIX shell fragment
#

# What servers should the DHCP relay forward requests to?
SERVERS="10.5.200.254"

# On what interfaces should the DHCP relay (dhrelay) serve DHCP requests?
INTERFACES="enp16s0"

# Additional options that are passed to the DHCP relay daemon?
OPTIONS=""

네트워크/인터페이스:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).



# The loopback network interface
auto lo
iface lo inet loopback
#test
#Member Network A
auto enp0s25
iface enp0s25 inet static
    address 40.4.200.252
    netmask 255.255.255.0
    gateway 40.4.200.254

#My NEW NETWORK B
auto enp16s0
iface enp16s0 inet static
    address 10.5.200.254
    netmask 255.255.255.0

답변1

PXE에는 DHCP와 TFTP라는 두 가지가 필요합니다.

TFTP는 라우팅 가능한 UDP 패킷이므로 라우터에 IP 전달이 설정되어 있고 방화벽 규칙이 올바른 경우 작동합니다.

누락된 것은 다른 네트워크의 DHCP입니다. 이는 설정이 매우 간단합니다. PXE에 필요한 모든 옵션을 포함하여 해당 네트워크를 dhcp-server에 추가합니다(첫 번째 네트워크에서 했던 것처럼 그 방법을 알게 될 것입니다). 마지막으로 라우터에 DHCP 릴레이 에이전트를 설치하고 구성해야 합니다. 그러면 네트워크 B의 브로드캐스트된 DHCP 요청이 DHCP 서버로 전달됩니다.

답변2

서브넷 B의 주소를 debian-server에 입력하고 tftp 서버가 모든 주소나 인터페이스를 수신하도록 만들 수 있습니까? 또는 필요한 경우 게이트웨이나 프록시를 사용하세요.

관련 정보