linux:dhcp

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
linux:dhcp [2014/09/12 16:24] ともやんlinux:dhcp [2019/05/18 02:23] (現在) – 外部編集 非ログインユーザー
行 1: 行 1:
 ====== DHCPサーバー ====== ====== DHCPサーバー ======
-{{:linux:389-console_001.png?|}} +
-[[http://example.com|外部リンク]] +
-{{:javascript:ace:ext-elastic_tabstops_lite.js|}}+
 ===== パッケージインストール ===== ===== パッケージインストール =====
 <code> <code>
-$ sudo yum install dhcp+$ sudo dnf install dhcp
 </code> </code>
  
行 17: 行 15:
 サンプルを元に修正する場合は、以下のファイルをコピーする。 サンプルを元に修正する場合は、以下のファイルをコピーする。
 <code> <code>
-$ sudo cp /usr/share/doc/dhcp-4.2.5/dhcpd.conf.example /etc/dhcp/dhcpd.conf+$ sudo cp /usr/share/doc/dhcp-server/dhcpd.conf.example /etc/dhcp/dhcpd.conf
 </code> </code>
- 
 ==== 設定ファイルの編集 ==== ==== 設定ファイルの編集 ====
 <code> <code>
行 27: 行 24:
 # #
 # DHCP Server Configuration file. # DHCP Server Configuration file.
-#   see /usr/share/doc/dhcp*/dhcpd.conf.sample 
-#   see 'man 5 dhcpd.conf' 
 # #
  
行 41: 行 36:
  
     option domain-name "fireball.local";     option domain-name "fireball.local";
-    option domain-name-servers blue-dc.fireball.local192.168.1.254;+    option domain-name-servers blue-dc, blue-ns, tomoyan-wrt;
  
-    option ntp-servers blue-dc.fireball.local+    option ntp-servers blue-dc; 
-    option time-offset 32400; +    option time-offset 32400; # Japan Standard Time 
-#    option netbios-name-servers 192.168.1.10;+#    option netbios-name-servers blue-dc;
 #    option netbios-node-type 2; #    option netbios-node-type 2;
 +    option root-path "/opt/ltsp/i386";
 +    if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
 +        filename "/ltsp/i386/pxelinux.0";
 +    } else {
 +        filename "/ltsp/i386/nbi.img";
 +    }
 +    next-server 192.168.1.15;
  
 +    range 192.168.1.150 192.168.1.199;
     range dynamic-bootp 192.168.1.91 192.168.1.100;     range dynamic-bootp 192.168.1.91 192.168.1.100;
     default-lease-time 21600;     default-lease-time 21600;
行 58: 行 61:
 #} #}
 </code> </code>
- 
 ==== 設定ファイルのチェック ==== ==== 設定ファイルのチェック ====
 <code> <code>
 $ sudo dhcpd -t $ sudo dhcpd -t
-Internet Systems Consortium DHCP Server 4.2.5 +Internet Systems Consortium DHCP Server 4.3.6 
-Copyright 2004-2013 Internet Systems Consortium.+Copyright 2004-2017 Internet Systems Consortium.
 All rights reserved. All rights reserved.
 For info, please visit https://www.isc.org/software/dhcp/ For info, please visit https://www.isc.org/software/dhcp/
 +ldap_gssapi_principal is not set,GSSAPI Authentication for LDAP will not be used
 Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
 +Config file: /etc/dhcp/dhcpd.conf
 +Database file: /var/lib/dhcpd/dhcpd.leases
 +PID file: /var/run/dhcpd.pid
 +Source compiled to use binary-leases
 </code> </code>
 ===== firewallの設定 ===== ===== firewallの設定 =====
  • linux/dhcp.1410506669.txt.gz
  • 最終更新: 2019/05/18 02:23
  • (外部編集)