[AIX 네트워크 관리 18] TCP/IP (12) DHCP 계획과 구성, DDNS, 이전 버전 호환

핵심 정리

  • DHCP 서버가 없는 링크에는 BOOTP 릴레이 에이전트가 필요합니다. 라우터 하나로 나뉜 큰 네트워크 두 개라면 링크마다 서버를 두는 편이 낫고, 임대 기간이 이틀보다 짧으면 주말 뒤 월요일 아침에 DHCP 트래픽이 몰립니다. 클라이언트 dhcpcd는 dhcpcd.ini를 읽으며, 인터페이스를 any로 두면 처음 동작하는 인터페이스를 씁니다.
  • 서버는 /etc/dhcpsd.cnf를 읽고 /etc/rc.tcpip에서 시작합니다. 설정은 database db_file { subnet 9.3.149.0 255.255.255.0 { option … } }처럼 컨테이너(subnet, class=옵션 77, vendor=옵션 60, client=옵션 61·chaddr)와 옵션, 수정자로 이루어집니다.
  • 클라이언트가 여러 컨테이너에 맞으면 client → class → vendor → subnet 순서와 깊이로 목록을 만들고, 주소는 가장 구체적인 쪽부터, 옵션은 바깥에서 안으로 덮어쓰며(deny로 뺄 수 있음) 고릅니다. 범위는 상위 범위의 부분 집합이어야 하고 겹치면 안 됩니다.
  • 주요 수정자: leasetimedefault, supportBootp, supportUnlistedclients(none·dhcp·bootp·both). 로깅은 logging_info 컨테이너를 맨 앞에 둡니다. 서버 옵션: reservedTime, reservedTimeInterval, SaveInterval, numprocessors, pingTime. 성능은 numprocessors를 pingTime 동안 들어올 DISCOVER 수보다 크게(예: 초당 10개면 numprocessors 20, pingTime 80) 잡습니다.
  • DDNS: updatednsA/updatednsP(updatedns는 사용 중단)와 releasednsA/releasednsP/removedns로 dhcpaction·dhcpremove를 부르거나, NIM이 필요 없으면 nsupdate_daemon으로 소켓 전송·재시도를 씁니다. 호스트 이름 정책은 hostnamepolicy, proxyarec, appenddomain입니다.
항목 내용
버전 AIX 5.3, AIX 6.1 (내용이 같음)
원문 Networks and communication management — 5.3판 169177쪽, 6.1판 215223쪽
파일 /etc/dhcpsd.cnf, dhcpcd.ini, /etc/rc.tcpip, dhcps.ar, dhcps.cr
관련 명령어 dhcpsd, dhcpcd, dadmin, traceson, dhcpaction, dhcpremove, nsupdate

DHCP 계획

이 프로토콜을 쓰려면 네트워크 관리자가 DHCP 서버를 설정하고, DHCP 서버가 없는 링크에 BOOTP 릴레이 에이전트를 구성해야 합니다. 미리 계획하면 네트워크의 DHCP 부하를 줄일 수 있습니다.

예를 들어 서버 하나가 모든 클라이언트를 처리하도록 구성할 수 있지만, 그러면 모든 패킷이 그 서버를 거쳐야 합니다. 큰 네트워크 두 개 사이에 라우터가 하나 있다면 링크마다 하나씩, 서버를 두 대 두는 편이 현명합니다.

또 하나 생각할 점은 DHCP가 일정한 트래픽 패턴을 만든다는 것입니다. 예를 들어 기본 임대 시간을 이틀보다 짧게 잡고 기계를 주말 동안 꺼 두면, 월요일 아침에 DHCP 트래픽이 몰립니다. DHCP 트래픽이 네트워크에 큰 부담을 주지는 않지만, 네트워크의 어디에 DHCP 서버를 몇 대 둘지 정할 때는 고려해야 합니다.

클라이언트가 네트워크에 붙도록 DHCP를 켜고 나면 클라이언트는 아무것도 입력할 필요가 없습니다. DHCP 클라이언트 dhcpcd는 실행에 필요한 로깅과 다른 매개변수 정보가 든 dhcpcd.ini 파일을 읽습니다. 설치 뒤에 TCP/IP 구성 방법으로 최소 구성과 DHCP 가운데 무엇을 쓸지 정합니다. DHCP를 고르면 인터페이스를 고르고 선택 매개변수를 지정합니다. 인터페이스로 키워드 any를 고르면 dhcpcd가 처음 동작하는 인터페이스를 찾아 씁니다. 이 방법이 클라이언트 쪽 입력을 가장 줄입니다.

영어 원문

DHCP planning

To use this protocol, the network administrator needs to set up a DHCP server and configure BOOTP relay agents on links that do not have a DHCP server. Advance planning can reduce DHCP load on the network.

For example, one server can be configured to handle all your clients, but all packets must be passed through it. If you have a single router between two large networks, it is wiser to place two servers in your network, one on each link.

Another aspect to consider is that DHCP implies a pattern of traffic. For example, if you set your default lease time to fewer than two days and your machines are powered off for the weekend, Monday morning becomes a period of high DHCP traffic. Although DHCP traffic does not cause huge overhead for the network, it needs to be considered when deciding where to place DHCP servers on a network and how many to use.

After enabling DHCP to get the client on the network, a client has no requirement to enter anything. The DHCP client, dhcpcd, reads the dhcpcd.ini file, which contains information on logging and other parameters needed to start running. After installation, decide which method to use for TCP/IP configuration: minimum configuration or DHCP. If DHCP is selected, choose an interface and specify some optional parameters. To choose the interface, select the keyword any, which tells dhcpcd to find the first interface that works and use it. This method minimizes the amount of input on the client side.

DHCP 구성

기본으로 DHCP 서버는 옵션과 주소의 초기 데이터베이스를 지정하는 /etc/dhcpsd.cnf 파일을 읽어 구성됩니다.

서버는 /etc/rc.tcpip 파일에서 시작합니다. Web-based System Manager, SMIT, SRC 명령으로도 시작할 수 있습니다. DHCP 클라이언트는 Web-based System Manager나 SMIT를 실행하거나 평면 ASCII 파일을 편집해 구성할 수 있습니다.

DHCP 서버 구성은 보통 네트워크에서 DHCP를 쓰는 데 가장 어려운 부분입니다. 먼저 어느 네트워크에 DHCP 클라이언트를 둘지 정합니다. 네트워크의 서브넷마다 DHCP 서버가 데이터베이스에 더해야 할 주소 풀이 됩니다. 예:

text
database db_file
{
    subnet 9.3.149.0 255.255.255.0
      {  option 3 9.3.149.1 # The default gateway clients on this network should use
         option 6 9.3.149.2 # The nameserver clients on this network should use
      }
    ... options or other containers added later
}

