...
Code Block |
---|
title | Installing the package |
---|
|
root@dilos:~# apt-get install isc-dhcp-server |
UNFINISHED...
...
Related articles
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | DS |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label in ("isc","dhcp","isc-dhcp") and type = "page" and space = "DS" |
---|
labels | isc dhcp isc-dhcpEdit the configuration file /etc/dhcp/dhcpd.conf for IPv4 or /etc/dhcp/dhcpd6.conf for IPv6. Code Block |
---|
|
# A slightly different configuration for an internal subnet.
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.200;
option subnet-mask 255.255.255.0;
option domain-name-servers 8.8.8.8;
# option domain-name "internal.example.org";
option routers 192.168.0.254;
option broadcast-address 192.168.0.255;
default-lease-time 600;
max-lease-time 7200;
} |
Edit the configuration file /etc/default/isc-dhcp-server for IPv4 or for IPv6. Find out the name of the network interface - ifconfig. Now you can run the server:
Code Block |
---|
|
# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)
# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf
# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPDv4_PID=/var/run/dhcpd.pid
#DHCPDv6_PID=/var/run/dhcpd6.pid
# Additional options to start dhcpd with.
# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="vnic8"
INTERFACESv6="" |
Code Block |
---|
title | starting the service |
---|
|
root@dilos:~# svcadm enable isc-dhcp-server |
Check the result by svcs tool:
Code Block |
---|
title | Checking problem services |
---|
|
root@dilos:~# svcs -xv
root@dilos:~# |
That means the service works, and you may relax
Info |
---|
If you see some services in the output of svcs -xv, this means the services were configured incorrect. Check their configuration files and then try to do command svcadm clear service |