linux:dhcp_install
差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン次のリビジョン両方とも次のリビジョン | ||
linux:dhcp_install [2022/08/16 16:18] – 作成 kimi | linux:dhcp_install [2022/08/16 16:50] – [BINDのインストール] kimi | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== DHCPサーバの構築 ====== | ||
+ | |||
+ | ===== BINDのインストール ===== | ||
+ | インストールは'' | ||
+ | $ sudo apt install isc-dhcp-server | ||
+ | </ | ||
+ | 設定ファイル等は''/ | ||
+ | |||
+ | <file txt / | ||
+ | kimi@sstw:/ | ||
+ | # dhcpd.conf | ||
+ | |||
+ | # option definitions common to all supported networks... | ||
+ | option domain-name " | ||
+ | option domain-name-servers 192.168.10.AAA, | ||
+ | |||
+ | 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 " | ||
+ | # option subnet-mask 255.255.255.224; | ||
+ | | ||
+ | # option broadcast-address 10.5.5.31; | ||
+ | # default-lease-time 600; | ||
+ | # max-lease-time 7200; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | サーバの起動 | ||
<code sh> | <code sh> | ||
- | sudo apt install | + | $ sudo systemctl start isc-dhcp-server |
+ | $ sudo systemctl status | ||
</ | </ | ||
linux/dhcp_install.txt · 最終更新: 2022/08/23 13:34 by 127.0.0.1