최신판 |
당신의 편집 |
19번째 줄: |
19번째 줄: |
| ignore client-updates; | | ignore client-updates; |
| subnet 192.168.0.0 netmask 255.255.255.0 { | | subnet 192.168.0.0 netmask 255.255.255.0 { |
| option routers 192.168.0.1;
| | option routers 192.168.0.1; |
| option subnet-mask 255.255.255.0;
| | option subnet-mask 255.255.255.0; |
| option domain-name “example.com”;
| | option domain-name “example.com”; |
| option domain-name-servers 192.168.1.1;
| | option domain-name-servers 192.168.1.1; |
| option time-offset -18000;
| | option time-offset -18000; |
| option default-lease-time 21600;
| | option default-lease-time 21600; |
| }
| |
| </pre> | | </pre> |
| * 조건 | | * 조건 |
34번째 줄: |
33번째 줄: |
| * 출처 | | * 출처 |
| ** [http://q.fran.kr/문제/6514 리눅스마스터 1급 기출문제] | | ** [http://q.fran.kr/문제/6514 리눅스마스터 1급 기출문제] |
|
| |
| * 특정 맥주소에 대해 IP를 고정하고 싶다면 아래와 같이 한다.
| |
| <pre class='shell'>
| |
| ddns-update-style interim;
| |
| ignore client-updates;
| |
| subnet 192.168.0.0 netmask 255.255.255.0 {
| |
| option routers 192.168.0.1;
| |
| option subnet-mask 255.255.255.0;
| |
| option domain-name “example.com”;
| |
| option domain-name-servers 192.168.1.1;
| |
| option time-offset -18000;
| |
| option default-lease-time 21600;
| |
| host ihd_pc {
| |
| hardware ethernet 08:00:07:26:c0:a5;
| |
| fixed-address 192.168.1.22;
| |
| }
| |
| }
| |
| </pre>
| |
| * 조건
| |
| ** 맥(MAC) 주소가 08:00:07:26:c0:a5인 경우에는 고정적으로 192.168.1.22번 IP 주소를 할당한다.
| |
| ** 호스트명은 ihd_pc로 관리한다.
| |
| * 출처
| |
| ** [http://q.fran.kr/문제/6482 리눅스마스터 1급 기출문제]
| |
|
| |
| [[분류:리눅스 파일]]
| |