위 예는 서브넷 마스크가 255.255.255.0인 서브넷 9.3.149.0을 보여 줍니다. 이 서브넷의 모든 주소, 곧 9.3.149.1부터 9.3.149.254까지가 풀에 들어갑니다. 줄 끝에 범위를 지정하거나, 서브넷 컨테이너 안에 range나 exclude 문을 넣을 수도 있습니다. 흔한 구성 방법과 정의는 DHCP 서버 파일의 알려진 옵션(다음 편)을 봅니다.

db_file이 든 database 절은 구성 파일의 이 부분을 처리할 데이터베이스 방법을 나타냅니다. 주석은 #(파운드 기호)로 시작합니다. 처음 #부터 줄 끝까지의 텍스트는 DHCP 서버가 무시합니다. 각 option 줄은 서버가 클라이언트에게 무엇을 하라고 알려 줄 때 씁니다. DHCP 서버 파일의 알려진 옵션은 지금 지원하고 알려진 옵션을 설명합니다. 서버가 모르는 옵션을 지정하는 방법은 일반 서버 동작을 위한 DHCP 서버 파일 구문을 봅니다.

서버가 옵션을 해석하는 법을 모르면 기본 방법으로 클라이언트에 옵션을 보냅니다. 덕분에 DHCP 서버는 RFC에 정의되지 않았지만 특정 클라이언트나 클라이언트 구성이 쓸 수 있는 사이트 전용 옵션도 보낼 수 있습니다.

DHCP 구성 파일

구성 파일에는 주소 부분과 옵션 정의 부분이 있습니다. 이 부분들은 컨테이너로 옵션, 수정자, 경우에 따라 다른 컨테이너를 담습니다.

컨테이너(기본적으로 옵션을 묶는 방법)는 식별자로 클라이언트를 묶음으로 나눕니다. 컨테이너 종류는 subnet, class, vendor, client입니다. 지금은 사용자가 정의하는 일반 컨테이너가 없습니다. 식별자는 클라이언트를 고유하게 정의하므로, 예를 들어 클라이언트가 서브넷 사이를 옮겨 다녀도 추적할 수 있습니다. 둘 이상의 컨테이너 종류로 클라이언트 접근을 정의할 수 있습니다.

옵션은 기본 게이트웨이나 DNS 주소처럼 클라이언트에 돌려주는 식별자입니다.

수정자(modifier)는 기본 임대 시간처럼 컨테이너의 어떤 측면을 바꾸는 한 줄짜리 문입니다.

DHCP 컨테이너

DHCP 서버가 요청을 받으면 패킷을 해석하고, 식별 키로 어떤 컨테이너, 옵션, 주소를 꺼낼지 정합니다.

DHCP 구성의 예는 서브넷 컨테이너를 보여 줍니다. 그 식별 키는 네트워크에서 클라이언트의 위치입니다. 클라이언트가 그 네트워크에서 왔다면 그 컨테이너에 들어갑니다.

컨테이너 종류마다 클라이언트를 식별하는 옵션이 다릅니다.

  • subnet 컨테이너는 giaddr 필드나 받은 인터페이스의 주소로 클라이언트가 어느 서브넷에서 왔는지 판단합니다.
  • class 컨테이너는 옵션 77(User Site Class Identifier)의 값을 씁니다.
  • vendor는 옵션 60(Vendor Class Identifier)의 값을 씁니다.
  • client 컨테이너는 DHCP 클라이언트에는 옵션 61(Client Identifier)을, BOOTP 클라이언트에는 BOOTP 패킷의 chaddr 필드를 씁니다.

서브넷을 빼고는 컨테이너마다 맞는 값을 정규식 일치를 포함해 지정할 수 있습니다.

보이지 않는 컨테이너인 global 컨테이너도 있습니다. 옵션과 수정자는 덮어쓰거나 거부하지 않는 한 global 컨테이너에 놓입니다. 대부분의 컨테이너는 다른 컨테이너 안에 둘 수 있으며, 이는 보이는 범위(scope)를 뜻합니다. 컨테이너에는 주소 범위가 있을 수도 없을 수도 있습니다. 서브넷은 본래 범위가 있습니다.

컨테이너와 하위 컨테이너의 기본 규칙은 다음과 같습니다.

  • 모든 컨테이너는 global 수준에서 유효합니다.
  • 서브넷은 다른 컨테이너 안에 둘 수 없습니다.
  • 제한된(restricted) 컨테이너는 그 안에 같은 종류의 일반 컨테이너를 둘 수 없습니다(예를 들어 Accounting 클래스만 허용하는 옵션이 있는 컨테이너는, 글자 "a"로 시작하는 모든 클래스를 허용하는 옵션이 있는 컨테이너를 포함할 수 없습니다. 이는 잘못된 구성입니다).
  • 제한된 client 컨테이너는 하위 컨테이너를 가질 수 없습니다.

이 규칙에 따라 특정 클라이언트나 클라이언트 묶음별로 옵션을 나누는 컨테이너 계층을 만들 수 있습니다.

클라이언트가 여러 컨테이너에 맞으면 옵션과 주소를 어떻게 나눠 줄까요? DHCP 서버는 메시지를 받으면 요청을 데이터베이스(이 경우 db_file)로 넘기고, 컨테이너 목록을 만듭니다. 목록은 깊이와 우선순위 순서로 나열됩니다. 우선순위는 컨테이너 사이의 암묵적 계층으로 정해집니다. 엄격한(strict) 컨테이너가 일반 컨테이너보다 우선순위가 높습니다. client, class, vendor, 마지막으로 subnet 순서로, 그리고 컨테이너 종류 안에서는 깊이 순서로 정렬합니다. 그러면 가장 구체적인 것부터 가장 덜 구체적인 것까지 정렬된 목록이 나옵니다. 예:

text
Subnet 1
--Class 1
--Client 1
Subnet 2
--Class 1
----Vendor 1
----Client 1
--Client 1

이 예에는 서브넷 Subnet 1과 Subnet 2가 있습니다. 클래스 이름 Class 1 하나, 벤더 이름 Vendor 1 하나, 클라이언트 이름 Client 1 하나가 있습니다. Class 1과 Client 1은 여러 곳에 정의되어 있습니다. 서로 다른 컨테이너에 있으므로 이름은 같아도 그 안의 값은 다를 수 있습니다. Client 1이 옵션 목록에 Class 1을 지정해 Subnet 1에서 DHCP 서버로 메시지를 보내면, DHCP 서버는 다음 컨테이너 경로를 만듭니다.

text
Subnet 1, Class 1, Client 1

가장 구체적인 컨테이너가 마지막에 나옵니다. 주소를 얻으려고 목록을 거꾸로 훑어 처음 쓸 수 있는 주소를 찾습니다. 그다음 옵션을 얻으려고 목록을 앞에서부터 훑습니다. 컨테이너에 option deny가 없으면 옵션은 앞의 값을 덮어씁니다. 또 Class 1과 Client 1은 Subnet 1 안에 있으므로 컨테이너 우선순위에 따라 정렬됩니다. 같은 클라이언트가 Subnet 2에서 같은 메시지를 보내면 만들어지는 컨테이너 목록은 다음과 같습니다.

Subnet 2, Class 1, Client 1(Subnet 2 수준), Client 1(Class 1 수준)

Subnet 2가 먼저, 그다음 Class 1, 그다음 Subnet 2 수준의 Client 1이 나옵니다(이 client 문은 계층에서 한 단계 아래에만 있기 때문입니다). 계층상 첫 client 문에 맞는 클라이언트는 Subnet 2 안 Class 1의 Client 1에 맞는 클라이언트보다 덜 구체적입니다.

계층 안의 깊이로 고른 우선순위는 컨테이너 자체의 우선순위로 바뀌지 않습니다. 예를 들어 같은 클라이언트가 같은 메시지를 보내면서 벤더 식별자를 지정하면 컨테이너 목록은 다음과 같습니다.

Subnet 2, Class 1, Vendor 1, Client 1(Subnet 2 수준), Client 1(Class 1 수준)

컨테이너 우선순위는 client 컨테이너가 클라이언트 하나 이상을 정의하는 가장 구체적인 방법이라는 일반 개념을 따르므로 검색 성능을 높입니다. class 컨테이너는 client 컨테이너보다 덜 구체적인 주소를, vendor는 그보다 덜, subnet은 가장 덜 구체적인 주소를 담습니다.

DHCP 주소와 주소 범위

어떤 컨테이너 종류든 주소 범위를 가질 수 있으며, 서브넷은 반드시 주소 범위가 있어야 합니다. 컨테이너 안의 각 범위는 상위 범위의 부분 집합이어야 하고 다른 컨테이너의 범위와 겹치면 안 됩니다.

예를 들어 서브넷 안에 클래스를 정의하고 그 클래스에 범위가 있으면, 그 범위는 서브넷 범위의 부분 집합이어야 합니다. 또 그 class 컨테이너 안의 범위는 같은 수준의 다른 범위와 겹치면 안 됩니다.

범위는 컨테이너 줄에 적고 range와 exclude 문으로 고쳐, 컨테이너에 떨어진 주소 묶음을 연결할 수 있습니다. 서브넷의 위쪽 열 개 주소와 그다음 열 개 주소를 쓸 수 있다면, 서브넷 절에 범위로 이 주소들을 지정해 메모리 사용과, 지정한 범위에 없는 다른 클라이언트와 주소가 충돌할 가능성을 모두 줄일 수 있습니다.

주소를 고르면 목록에서 그 뒤에 오는, 주소 범위가 있는 컨테이너는 그 자식과 함께 목록에서 빠집니다. 빠진 컨테이너의 네트워크별 옵션은 그 컨테이너 안의 주소를 쓰지 않으면 유효하지 않습니다.

DHCP 구성 파일 옵션

주소를 정하려고 목록을 추린 뒤 클라이언트에 줄 옵션 묶음을 만듭니다.

이 선택 과정에서 옵션은 deny를 만나지 않는 한 앞서 고른 옵션을 덮어쓰며, deny를 만나면 거부한 옵션을 클라이언트에 보낼 목록에서 뺍니다. 이 방법으로 부모 컨테이너에서 상속받아 지정해야 할 데이터의 양을 줄입니다.

DHCP 수정자

수정자는 접근이나 임대 시간처럼 특정 컨테이너의 어떤 측면을 바꾸는 항목입니다.

컨테이너를 고치기 전에 주소와 옵션 풀을 정의합니다. 가장 흔한 수정자는 leasetimedefault, supportBootp, supportUnlistedclients입니다.

키워드 설명
leasetimedefault 클라이언트에 주소를 빌려줄 기간을 정합니다.
supportBootp 서버가 BOOTP 클라이언트에 응답할지 정합니다.
supportUnlistedclients 주소를 받으려면 클라이언트를 client 문으로 명시적으로 정의해야 하는지 나타냅니다. 값은 none, dhcp, bootp, both입니다. 이를 써서 BOOTP 클라이언트의 접근은 제한하고 모든 DHCP 클라이언트가 주소를 받게 할 수 있습니다.

다른 수정자는 db_file 데이터베이스를 위한 DHCP 서버 파일 구문에 나열되어 있습니다.

DHCP 로깅

수정자를 고른 뒤에는 로깅을 설정합니다.

로깅 매개변수는 database처럼 컨테이너에 지정하지만 컨테이너 키워드는 logging_info입니다. DHCP 구성을 배울 때는 로깅을 가장 높은 수준으로 켜 두기를 권합니다. 또 로깅 하위 시스템이 초기화된 뒤 구성 오류가 기록되도록, 로깅 구성은 다른 구성 파일 데이터보다 앞에 지정하는 것이 가장 좋습니다. logitem 키워드로 로깅 수준을 켜고, logitem 키워드를 지워 끕니다. 로깅의 다른 키워드로 로그 파일 이름, 파일 크기, 돌려 쓰는 로그 파일 수를 지정할 수 있습니다.

DHCP 서버 전용 옵션

마지막으로 지정할 매개변수는 패킷 처리기 수, 가비지 수집 스레드 실행 빈도 등을 제어하는 서버 전용 옵션입니다.

예를 들어 서버 전용 옵션 두 가지는 다음과 같습니다.

키워드 설명
reservedTime DHCP 클라이언트에 OFFER를 보낸 뒤 주소가 예약 상태로 남아 있는 시간
reservedTimeInterval DHCP 서버가 reservedTime보다 오래 예약 상태에 있는 주소가 있는지 주소를 훑어보는 빈도

이 옵션들은 DISCOVER 메시지를 브로드캐스트하고는 REQUEST 메시지를 브로드캐스트하지 않거나 REQUEST가 네트워크에서 사라지는 클라이언트가 여럿 있을 때 유용합니다. 이 매개변수를 쓰면 규격을 따르지 않는 클라이언트를 위해 주소가 끝없이 예약되는 일을 막습니다.

또 하나 특히 유용한 옵션은 저장 빈도를 나타내는 SaveInterval입니다. 모든 서버 전용 옵션은 로깅 키워드와 함께 일반 서버 동작을 위한 DHCP 서버 파일 구문에 나열되어 있습니다.

DHCP 성능 고려 사항

일부 구성 키워드와 구성 파일의 구조가 DHCP 서버의 메모리 사용과 성능에 영향을 준다는 점을 알아야 합니다.

먼저 부모에서 자식 컨테이너로 옵션이 상속되는 모델을 이해하면 지나친 메모리 사용을 피할 수 있습니다. 목록에 없는 클라이언트를 지원하지 않는 환경에서는 관리자가 파일에 클라이언트를 하나하나 명시해야 합니다. 특정 클라이언트에 옵션을 나열하면, 부모 컨테이너(예: subnet, network, global)에서 옵션을 상속받을 때보다 서버가 그 구성 트리를 저장하는 데 메모리를 더 씁니다. 따라서 관리자는 구성 파일에서 클라이언트 수준에 되풀이되는 옵션이 있는지 확인하고, 그 옵션을 부모 컨테이너에 지정해 클라이언트 전체가 나눠 쓸 수 있는지 판단해야 합니다.

