computers:dhcp_server_configuration
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
computers:dhcp_server_configuration [2011/08/10 01:38] – created chkuo | computers:dhcp_server_configuration [2020/08/16 00:52] (current) – chkuo | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== Installation ===== | ===== Installation ===== | ||
- | * Package | + | Download and install the package |
<code bash> | <code bash> | ||
- | sudo apt-get install | + | sudo apt-get install |
</ | </ | ||
- | * Specify the interfaces dhcpd should listen to in ''/ | + | ===== Configuration ===== |
+ | Specify the interfaces dhcpd should listen to in ''/ | ||
<code bash> | <code bash> | ||
- | INTERFACES="eth1" | + | INTERFACESv4="eno1np0" |
+ | </ | ||
+ | |||
+ | Edit ''/ | ||
+ | <code bash> | ||
+ | # / | ||
+ | ddns-update-style none; | ||
+ | log-facility local7; | ||
+ | option domain-name-servers 192.168.1.1, | ||
+ | default-lease-time 86400; | ||
+ | max-lease-time 86400; | ||
+ | |||
+ | subnet 192.168.1.0 netmask 255.255.255.0 { | ||
+ | option routers | ||
+ | option subnet-mask | ||
+ | option broadcast-address | ||
+ | |||
+ | range 192.168.1.200 192.168.1.250; | ||
+ | } | ||
+ | |||
+ | # printer | ||
+ | host poplar { | ||
+ | hardware ethernet XX: | ||
+ | fixed-address 192.168.1.11; | ||
+ | } | ||
+ | |||
+ | # server | ||
+ | host oak { | ||
+ | hardware ethernet XX: | ||
+ | fixed-address 192.168.1.21; | ||
+ | } | ||
+ | |||
+ | # workstation | ||
+ | host sage { | ||
+ | hardware ethernet XX: | ||
+ | fixed-address 192.168.1.101; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== Activation ===== | ||
+ | To start/ | ||
+ | <code bash> | ||
+ | sudo service isc-dhcp-server start | ||
+ | sudo service isc-dhcp-server stop | ||
+ | sudo service isc-dhcp-server restart | ||
+ | </ | ||
+ | |||
+ | ===== Monitoring ===== | ||
+ | To check dhcpd status: | ||
+ | <code bash> | ||
+ | sudo service isc-dhcp-server status | ||
+ | </ | ||
+ | |||
+ | To see the leases: | ||
+ | <code bash> | ||
+ | more / | ||
</ | </ | ||
===== References ===== | ===== References ===== | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[http:// | ||
+ | |||
+ |
computers/dhcp_server_configuration.1312911496.txt.gz · Last modified: 2011/08/10 01:38 by chkuo