linux:dhcp_install
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
linux:dhcp_install [2022/08/16 16:19] – kimi | linux:dhcp_install [2022/08/23 13:34] (現在) – 外部編集 127.0.0.1 | ||
---|---|---|---|
行 1: | 行 1: | ||
====== DHCPサーバの構築 ====== | ====== DHCPサーバの構築 ====== | ||
- | ===== BINDのインストール ===== | + | ===== dhcpdのインストール ===== |
インストールは'' | インストールは'' | ||
$ sudo apt install isc-dhcp-server | $ 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> | ||
+ | $ sudo systemctl start isc-dhcp-server | ||
+ | $ sudo systemctl status isc-dhcp-server | ||
+ | </ | ||
linux/dhcp_install.1660634395.txt.gz · 最終更新: 2022/08/23 13:34 (外部編集)