또 logItem 항목 INFO와 TRACE를 쓰면 DHCP 클라이언트 메시지를 처리할 때마다 메시지가 많이 기록됩니다. 로그 파일에 줄을 덧붙이는 일은 비용이 클 수 있으므로 로깅을 줄이면 DHCP 서버 성능이 좋아집니다. DHCP 서버에 오류가 의심되면 SRC traceson이나 dadmin 명령으로 로깅을 동적으로 다시 켤 수 있습니다.

마지막으로 numprocessors 값은 DHCP가 지원하는 네트워크의 크기, db_file의 pingTime 구성 매개변수, 네트워크의 일반적인 전파 지연에 따라 고릅니다. 각 패킷 처리기 스레드는 서버 소유 주소를 클라이언트에 제공하기 전에 그 상태를 확인하려고 ICMP Echo Request를 보내므로, Echo Response를 기다리는 시간이 DISCOVER 메시지 처리 시간에 그대로 영향을 줍니다. 사실상 패킷 처리기 스레드는 응답이나 pingTime 시간 초과를 기다리는 일밖에 하지 못합니다. numprocessors 값을 낮추면 클라이언트 재전송 수가 줄어 서버의 응답 시간이 좋아지면서도 서버 설계의 ping 이점은 유지됩니다(원문 표현).

가장 좋은 성능을 얻으려면 DHCP 서버가 지원하는 원격 네트워크의 전파 지연을 바탕으로 pingTime을 고릅니다. 또 이 pingTime 값과 네트워크 크기를 바탕으로 numprocessors 값을 고릅니다. 값을 너무 작게 고르면 모든 패킷 처리 스레드가 멈출 수 있습니다. 그러면 서버는 Echo Response를 기다리고, 그동안 들어오는 DHCP 클라이언트 메시지는 서버 포트에 쌓입니다. 결국 서버가 클라이언트 메시지를 꾸준한 흐름이 아니라 묶음으로 처리하게 됩니다.

너무 작은 값을 고르면 모든 패킷 처리 스레드가 Echo Response를 기다리며 멈출 수 있습니다.

이런 상황을 막으려면 numprocessors 값을, DHCP 클라이언트 활동이 많을 때 pingTime 간격 하나 동안 받을 수 있는 DISCOVER 메시지의 추정 수보다 크게 설정합니다. 그러나 커널이 스레드 관리로 부담을 받을 만큼 numprocessors 값을 크게 잡지는 않습니다.

예를 들어 초당 DISCOVER 메시지가 10개 올 수 있는 환경에서 numprocessors 5와 pingTime 300을 쓰면 성능이 나쁩니다. 최고 수요 때 3초마다 메시지 5개만 처리하기 때문입니다. 이 환경은 numprocessors 20, pingTime 80과 비슷한 값으로 구성합니다.

DHCP 구성 파일 맞추기

DHCP 구성 파일을 맞추는 데는 여러 요인이 관련됩니다.

많은 네트워크에는 여러 종류의 클라이언트가 있습니다. 예를 들어 네트워크 하나에 Windows, OS/2, JavaOS, UNIX 같은 여러 운영 체제를 쓰는 컴퓨터가 있을 수 있습니다. 이들은 저마다 고유한 벤더 식별자(DHCP 서버에 기계 종류를 알리는 필드)가 필요합니다. JavaOS 클라이언트와 IBM Thin Client 기계에는 bootfile 같은 고유 매개변수와 그 기계에 맞춘 구성 옵션이 필요할 수 있습니다. Windows 95 컴퓨터는 Java 전용 옵션을 잘 처리하지 못합니다.

어떤 기계의 주된 쓰임이 그 기계를 쓰는 사용자 종류로 정해진다면, 기계별 옵션을 vendor 컨테이너 안에 담을 수 있습니다. 예를 들어 개발 담당은 이 운영 체제의 클라이언트로 프로그래밍하고, 마케팅 담당은 OS/2 클라이언트를, 영업은 JavaOS 클라이언트와 IBM Thin Client 기계를, 회계는 Windows 95 기계를 쓸 수 있습니다. 사용자 묶음마다 다른 구성 옵션(다른 프린터, 이름 서버, 기본 웹 서버 등)이 필요할 수 있습니다. 이때는 묶음마다 다른 기계 종류를 쓰므로 그 옵션을 vendor 컨테이너에 넣을 수 있습니다.

여러 묶음이 같은 기계 종류를 쓴다면 옵션을 하위 class 식별자 안에 두어, 예를 들어 마케팅 관리자는 다른 직원이 접근할 수 없는 특정 프린터 묶음을 쓰게 할 수 있습니다.

