SST Lab Dokuwiki Header header picture

ユーザ用ツール

サイト用ツール


linux:dhcp_install

差分

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

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
linux:dhcp_install [2022/08/16 16:19] kimilinux:dhcp_install [2022/08/23 13:34] (現在) – 外部編集 127.0.0.1
行 1: 行 1:
 ====== DHCPサーバの構築 ====== ====== DHCPサーバの構築 ======
  
-===== BINDのインストール =====+===== dhcpdのインストール =====
 インストールは''apt''一発。(Ubuntu Serverの場合)<code sh> インストールは''apt''一発。(Ubuntu Serverの場合)<code sh>
 $ sudo apt install isc-dhcp-server $ sudo apt install isc-dhcp-server
 </code> </code>
-設定ファイル等は''/''以下に収められている。(Ubuntu 22.04.1 LTSで確認)+設定ファイル等は''/etc/dhcp''以下に収められている。(Ubuntu 22.04.1 LTSで確認)
  
 +<file txt /etc/dhcp/dhcpd.conf>
 +kimi@sstw:/etc/dhcp$ cat dhcpd.conf
 +# dhcpd.conf
 +
 +# option definitions common to all supported networks...
 +option domain-name "***********";
 +option domain-name-servers 192.168.10.AAA, 192.168.10.BBB;
 +
 +default-lease-time 600;
 +max-lease-time 7200;
 +
 +subnet 192.168.10.0 netmask 255.255.255.0 {
 +   range 192.168.10.XXX 192.168.10.YYY;
 +#  option domain-name-servers ns1.internal.example.org;
 +#  option domain-name "internal.example.org";
 +#  option subnet-mask 255.255.255.224;
 +   option routers 192.168.10.ZZZ;
 +#  option broadcast-address 10.5.5.31;
 +#  default-lease-time 600;
 +#  max-lease-time 7200;
 +}
 +</file>
 +
 +サーバの起動
 +<code sh>
 +$ sudo systemctl start isc-dhcp-server
 +$ sudo systemctl status isc-dhcp-server
 +</code>
  
linux/dhcp_install.1660634395.txt.gz · 最終更新: 2022/08/23 13:34 (外部編集)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki