[AIX 네트워크 관리 19] TCP/IP (13) DHCP 서버 파일 옵션과 일반 서버 구문
https://archive.horanglab.com/posts/aix-net-tcpip-13
핵심 정리
- 구성 파일의
option 번호 값은 클라이언트에 돌려줄 정보입니다. 자주 쓰는 것: 1 넷마스크(지정 불가, 자동), 3 기본 게이트웨이, 6 DNS 서버, 12 호스트 이름, 15 DNS 도메인 이름, 28 브로드캐스트 주소, 42 NTP 서버, 44 NetBIOS 이름 서버, 51 임대 시간(leasetimedefault를 덮어씀), 58·59 renew·rebind 시간, 66·67 TFTP 서버·부트 파일. - 60(벤더), 61(클라이언트 ID), 77(사용자 클래스)은 클라이언트가 보내며 서버가 vendor·client·class 컨테이너를 맞추는 데 씁니다. "Can Specify?"가 No인 옵션은 써도 올바른 값으로 덮어써집니다.
- PXE 클라이언트를 지원하면 벤더 컨테이너 하위 옵션 7(부트 서버 탐색 멀티캐스트 주소)을 BINLD에 넘기며,
pxeservertype(dhcp_only 기본, dhcp_pxe_binld, proxy_on_dhcp_server)과pxebootfile로 부트 파일을 정합니다. - 일반 구문:
database db_file,logging_info컨테이너와logitem(SYSERR, OBJERR, PROTOCOL, PROTERR, WARNING, CONFIG, EVENT, PARSEERR, ACTION, ACNTING, STAT, TRACE, RTRACE, START),numLogFiles,logFileSize(KB),logFileName. 시간 단위는 기본 분이며 seconds·minutes·hours·days·weeks·months·years를 붙일 수 있습니다. - 서버 간격:
leaseExpireInterval(기본 900초),reservedTime(기본 -1 끔)·reservedTimeInterval(900초),saveInterval(3600초, 부하가 크면 60~120초),clientpruneintv(3600초),UsedIpAddressExpireInterval,StatisticSnapShot,numprocessors(기본 10). (6.1)supportsubnetselection으로 옵션 118을 지원합니다.
| 항목 | 내용 |
|---|---|
| 버전 | AIX 5.3, AIX 6.1 (6.1에서 옵션 117·118, supportsubnetselection이 더해짐) |
| 원문 | Networks and communication management — 5.3판 177184쪽, 6.1판 223230쪽 |
| 파일 | /etc/dhcpsd.cnf, /usr/sbin/obj_name.dhcpo |
| 관련 RFC | RFC 2132 (DHCP 옵션) |
DHCP 서버 파일의 알려진 옵션
DHCP 서버 파일의 알려진 옵션입니다.
참고: 이 표에서 지정할 수 없다고 표시한(지정 가능 열이 "아니요") 옵션도 구성 파일에 지정할 수는 있지만 올바른 값으로 덮어써집니다. 각 옵션의 더 정확한 정의는 RFC 2132를 봅니다.
| 번호 | 기본 데이터 형 | 지정 가능 | 설명·쓰임 |
|---|---|---|---|
| 0 | 없음 | 아니요 | 필요하면 서버가 옵션 필드를 채웁니다(pad). |
| 1 | 점 10진 주소 | 아니요 | 주소를 가져온 서브넷의 넷마스크 |
| 2 | 32비트 정수 | 예 | 클라이언트 서브넷의 협정 세계시(UTC) 기준 오프셋(초) |
| 3 | 점 10진 주소 하나 이상 | 예 | 기본 게이트웨이 IP 주소 목록 |
| 4 | 점 10진 주소 하나 이상 | 예 | 시간 서버 IP 주소 목록 |
| 5 | 점 10진 주소 하나 이상 | 예 | 이름 서버 IP 주소 목록 |
| 6 | 점 10진 주소 하나 이상 | 예 | DNS IP 주소 목록 |
| 7 | 점 10진 주소 하나 이상 | 예 | 로그 서버 IP 주소 목록 |
| 8 | 점 10진 주소 하나 이상 | 예 | 쿠키 서버 IP 주소 목록 |
| 9 | 점 10진 주소 하나 이상 | 예 | LPR 서버 IP 주소 목록 |
| 10 | 점 10진 주소 하나 이상 | 예 | Impress 서버 IP 주소 목록 |
| 11 | 점 10진 주소 하나 이상 | 예 | Resource Location 서버 IP 주소 목록 |
| 12 | ASCII 문자열 | 예 | 클라이언트가 쓸 호스트 이름 |
| 13 | 16비트 부호 없는 정수 | 예 | 부트 파일 크기 |
| 14 | ASCII 문자열 | 예 | Merit 덤프 파일 경로 |
| 15 | ASCII 문자열 | 예 | 기본 DNS 도메인 이름 |
| 16 | IP 주소 | 예 | Swap 서버 주소 |
| 17 | ASCII 문자열 | 예 | 기본 루트 경로 |
| 18 | ASCII 문자열 | 예 | 클라이언트 확장(extensions) 경로 |
| 19 | Yes, No, True, False, 1, 0 | 예 | IP 전달을 켤지 |
| 20 | Yes, No, True, False, 1, 0 | 예 | 로컬이 아닌 소스 라우팅을 쓸지 |
| 21 | DottedQuad:DottedQuad 형식의 점 10진 주소 쌍 하나 이상 | 예 | IP 주소 필터 정책 |
| 22 | 16비트 부호 없는 정수 | 예 | 데이터그램 조각에 허용할 최대 크기 |
| 23 | 8비트 부호 없는 정수 | 예 | IP TTL |
| 24 | 32비트 부호 없는 정수 | 예 | Path MTU 노화 시간 초과에 쓸 초 |
| 25 | 16비트 부호 없는 정수 하나 이상의 목록 | 예 | Path MTU Plateau 표. Path MTU 탐색 때 쓸 MTU 크기 묶음 |
| 26 | 16비트 부호 없는 정수 | 예 | 받는 인터페이스의 MTU 크기 |
| 27 | Yes, No, True, False, 1, 0 | 예 | 모든 서브넷이 로컬인지 |
| 28 | IP 주소(점 10진) | 예 | 인터페이스의 브로드캐스트 주소 |
| 29 | Yes, No, True, False, 1, 0 | 예 | ICMP 넷마스크 탐색을 쓸지 |
| 30 | Yes, No, True, False, 1, 0 | 예 | 클라이언트가 ICMP 넷마스크 공급자가 될지 |
| 31 | Yes, No, True, False, 1, 0 | 예 | ICMP 라우터 탐색 메시지를 쓸지 |
| 32 | IP 주소(점 10진) | 예 | 라우터 요청(solicitation)에 쓸 주소 |
| 33 | DottedQuad:DottedQuad 형식의 IP 주소 쌍 하나 이상 | 예 | 주소 쌍 하나가 정적 경로 하나 |
| 34 | Yes/No, True/False, 1/0 | 예 | 트레일러 캡슐화를 쓸지 |
| 35 | 32비트 부호 없는 정수 | 예 | ARP 캐시 시간 초과 값 |
| 36 | Yes/No, True/False, 1/0 | 예 | 이더넷 캡슐화를 쓸지 |
| 37 | 8비트 부호 없는 정수 | 예 | TCP TTL |
| 38 | 32비트 부호 없는 정수 | 예 | TCP keep alive 간격 |
| 39 | Yes/No, True/False, 1/0 | 예 | TCP keep alive를 쓸지 |
| 40 | ASCII 문자열 | 예 | NIS 기본 도메인 |
| 41 | 점 10진 주소 하나 이상 | 예 | NIS 서버 IP 주소 |
| 42 | 점 10진 주소 하나 이상 | 예 | NTP 서버 IP 주소 |
| 43 | 16진 숫자 문자열(hex "digits" 또는 0xdigits) | 예, 다만 실제로는 vendor 컨테이너에서만 지정 | vendor 컨테이너용 캡슐화 옵션 컨테이너 |
| 44 | 점 10진 주소 하나 이상 | 예 | NetBIOS 이름 서버 IP 주소 |
| 45 | 점 10진 주소 하나 이상 | 예 | NetBIOS 데이터그램 배포 서버 IP 주소 |
| 46 | 8비트 부호 없는 정수 | 예 | NetBIOS 노드 유형 |
| 47 | 16진 숫자 문자열 | 예 | NetBIOS 범위(scope) |
| 48 | 점 10진 주소 하나 이상 | 예 | X Windows 글꼴 서버 IP 주소 |
| 49 | 점 10진 주소 하나 이상 | 예 | X Windows 디스플레이 관리자 |
| 50 | 없음 | 아니요 | 요청 IP 주소. 클라이언트가 원하는 주소를 나타낼 때 씁니다. |
| 51 | 32비트 부호 없는 정수 | 예 | 돌려준 주소의 임대 시간. 기본으로 DHCP 서버는 leasetimedefault 키워드를 쓰지만, 옵션 51을 직접 지정하면 그것을 덮어씁니다. |
| 52 | 없음 | 아니요 | 옵션 오버로드. 클라이언트가 BOOTP 패킷의 sname과 file 필드에 옵션이 있을 수 있음을 나타낼 때 씁니다. |
| 53 | 없음 | 아니요 | DHCP 서버나 클라이언트가 DHCP 메시지 유형을 나타낼 때 씁니다. |
| 54 | 없음 | 아니요 | DHCP 서버나 클라이언트가 서버의 주소나 메시지가 향하는 서버를 나타낼 때 씁니다. |
| 55 | 없음 | 아니요 | DHCP 클라이언트가 원하는 옵션을 나타낼 때 씁니다. |
| 56 | ASCII 문자열 | 예 | DHCP 서버가 클라이언트에 보내는 문자열. 보통 DHCP 서버와 클라이언트가 문제를 알리는 데 씁니다. |
| 57 | 아니요(원문 표기) | 아니요 | DHCP 클라이언트가 받을 수 있는 최대 DHCP 패킷 크기를 서버에 알릴 때 씁니다. |
| 58 | 32비트 부호 없는 정수 | 예 | 클라이언트가 renew 패킷을 보낼 때까지의 초 |
| 59 | 32비트 부호 없는 정수 | 예 | 클라이언트가 rebind 패킷을 보낼 때까지의 초 |
| 60 | 없음 | 아니요 | DHCP 클라이언트가 벤더 유형을 나타낼 때 씁니다. DHCP 서버는 이 필드로 vendor 컨테이너를 맞춥니다. |
| 61 | 없음 | 아니요 | DHCP 클라이언트가 자기를 고유하게 식별할 때 씁니다. DHCP 서버는 이 필드로 client 컨테이너를 맞춥니다. |
| 64 | ASCII 문자열 | 예 | NIS+ 도메인 |
| 65 | 점 10진 주소 하나 이상 | 예 | NIS+ 서버 IP 주소 |
| 66 | ASCII 문자열 | 예 | TFTP 서버 이름. 호스트 이름이며, 클라이언트가 이 옵션을 이해하면 siaddr 필드 대신 씁니다. |
| 67 | ASCII 문자열 | 예 | 부트 파일 이름. 패킷의 filename 필드에 파일을 넣는 bootfile 키워드 대신 쓸 수 있습니다. |
| 68 | 점 10진 주소 하나 이상 또는 NONE | 예 | 홈 에이전트 주소 |
| 69 | 점 10진 주소 하나 이상 | 예 | 기본 SMTP 서버 |
| 70 | 점 10진 주소 하나 이상 | 예 | 기본 POP3 서버 |
| 71 | 점 10진 주소 하나 이상 | 예 | 기본 NNTP 서버 |
| 72 | 점 10진 주소 하나 이상 | 예 | 기본 WWW 서버 |
| 73 | 점 10진 주소 하나 이상 | 예 | 기본 Finger 서버 |
| 74 | 점 10진 주소 하나 이상 | 예 | 기본 IRC 서버 |
| 75 | 점 10진 주소 하나 이상 | 예 | 기본 StreetTalk 서버 |
| 76 | 점 10진 주소 하나 이상 | 예 | 기본 StreetTalk 디렉터리 지원 서버 |
| 77 | ASCII 문자열 | 예 | 사용자 사이트 클래스 식별자. DHCP 서버는 이 필드로 class 컨테이너를 맞춥니다. |
| 78 | 필수 바이트, 점 10진 주소 하나 이상 | 예 | SLP Directory Agent 옵션. Directory Agent의 IP 주소 목록 |
| 79 | 필수 바이트와 ASCII 문자열 | 예 | ASCII 문자열은 SLP Agent가 쓰도록 구성된 범위를 나타내는 쉼표 구분 범위 목록입니다. |
| 81 | ASCII 문자열과 다른 항목 | 아니요 | DHCP 클라이언트가 DDNS에 대해 DHCP 서버가 쓸 정책을 정할 때 씁니다. |
| 85 | 점 10진 주소 하나 이상 | 예 | NDS 서버 옵션. 클라이언트가 DNS 데이터베이스에 접근하려고 연락할 NDS 서버를 하나 이상 선호 순서로 지정합니다. |
| 86 | ASCII 문자열 | 예 | NDS 트리 이름 옵션. 클라이언트가 연락할 NDS 트리의 이름 |
| 87 | ASCII 문자열 | 예 | NDS 컨텍스트 옵션. 클라이언트가 쓸 처음 NDS 컨텍스트 |
| 93 | 없음 | 아니요 | DHCP 클라이언트가 클라이언트 시스템 아키텍처를 정할 때 씁니다. |
| 94 | 없음 | 아니요 | DHCP 클라이언트가 클라이언트 네트워크 인터페이스 식별자를 정할 때 씁니다. |
| 117 | 16비트 부호 없는 정수 하나 이상 | 예 | (6.1) 이름 서비스 검색 옵션. 이름 서비스의 선호 순서를 옵션 코드 정수로 줍니다. 예: Domain Name Server 옵션 6, NIS 옵션 41, NIS+ 옵션 65 |
| 118 | 점 10진 주소 하나 | 아니요 | (6.1) 서브넷 선택 옵션. 클라이언트가 DHCP 서버에 지정한 서브넷에서 IP 주소를 할당해 달라고 보내는 옵션입니다. |
| 255 | 없음 | 아니요 | DHCP 서버와 클라이언트가 옵션 목록의 끝을 나타낼 때 씁니다. |
영어 원문
DHCP server file known options
The known options of the DHCP server file are identified here.
Note: The options that are shown in this table as not allowed to be specified (No in the Can Specify? column) can be specified in the configuration file, but are overwritten by the correct value. For a better definition of each option, see RFC 2132.
| Option Number | Default Data Type | Can Specify? | Description/Use |
|---|---|---|---|
| 0 | None | No | The server pads the option field, if necessary. |
| 1 | Dotted quad | No | The net mask of the subnet from which the address was drawn. |
| 2 | 32-bit integer | Yes | Specifies the offset of the client subnet, in seconds from Coordinated Universal Time (UTC). |
| 3 | One or more dotted quads | Yes | A list of the default gateways' IP addresses. |
| 4 | One or more dotted quads | Yes | A list of time server IP addresses. |
| 5 | One or more dotted quads | Yes | A list of name server IP addresses. |
| 6 | One or more dotted quads | Yes | A list of DNS IP addresses. |
| 7 | One or more dotted quads | Yes | A list of log server IP addresses. |
| 8 | One or more dotted quads | Yes | A list of cookie server IP addresses. |
| 9 | One or more dotted quads | Yes | A list of LPR server IP addresses. |
| 10 | One or more dotted quads | Yes | A list of Impress server IP addresses. |
| 11 | One or more dotted quads | Yes | A list of Resource Location server IP addresses. |
| 12 | An ASCII string | Yes | A host name for the client to use. |
| 13 | 16-bit unsigned integer | Yes | The size of the bootfile. |
| 14 | An ASCII string | Yes | The path for Merit Dump file. |
| 15 | An ASCII string | Yes | The default DNS domain name. |
| 16 | An IP address | Yes | The address of the Swap server. |
| 17 | An ASCII string | Yes | The default root path. |
| 18 | An ASCII string | Yes | The path to extensions for the client. |
| 19 | Yes, No, True, False, 1, 0 | Yes | Specify whether IP Forwarding should be turned on. |
| 20 | Yes, No, True, False, 1, 0 | Yes | Specify whether non-local source routing should be used. |
| 21 | One or more pairs of dotted quads, in the form DottedQuad:DottedQuad | Yes | The filter policies for IP addresses. |
| 22 | 16-bit unsigned integer | Yes | The maximum size to allow for datagram fragments. |
| 23 | 8-bit unsigned integer | Yes | The IP time-to-live (TTL). |
| 24 | 32-bit unsigned integer | Yes | The number of seconds to use in the Path MTU aging timeout. |
| 25 | List of one or more 16-bit unsigned integers | Yes | The path MTU Plateau table. Specifies a set of values that represent the MTU sizes to use when using Path MTU discovery. |
| 26 | 16-bit unsigned integer | Yes | Specifies MTU size for the receiving interface. |
| 27 | Yes, No, True, False, 1, 0 | Yes | Specifies whether all subnets are local. |
| 28 | An IP address (dotted quad) | Yes | Specifies broadcast address for the interface. |
| 29 | Yes, No, True, False, 1, 0 | Yes | Specifies whether ICMP netmask discovery should be used. |
| 30 | Yes, No, True, False, 1, 0 | Yes | Specifies whether client should become an ICMP netmask supplier. |
| 31 | Yes, No, True, False, 1, 0 | Yes | Specifies whether ICMP Router Discovery messages should be used. |
| 32 | IP address (dotted quad) | Yes | Specifies address to use for router solicitation. |
| 33 | One or more IP address pairs, in the form DottedQuad:DottedQuad | Yes | Each address pair represents a static route. |
| 34 | Yes/No, True/False, 1/0 | Yes | Specifies whether trailer encapsulation should be used. |
| 35 | 32-bit unsigned integer | Yes | ARP cache timeout value. |
| 36 | Yes/No, True/False, 1/0 | Yes | Specifies whether Ethernet encapsulation should be used. |
| 37 | 8-bit unsigned integer | Yes | The TCP time-to-live (TTL). |
| 38 | 32-bit unsigned integer | Yes | The TCP keep alive interval. |
| 39 | Yes/No, True/False, 1/0 | Yes | Specifies whether TCP keep alive should be used. |
| 40 | An ASCII string | Yes | The NIS default domain. |
| 41 | One or more dotted quads | Yes | Specifies the IP addresses of the NIS servers. |
| 42 | One or more dotted quads | Yes | Specifies the IP addresses of the NTP servers. |
| 43 | hex string of digits, in the form of hex "digits", hex "digits", or 0xdigits | Yes, but really only specified with vendor container | Encapsulated option container for the vendor container. |
44 One or more dotted quads Yes Specifies NetBIOS name server IP addresses. 45 One or more dotted quads Yes Specifies NetBIOS datagram distribution server IP addresses.
| Option Number | Default Data Type | Can Specify? | Description/Use |
|---|---|---|---|
| 46 | 8-bit unsigned integer | Yes | Specifies NetBIOS Node Type. |
| 47 | hex string of digits, in form of hex "digits", hex "digits", or 0xdigits | Yes | NetBIOS Scope. |
| 48 | One or more dotted quads | Yes | Specifies X Windows font server IP addresses. |
| 49 | One or more dotted quads | Yes | Specifies X Windows Display Manager. |
| 50 | None | No | Requested IP Address, used by client to indicate the address it wants. |
| 51 | 32-bit unsigned integer | Yes | Lease time for the returned address. By default, the DHCP server uses the leasetimedefault keyword, but direct specification of option 51 overrides it. |
| 52 | None | No | Option overload. Client uses this to indicate the sname and file fields of the BOOTP packet may have options. |
| 53 | None | No | DHCP server or client uses this option to indicate the type of DHCP message. |
| 54 | None | No | DHCP server or client uses this option to indicate the server's address or the server to which the message is directed. |
| 55 | None | No | DHCP client uses this to indicate desired options. |
| 56 | An ASCII string | Yes | A string the DHCP server sends to the client. In general, this can be used by the DHCP server and client to indicate problems. |
| 57 | No | No | DHCP client uses this option to tell the DHCP server the maximum DHCP packet size the client can receive. |
| 58 | 32-bit unsigned integer | Yes | Specifies the number of seconds until the client should send a renew packet. |
| 59 | 32-bit unsigned integer | Yes | Specifies the number of seconds until the client should send a rebind packet. |
| 60 | None | No | DHCP client uses this option to indicate its vendor type. The DHCP server uses this field to match vendor containers. |
| 61 | None | No | DHCP client uses this to uniquely identify itself. The DHCP server uses this field to match client containers. |
| 64 | An ASCII string | Yes | Specifies the NIS+ domain. |
| 65 | One or more dotted quads | Yes | IP Addresses of NIS+ servers. |
| 66 | An ASCII string | Yes | Specifies the TFTP server name. This is a hostname and is used instead of the siaddr field if the client understands this option. |
| 67 | An ASCII string | Yes | Specifies the bootfile name. This can be used instead of the bootfile keyword, which places the file in the filename field of the packet. |
| 68 | One or more dotted quads, or NONE | Yes | Specifies addresses of home agents. |
| 69 | One or more dotted quads | Yes | Specifies default SMTP servers to use. |
| 70 | One or more dotted quads | Yes | Specifies default POP3 servers to use. |
| 71 | One or more dotted quads | Yes | Specifies default NNTP servers to use. |
| 72 | One or more dotted quads | Yes | Specifies default WWW servers to use. |
| 73 | One or more dotted quads | Yes | Specifies default Finger servers to use. |
| 74 | One or more dotted quads | Yes | Specifies default IRC servers to use. |
| 75 | One or more dotted quads | Yes | Specifies default Street Talk servers to use. |
| 76 | One or more dotted quads | Yes | Specifies default Street Talk directory assistance servers to use. |
| 77 | An ASCII string | Yes | The user site class identifier. The DHCP server uses this field to match class containers. |
| 78 | Mandatory Byte, one or more dotted quads | Yes | The SLP directory Agent Option specifies a list of IP addresses for Directory Agents |
| 79 | Mandatory Byte, and ASCII string | Yes | The ASCII string is a scope list, which is a comma delimited list, that indicates the scopes that an SLP Agent is configured to use |
| 81 | An ASCII string plus other items | No | The DHCP client uses this option to define the policy the DHCP server should use with respect to DDNS. |
| 85 | One or more dotted quads | Yes | NDS server option specifies one or more NDS servers for the client to contact for access to the DNS database. Servers should be listed in order of preference. |
| Option Number | Default Data Type | Can Specify? | Description/Use |
|---|---|---|---|
| 86 | An ASCII string | Yes | NDS tree name option specifies the name of the NDS tree the client will be contacting. |
| 87 | An ASCII string | Yes | NDS context option specifies the initial NDS context the client should use. |
| 93 | None | No | The DHCP client uses this option to define the client system architecture. |
| 94 | None | No | The DHCP client uses this option to define the client network interface identifier. |
| 117 | One or more 16-bit unsigned integers | Yes | Name Service Search Option gives the preferred order of integer option code for name services. For example: Name Services value Domain Name Server Option 6 NIS Option 41 NIS+ Option 65 |
| 118 | One dotted quads | No | Subnet Selection Option is an option sent by the client asking the dhcp server to allocate the IP address from the specified subnet. |
| 255 | None | No | DHCP server and client use this option to indicate the end of an option list. |
PXE 벤더 컨테이너 하위 옵션
PXE(preboot execution environment) 클라이언트를 지원할 때 DHCP 서버는 다음 옵션을 BINLD 서버에 넘기며, BINLD는 이 옵션으로 자기를 구성합니다.
| 번호 | 기본 데이터 형 | 지정 가능 | 설명 |
|---|---|---|---|
| 7 | 점 10진 주소 하나 | 예 | 멀티캐스트 IP 주소. 부트 서버 탐색 멀티캐스트 IP 주소입니다. |
이 옵션을 쓰는 예입니다.
pxeservertype proxy_on_dhcp_server
Vendor pxeserver
{
option 7 9.3.4.68
}
위 예에서 DHCP 서버는 프록시 서버가 같은 기계에서 실행 중이지만 클라이언트 요청을 포트 4011에서 기다린다고 클라이언트에 알립니다. BINLD 서버는 옵션 60을 "PXEServer"로 설정해 포트 67에 INFORM/REQUEST 메시지를 브로드캐스트하므로 여기서는 vendor 컨테이너가 필요합니다. 이에 응답해 DHCP 서버는 BINLD가 PXEClient의 요청을 기다려야 할 멀티캐스트 IP 주소를 보냅니다.
다음 예에서 dhcpsd 서버는 PXEClient에 부트 파일 이름을 주거나, 하위 옵션을 보내 PXEClient를 BINLD 서버로 안내합니다. pxebootfile 키워드는 클라이언트 아키텍처와 클라이언트 시스템의 주·부 버전별 부트 파일 목록을 만드는 데 씁니다.
pxeservertype dhcp_pxe_binld
subnet default
{
vendor pxe
{
option 6 2 # Disable Multicast
option 8 5 4 10.10.10.1 12.1.1.15 12.5.5.5 12.6.6.6\
2 2 10.1.1.10 9.3.4.5 1 1 10.5.5.9\
1 1 9.3.149.15\
4 0
option 9 5 "WorkSpace On Demand" 2 "Intel"\
1 "Microsoft Windows NT" 4 "NEC ESMPRO"
option 10 2 "Press F8 to View Menu"
}
vendor pxeserver
{
option 7 239.0.0.239
}
}
subnet 9.3.149.0 255.255.255.0
{
option 3 9.3.149.1
option 6 9.3.149.15
vendor pxe
{
option 6 4 # bootfile is present in the offer packet
pxebootfile 1 2 1 os2.one
pxebootfile 2 2 1 aix.one
}
}
PXE 컨테이너의 각 option 줄은 서버가 클라이언트에게 무엇을 하라고 알려 줄 때 씁니다. 지금 지원하고 알려진 PXE 하위 옵션은 PXE vendor container suboptions(원문의 PXE 절, 이 연재에서는 다루지 않음)에 설명되어 있습니다.
영어 원문
Preboot execution environment vendor container suboption
When supporting a preboot execution environment (PXE) client, the DHCP server passes the following option to the BINLD server, which is used by BINLD to configure itself.
| Opt Num | Default Data Type | Can Specify? | Description |
|---|---|---|---|
| 7 | one dotted quad | Yes | Multicast IP address. Boot server discovery multicast IP address. |
The following example shows how this option can be used:
pxeservertype proxy_on_dhcp_server
Vendor pxeserver
{
option 7 9.3.4.68
}
In the above example, the DHCP server informs the client that the proxy server is running on the same machine but is listening on port 4011 for client requests. The vendor container is required here because the BINLD server broadcasts an INFORM/REQUEST message on port 67 with option 60 set to "PXEServer." In response, the DHCP server sends the Multicast IP address on which the BINLD has to listen for PXEClient's request.
In the following example, the dhcpsd server either gives the bootfile name to the PXEClient or it directs the PXEClient to the BINLD server by sending suboptions. The pxeboofile keyword is used to create a list of boot files for a given client architecture and major and minor versions of the client system.
(30줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
Each option line in PXE container is used by the server to tell the client what to do. PXE vendor container suboptions describes the currently supported and known PXE suboptions.
일반 서버 동작을 위한 DHCP 서버 파일 구문
일반 서버 동작을 위한 DHCP 파일 구문과 필드마다의 올바른 값을 정의합니다.
참고: 다음 표의 시간 단위(time_units)는 선택이며 실제 시간을 바꾸는 수식자입니다. 기본 시간 단위는 분입니다. 올바른 값은 seconds(1), minutes(60), hours(3600), days(86400), weeks(604800), months(2392000), years(31536000)입니다. 괄호 안의 수는 지정한 값 n에 곱해 초로 나타내는 배수입니다.
| 키워드 | 형식 | 하위 컨테이너 | 기본값 | 뜻 |
|---|---|---|---|---|
| database | database db_type |
예 | 없음 | 주소 풀, 옵션, 클라이언트 접근 문의 정의를 담는 주 컨테이너. db_type은 파일의 이 부분을 처리하려고 적재할 모듈 이름이며, 지금 쓸 수 있는 값은 db_file뿐입니다. |
logging_info |
logging_info |
예 | 없음 | 로깅 매개변수를 정의하는 주 로깅 컨테이너 |
| logitem | logitem NONE, SYSERR, OBJERR, PROTOCOL, PROTERR, WARN, WARNING, CONFIG, EVENT, PARSEERR, ACTION, ACNTING, STAT, TRACE, RTRACE, START |
아니요 | 기본으로 모두 켜져 있지 않음 | 로깅 수준을 켭니다. 여러 줄을 쓸 수 있습니다. |
| numLogFiles | numLogFiles n |
아니요 | 0 | 만들 로그 파일 수. 첫 파일이 차면 로그를 돌립니다. n은 만들 파일 수입니다. |
| logFileSize | logFileSize n |
아니요 | 0 | 각 로그 파일의 크기(1024바이트 단위) |
| logFileName | logFileName path |
아니요 | 없음 | 첫 로그 파일의 경로. 원래 로그 파일 이름은 filename이나 filename.extension입니다. 파일을 돌릴 때는 기본 파일 이름으로 시작해 번호를 덧붙이거나 확장자를 번호로 바꿔 이름을 바꿉니다. 예를 들어 원래 이름이 file이면 돌린 파일은 file01이 되고, file.log면 file.01이 됩니다. |
| CharFlag | charflag yes, true, false, no |
아니요 | true | 이 운영 체제의 DHCP 서버에는 해당하지 않으며, OS/2 DHCP 서버가 디버그 창을 만드는 데 씁니다. |
| StatisticSnapShot | StatisticSnapShot n |
아니요 | -1, 하지 않음 | 통계를 로그 파일에 쓰는 빈도(초) |
| UsedIpAddressExpireInterval | UsedIpAddressExpireInterval n time_units |
아니요 | -1, 하지 않음 | BAD 상태의 주소를 되찾아 다시 유효성을 시험하는 빈도 |
| leaseExpireInterval | leaseExpireInterval n time_units |
아니요 | 900초 | BOUND 상태의 주소가 만료되었는지 확인하는 빈도. 만료되었으면 상태를 EXPIRED로 옮깁니다. |
| reservedTime | reservedTime n time_units |
아니요 | -1, 하지 않음 | 주소가 FREE 상태로 되찾아지기 전에 RESERVED 상태로 머무는 시간 |
| reservedTimeInterval | reservedTimeInterval n time_units |
아니요 | 900초 | RESERVE 상태의 주소를 FREE 상태로 되찾아야 하는지 확인하는 빈도 |
| saveInterval | saveInterval n time_units |
아니요 | 3600초 | DHCP 서버가 열린 데이터베이스를 강제로 저장하는 빈도. 부하가 큰 서버는 60초나 120초로 합니다. |
| clientpruneintv | clientpruneintv n time_units |
아니요 | 3600초 | DHCP 서버가 어떤 주소와도 연결되지 않은(UNKNOWN 상태) 클라이언트를 데이터베이스에서 지우게 하는 빈도. DHCP 서버의 메모리 사용을 줄입니다. |
| numprocessors | numprocessors n |
아니요 | 10 | 만들 패킷 처리기 수. 최소 1입니다. |
| userObject | userObject obj_name |
예 | 없음 | 서버가 사용자 정의 공유 객체를 적재하고, DHCP 클라이언트와 주고받을 때마다 이 객체 안의 루틴을 부르게 합니다. 적재할 객체는 /usr/sbin 디렉터리의 obj_name.dhcpo입니다. 자세한 내용은 DHCP Server User-Defined Extension API를 봅니다. |
| pxeservertype | pxeservertype server_type |
아니요 | dhcp_only |
dhcpd 서버의 종류. dhcp_pxe_binld: DHCP가 dhcpsd, pxed, binld 기능을 모두 함. proxy_on_dhcp_server: DHCP가 PXE 클라이언트를 같은 기계의 프록시 서버 포트로 안내함. 기본값 dhcp_only는 기본 모드에서 dhcpsd가 PXE 클라이언트를 지원하지 않는다는 뜻입니다. |
| supportsubnetselection | supportsubnetselection global, subnetlevel, no |
아니요 | 없음 | (6.1) 클라이언트의 DISCOVER나 REQUEST 패킷에 있는 옵션 118(서브넷 선택 옵션)을 DHCP 서버가 지원할지. global: 구성 파일의 모든 서브넷이 옵션 118을 지원함. subnetlevel: supportoption118 키워드로 지원하도록 구성한 서브넷만 지원함. no: 옵션 118을 지원하지 않음 |
영어 원문
DHCP server file syntax for general server operation
The DHCP file syntax for general server operation and the valid values for each field are defined here.
Note: Time Units (time_units) shown in the following table are optional and represent a modifier to the actual time. The default time unit is minutes. Valid values are seconds (1), minutes (60), hours (3600), days (86400), weeks (604800), months (2392000), and years (31536000). The number shown in parentheses is a multiplier applied to the specified value n to express the value in seconds.
| Keyword | Form | Subcontainers |
|---|---|---|
| Default Value Meaning | ||
| database | database db_type |
Yes None The primary container that holds the definitions for the address pools, options, and client access statements. db_type is the name of a module that is loaded to process this part of the file. The only value currently available is db_file. |
logging_info |
logging_info |
Yes None The primary logging container that defines the logging parameters. |
| logitem | logitem NONE | No All default to not enabled. Enables the logging level. Multiple lines are allowed. |
| logitem | logitem SYSERR | No All default to not enabled. Enables the logging level. Multiple lines are allowed. |
| logitem | logitem OBJERR | No All default to not enabled. Enables the logging level. Multiple lines are allowed. |
| logitem | logitem PROTOCOL | No All default to not enabled. Enables the logging level. Multiple lines are allowed. Default Value Meaning |
| logitem | logitem PROTERR | No All default to not enabled. Enables the logging level. Multiple lines are allowed. |
| logitem | logitem WARN | No All default to not enabled. Enables the logging level. Multiple lines are allowed. |
| logitem | logitem WARNING | No All default to not enabled. Enables the logging level. Multiple lines are allowed. |
| logitem | logitem CONFIG | No All default to not enabled. Enables the logging level. Multiple lines are allowed. |
| logitem | logitem EVENT | No All default to not enabled. Enables the logging level. Multiple lines are allowed. |
| logitem | logitem PARSEERR | No All default to not enabled. Enables the logging level. Multiple lines are allowed. |
| logitem | logitem ACTION | No All default to not enabled. Enables the logging level. Multiple lines are allowed. |
| logitem | logitem ACNTING | No All default to not enabled. Enables the logging level. Multiple lines are allowed. |
| logitem | logitem STAT | No All default to not enabled. Enables the logging level. Multiple lines are allowed. |
| logitem | logitem TRACE | No All default to not enabled. Enables the logging level. Multiple lines are allowed. |
| logitem | logitem RTRACE | No All default to not enabled. Enables the logging level. Multiple lines are allowed. |
| logitem | logitem START | No All default to not enabled. Enables the logging level. Multiple lines are allowed. |
| numLogFiles | numLogFiles n | No 0 Specifies the number of log files to create. The log rotates when the first one fills. n is the number of files to create. |
| logFileSize | logFileSize n | No 0 Specifies the size of each log file in 1024-byte units. |
| logFileName | logFileName path | No None Specifies the path to the first log file. The original log file is named filename or filename.extension. When a file is rotated, it is renamed beginning with the base filename, then either appending a number or replacing the extension with a number. For example, if the original file name is file, the rotated file name becomes file01. If the original file name is file.log, it becomes file.01. Default Value Meaning |
| CharFlag | charflag yes | No true Not applicable to this operating system's DHCP server, but the OS/2 DHCP server uses it to produce debug windows. |
| CharFlag | charflag true | No true Not applicable to this operating system's DHCP server, but the OS/2 DHCP server uses it to produce debug windows. |
| CharFlag | charflag false | No true Not applicable to this operating system's DHCP server, but the OS/2 DHCP server uses it to produce debug windows. |
| CharFlag | charflag no | No true Not applicable to this operating system's DHCP server, but the OS/2 DHCP server uses it to produce debug windows. |
| StatisticSnapShot | StatisticSnapShot n | No -1, never Specifies how often statistics are written to the log file in seconds. |
| UsedIpAddressExpireInterval | UsedIpAddressExpireInterval n time_units |
No -1, never Specifies how often addresses placed in the BAD state are recouped and retested for validity. |
| leaseExpireInterval | leaseExpireInterval n time_units |
No 900 seconds Specifies how often addresses in the BOUND state are checked to see if they have expired. If the address has expired, the state is moved to EXPIRED. |
| reservedTime | reservedTime n time_units |
No -1, never Specifies how long addresses should sit in RESERVED state before being recouped into the FREE state. |
| reservedTimeInterval | reservedTimeInterval n time_units |
No 900 seconds Specifies how often addresses in the RESERVE state are checked to see if they should be recouped into the FREE state. |
| saveInterval | saveInterval n time_units |
No 3600 seconds Specifies how often the DHCP server should force a save of the open databases. For heavily loaded servers, this should be 60 or 120 seconds. |
| clientpruneintv | clientpruneintv n time_units |
No 3600 seconds Specifies how often the DHCP server has the databases remove clients are not associated with any address (in the UNKNOWN state). This reduces the memory use of the DHCP server. |
| numprocessors | numprocessors n | No 10 Specifies the number of packet processors to create. Minimum of one. Default Value Meaning |
| userObject | userObject obj_name |
Yes None Indicates that the server should load a user-defined shared object and call routines within this object through each interaction with DHCP clients. The object to be loaded is located in the /usr/sbin directory by the name obj_name.dhcpo. See the DHCP Server User-Defined Extension API for more information. |
| pxeservertype | pxeservertype server_type |
No dhcp_only Indicates the type of dhcpd server that it is. server_type can be one of the following: dhcp_pxe_binld DHCP performs dhcpsd, pxed, and bindl functions. proxy_on_dhcp_server DHCP refers the PXE client to the proxy server port on the same machine. The default is dhcp_only, meaning the dhcpsd does not support PXE clients in default mode. |
| supportsubnetselection | supportsubnetselection global supportsubnetselection subnetlevel supportsubnetselection no | No None Indicates whether the dhcp server will support the option 118 (subnet selection option) in the clients DISCOVER or REQUEST packet. global: all subnets in the configuration file will support option 118. subnetlevel: subnets that have been configured to support this option by keyword supportoption118 will support this option. no: does not support option 118. |