참고: 다음 가상의 예는 구성 파일의 일부입니다. 주석은 파운드 기호(#)로 시작하며 각 줄이 설치를 어떻게 정의하는지 설명합니다.

text
vendor "AIX_CLIENT"
{
# No specific options, handles things based on class
}
vendor "OS/2 Client"
{
# No specific options, handles things based on class
}
vendor "Windows 95"
{ option 44 9.3.150.3          # Default NetBIOS Nameserver
}
vendor "Java OS"
{ bootstrapserver 9.3.150.4    # Default TFTP server for the Java OS boxes
  option 67 "javaos.bin"       # The bootfile of the Java OS box
}
vendor "IBM Thin Client"
{ bootstrapserver 9.3.150.5    # Default TFTP server for Thin Client boxes
  option 67 "thinos.bin"       # Default bootfile for the Thin Client boxes
}
subnet 9.3.149.0 255.255.255.0
{ option 3 9.3.149.1           # The default gateway for the subnet
  option 6 9.3.150.2           # This is the nameserver for the subnet
  class accounting 9.3.149.5-9.3.149.20
  {       # The accounting class is limited to address range 9.3.149.5-9.3.149.20
          # The printer for this group is also in this range, so it is excluded.
     exclude 9.3.149.15
     option 9 9.3.149.15       # The LPR server (print server)
     vendor "Windows 95"
     {
     option 9 deny              # This installation of Windows 95 does not support
                                # this printer, so the option is denied.
     }
  }
 . . .
}
영어 원문

DHCP configuration

By default, the DHCP server is configured by reading the /etc/dhcpsd.cnf file, which specifies the initial database of options and addresses.

The server is started in the /etc/rc.tcpip file. It can also be started from Web-based System Manager, from SMIT, or through SRC commands. The DHCP client can be configured by running Web-based System Manager, the System Management Interface Tool (SMIT), or editing a flat ASCII file.

Configuring the DHCP server is usually the hardest part of using DHCP in your network. First, decide what networks you want to have DHCP clients on. Each subnet in your network represents a pool of addresses that the DHCP server must add to its database. For example:

text
database db_file
{
    subnet 9.3.149.0 255.255.255.0
      {  option 3 9.3.149.1 # The default gateway clients on this network should use
         option 6 9.3.149.2 # The nameserver clients on this network should use
      }
    ... options or other containers added later
}

The example above shows a subnet, 9.3.149.0, with a subnet mask 255.255.255.0. All addresses in this subnet, 9.3.149.1 through 9.3.149.254, are in the pool. Optionally, a range can be specified on the end of the line or a range or exclude statement can be included in the subnet container. See DHCP server file known options for common configuration methods and definitions.

The database clause with db_file indicates which database method to use for processing this part of the configuration file. Comments begin with a # (pound sign). Text from the initial #, to the end of the line, is ignored by the DHCP server. Each option line is used by the server to tell the client what to do. DHCP server file known options describes the currently supported and known options. See DHCP server file syntax for general server operation for ways to specify options that the server does not know about.

If the server does not understand how to parse an option, it uses default methods to send the option to the client. This also allows the DHCP server to send site-specific options that are not RFC defined, but can be used be certain clients or client configurations.

DHCP configuration file

The configuration file has an address section and an option definition section. These sections use containers to hold options, modifiers, and, potentially, other containers.

A container (basically, a method to group options) uses an identifier to classify clients into groups. The container types are subnet, class, vendor, and client. Currently, there is not a generic user-definable container. The identifier uniquely defines the client so that the client can be tracked if, for example, it moves between subnets. More than one container type can be used to define client access.

Options are identifiers that are returned to the client, such as default gateway and DNS address.

Modifiers are single statements that modify some aspect of a container, such as lease time default.

DHCP containers:

When the DHCP server receives a request, the packet is parsed and identifying keys determine which containers, options, and addresses are extracted.

The example in DHCP configurationshows a subnet container. Its identifying key is the position of the client in the network. If the client is from that network, then it falls into that container.

Each type of container uses a different option to identify a client:

  • The subnet container uses the giaddr field or the interface address of the receiving interface to determine from which subnet the client came.

  • The class container uses the value in option 77 (User Site Class Identifier).

  • The vendor uses the value in option 60 (Vendor Class Identifier).

  • The client container uses the option 61 (Client Identifier) for DHCP clients and the chaddr field in the BOOTP packet for BOOTP clients.

Except for subnets, each container allows the specification of the value that matches it, including regular expression matching.

There is also an implicit container, the global container. Options and modifiers are placed in the global container unless overridden or denied. Most containers can be placed inside other containers implying a scope of visibility. Containers may or may not have address ranges associated with them. Subnets, by their nature, have ranges associated with them.

The basic rules for containers and subcontainers are:

  • All containers are valid at the global level.

  • Subnets can not be placed inside other containers.

  • Restricted containers cannot have regular containers of the same type within them. (For example, a container with an option that only allows a class of Accounting cannot include a container with an option that allows all classes that start with the letter "a". This is illegal.)

  • Restricted client containers cannot have subcontainers.

Given the above rules, you can generate a hierarchy of containers that segment your options into groups for specific clients or sets of clients.

If a client matches multiple containers, how are options and addresses handed out? The DHCP server receives messages, it passes the request to the database (db_file in this case), and a container list is generated. The list is presented in order of depth and priority. Priority is defined as an implicit hierarchy in the containers. Strict containers are higher priority than regular containers. Clients, classes, vendors, and finally subnets are sorted, in that order, and within container type by depth. This generates a list ordered by most specific to least specific. For example:

text
Subnet 1
--Class 1
--Client 1
Subnet 2
--Class 1
----Vendor 1
----Client 1
--Client 1

The example shows two subnets, Subnet 1 and Subnet 2. There is one class name, Class 1, one vendor name, Vendor 1, and one client name, Client 1. Class 1 and Client 1 are defined in multiple places. Because they are in different containers, their names can be the same but values inside them can be different. If Client 1 sends a message to the DHCP server from Subnet 1 with Class 1 specified in its option list, the DHCP server would generate the following container path:

text
Subnet 1, Class 1, Client 1

The most specific container is listed last. To get an address, the list is examined in reverse hierarchy to find the first available address. Then, the list is examined in forward hierarchy to get the options. Options override previous values unless an option deny is present in the container. Also, because Class 1 and Client 1 are in Subnet 1, they are ordered according to the container priority. If the same client is in Subnet 2 and sends the same message, the container list generated is:

Subnet 2, Class 1, Client 1 (at the Subnet 2 level), Client 1 (at the Class 1 level)

Subnet 2 is listed first, then Class 1, then the Client 1 at the Subnet 2 level (because this client statement is only one level down in the hierarchy). The hierarchy implies that a client matching the first client statement is less specific than the client matching Client 1 of Class 1 within Subnet 2.

Priority selected by depth within the hierarchy is not superseded by the priority of the containers themselves. For example, if the same client issues the same message and specifies a vendor identifier, the container list is:

Subnet 2, Class 1, Vendor 1, Client 1 (at Subnet 2 level), Client 1 (at Class 1 level)

Container priority improves search performance because it follows a general concept that client containers are the most specific way to define one or more clients. The class container holds less specific addresses than a client container; vendor is even less specific; and subnet is the least specific.

DHCP addresses and address ranges:

Any container type can have associated addresses ranges; subnets must have associated address ranges. Each range within a container must be a subset of the range and must not overlap with ranges of other containers.

For example, if a class is defined within a subnet and the class has a range, the range must be a subset of the subnet range. Also, the range within that class container cannot overlap with any other ranges at its level.

Ranges can be expressed on the container line and modified by range and exclude statements to allow for disjoint address sets associated with a container. If you have the top ten addresses and the second ten addresses of a subnet available, the subnet can specify these addresses by range in the subnet clause to reduce both memory use and the chance of address collision with other clients not in the specified ranges.

After an address has been selected, any subsequent container in the list that contains address ranges is removed from the list along with its children. Network-specific options in removed containers are not valid if an address is not used from within that container.

DHCP configuration file options:

After the list has been culled to determine addresses, a set of options is generated for the client.

In this selection process, options overwrite previously selected options unless a deny is encountered, in which case, the denied option is removed from the list being sent to the client. This method allows inheritance from parent containers to reduce the amount of data that must be specified.

DHCP modifiers:

Modifiers are items that change some aspect of a particular container, such as access or lease time.

Define the address and option pools before modifying the container. The most common modifiers are leasetimedefault, supportBootp, and supportUnlistedclients.

leasetimedefault

Defines the amount of time an address is to be leased to a client.

supportBootp

Defines whether or not the server responds to BOOTP clients.

supportUnlistedclients

Indicates whether clients are to be explicitly defined by a client statement to receive addresses. The value for supportUnlistedClients can be none, dhcp, bootp, or both. This allows for you to restrict access to bootp client and allow all DHCP clients to get addresses.

Other modifiers are listed in DHCP server file syntax for db_file database.

DHCP logging:

After selecting modifiers, the next item to set up is logging.

Logging parameters are specified in a container like the database, but the container keyword is logging_info. When learning to configure DHCP, it is advisable to turn logging to its highest level. Also,

it is best to specify the logging configuration before any other configuration file data to ensure that configuration errors are logged after the logging subsystem is initialized. Use the logitem keyword to turn on a logging level or remove the logitem keyword to disable a logging level. Other keywords for logging allow the specification of the log filename, file size, and the number of rotating log files.

DHCP server-specific options:

The last set of parameters to specify are server-specific options that allow the user to control the number of packet processors, how often the garbage collection threads are run, and so on.

For example, two server-specific options are:

reservedTime

Indicates how long an address stays in the reserved state after sending an OFFER to the DHCP client

reservedTimeInterval

Indicates how often the DHCP server scans through the addresses to see if there are any that have been in the reserved state longer than reservedTime.

These options are useful if you have several clients that broadcast DISCOVER messages and, either they do not broadcast their REQUEST message, or their REQUEST message gets lost in the network. Using these parameters keeps addresses from being reserved indefinitely for a noncompliant client.

Another particularly useful option is SaveInterval, which indicates how often saves occur. All server-specific options are listed in DHCP server file syntax for general server operation with the logging keywords.

DHCP performance considerations:

It is important to understand that certain configuration keywords and the structure of the configuration file have an effect on the memory use and performance of the DHCP server.

First, excessive memory use can be avoided by understanding the inheritance model of options from parent to child containers. In an environment that supports no unlisted clients, the administrator must explicitly list each client in the file. When options are listed for any specific client, the server uses more memory storing that configuration tree than when options are inherited from a parent container (for example, the subnet, network, or global containers). Therefore, the administrator should verify whether any options are repeated at the client level within the configuration file and determine whether these options can be specified in the parent container and shared by the set of clients as a whole.

Also, when using the logItem entries INFO and TRACE, numerous messages are logged during the processing of every DHCP client message. Appending a line to the log file can be an expensive operation; therefore, limiting the amount of logging improves the performance of the DHCP server. When an error with the DHCP server is suspected, logging can be dynamically re-enabled using either the SRC traceson or dadmin commands.

Finally, selecting a numprocessors value depends on the size of the DHCP-supported network, the pingTime db_file configuration parameter, and the typical propagation delay on the network. Because each packet processor thread issues an ICMP Echo Request to verify the status of a server-owned address before offering it to a client, the amount of time that any Echo Response is waited for directly affects the amount of processing time for a DISCOVER message. Essentially, the packet processor thread is able to do nothing more than wait for any response or for the pingTime timeout. Lowering the numprocessors value improves the response time of the server by lowering the number of client retransmissions, yet still maintaining the ping benefit of the server design.

For best performance, select a pingTime based on the propagation delay of any remote networks supported by the DHCP server. Also, select the numprocessors value based on this pingTime value and the size of the network. Selecting a value that is too small can cause all packet processing threads to be stopped. The server is then caused to wait for any Echo Responses while incoming DHCP client messages are queueing on the server port. This causes the server to handle client messages in batches rather than in a constant stream.

A selected value that is too small can cause all packet processing threads to be stopped waiting for any Echo Responses.

To prevent this situation, set the value for numprocessors to a number higher than the estimated number of DISCOVER messages that can be received within one pingTime interval during a period of high DHCP client activity. However, do not set the numprocessors value so high that it could burden the kernel with thread management.

For example, the values numprocessors 5 and pingTime 300 cause poor performance in an environment with a potential 10 DISCOVER messages per second because at peak demand, only 5 messages are handled every 3 seconds. Configure this environment with values similar to numprocessors 20 and pingTime 80.

DHCP configuration file customization

There are various factors involved in customizing your DHCP configuration file.

Many networks include multiple client types; for example, a single network may include computers running a variety of operating systems, such as Windows, OS/2, Java™OS, and UNIX. Each of these require unique vendor identifiers (the field used to identify the type of machine to the DHCP server). Java OS clients and IBM Thin Client machines can require unique parameters such as bootfiles, and configuration options that need to be tailored specifically for them. Windows 95 computers do not handle Java-specific options well.

Machine-specific options can be encapsulated within vendor containers if the primary use for certain machines is based on the type of user for those machines. For instance, the development staff might use this operating system's clients for programming, the marketing staff might use the OS/2 clients, sales might use Java OS clients and IBM Thin Client machines, and accounting might use Windows 95 machines. Each of these user families might need different configuration options (different printers, name servers, or default web servers, and so forth). In this case, such options could be included in the vendor container, since each group uses a different machine type.

If the same machine type is used by multiple groups, placing the options within a subordinate class identifier instead, would allow your marketing managers, for example, to use a specific set of printers that other employees could not access.

Note: The following fictional example represents part of a configuration file. Comments are preceded by a pound sign (#) and describe how each line defines the installation.

(35줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

DHCP와 DDNS

DHCP 서버는 DDNS(Dynamic Domain Name System) 환경에서 동작하게 하는 옵션을 제공합니다.

DDNS 환경에서 DHCP를 쓰려면 DNS 서버에 동적 영역을 설정해 써야 합니다.

DDNS 서버를 구성한 뒤 DHCP 서버가 A 레코드 갱신, PTR 레코드 갱신, 두 레코드 모두 갱신, 또는 아무것도 하지 않을지 정합니다. 이 결정은 클라이언트 기계가 이 일의 일부나 전부를 할 수 있는지에 따라 다릅니다.

  • 클라이언트가 갱신 책임을 나눌 수 있으면 서버는 PTR 레코드 갱신을, 클라이언트는 A 레코드 갱신을 하도록 구성합니다.
  • 클라이언트가 두 갱신을 모두 할 수 있으면 서버는 아무것도 하지 않도록 구성합니다.
  • 클라이언트가 갱신을 할 수 없으면 서버가 둘 다 하도록 구성합니다.

DHCP 서버에는 갱신이 필요할 때 실행할 명령을 지정하는 구성 키워드가 있습니다.

키워드 설명
updatedns (사용 중단) 어떤 종류의 갱신이든 실행할 명령. PTR 레코드와 A 레코드 갱신 모두에 불립니다.
updatednsA A 레코드를 갱신하는 명령
updatednsP PTR 레코드를 갱신하는 명령

이 키워드들은 갱신이 필요할 때 DHCP 서버가 실행할 문자열을 지정합니다. 키워드 문자열에는 %s(퍼센트 기호와 글자 s)가 네 개 있어야 합니다. 첫째 %s는 호스트 이름, 둘째는 도메인 이름, 셋째는 IP 주소, 넷째는 임대 시간입니다. 이 값들은 dhcpaction 명령의 처음 매개변수 네 개로 쓰입니다. dhcpaction 명령의 나머지 매개변수 두 개는 갱신할 레코드(A, PTR, NONE, BOTH)와 NIM을 갱신할지(NIM 또는 NONIM)를 나타냅니다. NIM과 DHCP의 상호 작용에 관한 자세한 내용은 DHCP와 NIM 제안(TCP/IP (14))을 봅니다. 예:

text
updatednsA "/usr/sbin/dhcpaction ’%s’ ’%s’ ’%s’ ’%s’ ’%s’ A NONIM"
                    # This does the dhcpaction command only on the A record
updatednsP "/usr/sbin/dhcpaction ’%s’ ’%s’ ’%s’ ’%s’ ’%s’ PTR NONIM"
                    # This does the command only on the PTR record
updatedns "/usr/sbin/dhcpaction ’%s’ ’%s’ ’%s’ ’%s’ ’%s’ BOTH NIM"
                    # This does the command on both records and updates NIM

DHCP 서버에는 임대가 해제되거나 만료될 때 DNS 항목을 지우는 키워드도 있습니다.

키워드 설명
releasednsA A 레코드를 지웁니다.
releasednsP PTR 레코드를 지웁니다.
removedns 두 레코드를 모두 지웁니다.

이 키워드들은 주소가 해제되거나 만료될 때 DHCP 서버가 실행할 문자열을 지정합니다. dhcpremove 명령은 dhcpaction과 비슷하게 동작하지만 매개변수를 세 개만 받습니다.

  1. 명령 문자열에 %s로 지정하는 IP 주소
  2. 지울 레코드(A, PTR, NONE, BOTH)
  3. NIM을 갱신할지(NIM 또는 NONIM)

예:

text
releasednsA "/usr/sbin/dhcpremove ’%s’ A NONIM"
                     # This does the dhcpremove command only the A record
releasednsP "/usr/sbin/dhcpremove ’%s’ PTR NONIM"
                     # This does the command only on the PTR record
removedns "/usr/sbin/dhcpremove ’%s’ BOTH NIM"
                     # This does the command on both records and updates NIM

dhcpaction과 dhcpremove 스크립트는 매개변수를 조금 확인한 다음 nsupdate를 부릅니다. nsupdate는 이 운영 체제의 서버와 OS/2 DDNS 서버에서 동작하도록 고쳐졌습니다. 자세한 내용은 nsupdate 명령 설명을 봅니다.

이름 갱신에 NIM 상호 작용이 필요 없으면, 성능을 높이고 실패 시 DNS 갱신을 다시 시도할 수 있도록 DHCP 데몬과 nsupdate 명령 사이에 소켓 전송을 쓰게 DHCP 서버를 구성할 수 있습니다. 이 옵션을 구성하려면 updateDNSA, updateDNSP, releaseDNSA, releaseDNSP 키워드의 첫 따옴표 단어로 "nsupdate_daemon"을 지정해야 합니다. 이 갱신의 매개변수와 플래그는 nsupdate 명령이 받는 것과 같습니다. 또 다음 변수 이름으로 값을 치환할 수 있습니다.

변수 치환되는 값
$hostname DNS 갱신 때는 클라이언트의 호스트 이름, DNS 제거 때는 이전에 클라이언트에 연결된 호스트 이름으로 바뀝니다.
$domain 갱신할 DNS 도메인이나, DNS 제거 때는 클라이언트 호스트 이름에 이전에 쓴 도메인으로 바뀝니다.
$ipadress DHCP 클라이언트 이름에 연결하거나 연결을 풀 IP 주소로 바뀝니다.
$leasetime 임대 시간(초)으로 바뀝니다.
$clientid DHCP 클라이언트 식별자의 문자열 표현이나, BOOTP 클라이언트에서는 하드웨어 종류와 하드웨어 주소의 조합으로 바뀝니다.

예:

text
updateDNSA "nsupdate_daemon -p 9.3.149.2 -h $hostname -d $domain
 -s"d;a;*;a;a;$ipaddress;s;$leasetime;3110400""
updateDNSP "nsupdate_daemon -p 9.3.149.2 -r $ipaddress
 -s"d;ptr;*;a;ptr;$hostname.$domain.;s;$leasetime;3110400""
releaseDNSA "nsupdate_daemon -p 9.3.149.2 -h $hostname -d $domain -s"d;a;*;s;1;3110400""
releaseDNSP "nsupdate_daemon -p 9.3.149.2 -r $ipaddress -s"d;ptr;*;s;1;3110400""

자세한 내용은 nsupdate 명령 설명을 봅니다.

또 서버와 클라이언트 사이의 호스트 이름 교환에 관리자가 정하는 정책이 더해졌습니다. 기본으로 클라이언트에 돌려주고 DDNS 갱신에 쓰는 호스트 이름은 (서버 구성 파일에 정의한) 옵션 12입니다. 또는 기본 호스트 이름을 클라이언트가 제안한 호스트 이름, 곧 옵션 81(DHCPDDNS 옵션)이나 옵션 12(HOSTNAME 옵션)로 할 수 있습니다. 그러나 관리자는 hostnamepolicy, proxyarec, appenddomain 구성 키워드로 기본 호스트 이름을 덮어쓸 수 있습니다. 이 옵션과 매개변수는 db_file 데이터베이스를 위한 DHCP 서버 파일 구문에 정의되어 있습니다.

영어 원문

DHCP and the Dynamic Domain Name System

The DHCP server provides options that enable operation in a Dynamic Domain Name System (DDNS) environment.

To use DHCP in a DDNS environment, you must set and use a Dynamic Zone on a DNS server.

After the DDNS server is configured, decide if the DHCP server is going to do A-record updates, PTR-record updates, updates for both record types, or none at all. This decision depends on whether a client machine can do part or all of this work.

  • If the client can share update responsibility, configure the server to do the PTR-record updates and configure the client to do the A-record updates.

  • If the client can do both updates, configure the server to do none.

  • If the client cannot do updates, configure the server to do both.

The DHCP server has a set of configuration keywords that allow you to specify a command to run when an update is required. These are:

updatedns

(Deprecated.) Represents the command to issue to do any type of update. It is called for both the PTR-record and the A-record update.

updatednsA

Specifies the command to update the A-record.

updatednsP

Specifies the command to update the PTR-record.

These keywords specify executable strings that the DHCP server runs when an update is required. The keyword strings must contain four %s (percent symbol, letter s). The first %s is the host name; the second is the domain name; the third is the IP address; and the fourth is the lease time. These are used as the first four parameters for the dhcpaction command. The remaining two parameters for the dhcpaction command indicate the record to update (A, PTR, NONE, or BOTH) and whether NIM should be updated

(NIM or NONIM). See DHCP and Network Installation Management suggestions for more information about NIM and DHCP interaction. For example:

text
updatednsA "/usr/sbin/dhcpaction ’%s’ ’%s’ ’%s’ ’%s’ ’%s’ A NONIM"
                    # This does the dhcpaction command only on the A record
updatednsP "/usr/sbin/dhcpaction ’%s’ ’%s’ ’%s’ ’%s’ ’%s’ PTR NONIM"
                    # This does the command only on the PTR record
updatedns "/usr/sbin/dhcpaction ’%s’ ’%s’ ’%s’ ’%s’ ’%s’ BOTH NIM"
                    # This does the command on both records and updates NIM

The DHCP server also has a set of keywords to remove the DNS entries when a lease is released or expires. The keywords are:

releasednsA

Removes the A-record.

releasednsP

Removes the PTR-record.

removedns

Removes both record types.

These keywords specify executable strings that the DHCP server runs when an address is released or expired. The dhcpremove command works similarly to dhcpaction, but only takes three parameters:

  1. The IP address, specified as a %s in the command string

  2. Which record to remove (A, PTR, NONE, or BOTH).

  3. Whether NIM should be updated (NIM or NONIM).

For example:

text
releasednsA "/usr/sbin/dhcpremove ’%s’ A NONIM"
                     # This does the dhcpremove command only the A record
releasednsP "/usr/sbin/dhcpremove ’%s’ PTR NONIM"
                     # This does the command only on the PTR record
removedns "/usr/sbin/dhcpremove ’%s’ BOTH NIM"
                     # This does the command on both records and updates NIM

The dhcpaction and dhcpremove scripts do some parameter checking, then set up a call to nsupdate, which has been updated to work with this operating system's servers and with OS/2 DDNS servers. See the nsupdate command description for more information.

If NIM interaction is NOT required by the name update, the DHCP server can be configured to use a socket transfer between the DHCP daemon and the nsupdate command to improve performance and enable DNS updates to be retried upon failure. To configure this option, the updateDNSA, updateDNSP, releaseDNSA, or the releaseDNSP keyword must specify "nsupdate_daemon" as the first quoted word. The parameters and flags for this update are identical to those that are accepted by the nsupdate command. Additionally, the following variable names can be used for substitution:

  • $hostname — Replaced by the host name of the client on DNS update or the host name previously associated with the client for DNS removal.
  • $domain — Replaced by the DNS domain for the update or the previously used domain of the client host name for a DNS removal.
  • $ipadress — Replaced by the IP address to be associated or disassociated from the DHCP client name.
  • $leasetime — Replaced by the lease time (in seconds).
  • $clientid — Replaced by the string representation of the DHCP client identifier or the combination hardware type and hardware address for BOOTP clients.

For example:

text
updateDNSA "nsupdate_daemon -p 9.3.149.2 -h $hostname -d $domain
 -s"d;a;*;a;a;$ipaddress;s;$leasetime;3110400""
updateDNSP "nsupdate_daemon -p 9.3.149.2 -r $ipaddress
 -s"d;ptr;*;a;ptr;$hostname.$domain.;s;$leasetime;3110400""
releaseDNSA "nsupdate_daemon -p 9.3.149.2 -h $hostname -d $domain -s"d;a;*;s;1;3110400""
releaseDNSP "nsupdate_daemon -p 9.3.149.2 -r $ipaddress -s"d;ptr;*;s;1;3110400""

See the nsupdate command description for more information.

Also, administrator-defined policies have been added for hostname exchanges between the server and the clients. By default, the hostname that is returned to the client and used for a DDNS update is option 12 (defined in the server configuration file). Alternatively, the default hostname can be the client-suggested hostname, either through option 81 (the DHCPDDNS option) or through option 12 (the HOSTNAME option). However, the administrator can override the default hostname by using the hostnamepolicy, proxyarec, and appenddomain configuration keywords. These options and their parameters are defined in DHCP server file syntax for db_file database.

이전 버전과의 DHCP 호환

DHCP 서버는 이전 버전의 구성 파일과 데이터베이스 파일 dhcps.ar와 dhcps.cr를 알아봅니다.

옛 구성 파일을 해석해 옛 위치에 새 데이터베이스 파일을 만듭니다. 옛 데이터베이스는 새 파일로 자동 변환됩니다. 구성 파일 자체는 변환하지 않습니다.

DHCP 서버 데이터베이스 모듈 db_file은 옛 형식을 읽을 수 있습니다. DHCP 서버는 구성 파일에 database 컨테이너가 없음을 알아보고, 파일 전체를 서버 매개변수, 로깅 매개변수, db_file 데이터베이스 매개변수를 구성하는 것으로 다룹니다.

참고

  1. 일부 옛 구성 파일 구문은 사용 중단되었지만 아직 지원합니다. 다른 사용 중단 사항은 다음과 같습니다.
  2. network 컨테이너는 완전히 사용 중단되었습니다. 올바르게 지정하려면, 범위가 있는 network 절을 서브넷 주소, 서브넷 넷마스크, 범위가 있는 올바른 subnet 컨테이너로 바꿉니다. network 컨테이너에 subnet 컨테이너가 있으면 network 컨테이너 키워드와 중괄호를 지우고 줄의 알맞은 자리에 서브넷 마스크를 넣습니다. database 컨테이너를 쓰기 시작하려면 네트워크와 클라이언트 접근에 관한 모든 것을 db_file 종류의 database 컨테이너 하나로 묶습니다.
  3. updatedns와 removedns 키워드는 사용 중단되었으며, A와 PTR 레코드의 동작을 따로 지정하는 방식으로 바뀌었습니다.
  4. clientrecorddb와 addressrecorddb 키워드는 각각 clientrecorddb와 backupfile로 바뀌었습니다(원문 표현).
  5. option sa와 option ga 키워드는 각각 bootstrapserver와 giaddrfield 키워드로 바뀌었습니다. 자세한 내용은 일반 서버 동작을 위한 DHCP 서버 파일 구문과 db_file 데이터베이스를 위한 DHCP 서버 파일 구문을 봅니다.
영어 원문

DHCP compatibility with older versions

The DHCP server recognizes the previous versions configuration and database files, dhcps.ar and dhcps.cr.

It parses the old configuration files and generates new database files in the old locations. The old databases are converted automatically to the new file. The configuration file itself is not converted.

The DHCP server database module, db_file, can read the old format. The DHCP server can recognize when a database container is not in the configuration file and treats the whole file as configuring the server parameters, logging parameters, and the db_file database parameters.

Note

  1. Some old configuration file syntax is deprecated, but is still supported. Other deprecations are as follows:

  2. The network container is completely deprecated. To specify correctly, either convert the network clause with a range into a valid subnet container with a subnet address, subnet netmask, and the range. If the network container has subnet containers, remove the network container keyword and its braces and then place the subnet mask in the appropriate place on the line. To start using the database container, group everything that pertains to networks and client access into one database container of type db_file.

  3. The updatedns and removedns keywords are deprecated and replaced in favor of specifying the action for A and PTR records separately.

  4. The clientrecorddb and addressrecorddb keywords have been deprecated to clientrecorddb and backupfile, respectively.

  5. The option sa and option ga keywords have been replaced by bootstrapserver and giaddrfield keywords, respectively. See DHCP server file syntax for general server operation and DHCP server file syntax for db_file database for more information.