이 절에서는 installadm을 사용하여 ISC DHCP 구성을 위해 DHCP 구성 파일에 정보를 추가하는 방법을 보여줍니다. ISC DHCP 구성에 대한 자세한 내용은 Oracle Solaris 11.2의 DHCP 작업 의 2 장, ISC DHCP 서비스 관리를 참조하십시오.
다음 예제에서는 이전에 만든 Oracle Solaris 11.2 i386 설치 서비스용 ISC DHCP 구성을 위해 installadm을 사용하여 –i 및 –c 옵션으로 지정된 IP 주소를 /etc/inet/dhcpd4.conf 파일에 추가하는 방법을 보여줍니다.
subnet 10.80.239.0 netmask 25.255.255.0 { range 10.80.239.150 10.80.239.169; option broadcast-address 10.80.239.255; option routers 10.80.239.1; next-server 10.80.239.170; }
다음 예제에서는 이전에 만든 default-i386 Oracle Solaris 11.2 i386 설치 서비스용 ISC DHCP 구성을 위해 installadm을 사용하여 /etc/inet/dhcpd4.conf 파일에 기본 PXE 부트 파일을 설정하는 방법을 보여줍니다.
class "PXEBoot" { match if (substring(option vendor-class-identifier, 0, 9) = "PXEClient"); if option arch = 00:00 { filename "default-i386/boot/grub/pxegrub2"; } else if option arch = 00:07 { filename "default-i386/boot/grub/grub2netx64.efi"; } }
Oracle Solaris 11.2 서비스 대신 Oracle Solaris 11 i386 설치 서비스를 만드는 경우 다음 예제와 비슷한 출력이 표시됩니다.
If not already in place, the following should be added to the DHCP configuration: Boot server IP : 10.134.125.136 Boot file : default-i386/boot/grub/pxegrub
다음 예제에서는 Oracle Solaris 11 i386 설치 서비스용 ISC DHCP 구성을 위해 installadm을 사용하여 /etc/inet/dhcpd4.conf 파일에 기본 PXE 부트 파일을 설정하는 방법을 보여줍니다.
class "PXEBoot" { match if (substring(option vendor-class-identifier, 0, 9) = "PXEClient"); if option arch = 00:00 { filename "default-i386/boot/grub/pxegrub"; } }
i386 서비스 대신 sparc 설치 서비스를 만든 경우 다음 예제와 비슷한 출력이 나타납니다.
If not already in place, the following should be added to the DHCP configuration: Boot file: http://10.80.238.5:5555/cgi-bin/wanboot-cgi
다음 예제에서는 Oracle Solaris 11.2 sparc 설치 서비스용 ISC DHCP 구성을 위해 installadm을 사용하여 /etc/inet/dhcpd4.conf 파일에 기본 부트 파일을 설정하는 방법을 보여줍니다.
class "SPARC" { match if not (substring(option vendor-class-identifier, 0, 9) = "PXEClient"); filename "http://10.80.238.5:5555/cgi-bin/wanboot-cgi"; }