Service Information
The DHCP server for DAFNE Control System is installed on host dafnenfs.lnf.infn.it
(CentOS 7). The configuration file for DHCP service is:
/etc/dhcp/dhcpd.conf
Subnet List
- Bootstrap subnet: 192.168.70.0/24
- dante-console subnet: 192.168.114.0/24
- linac subnet: 192.168.139.0/24
- chaos subnet: 192.168.143.0/24
- dabtf subnet: 192.168.189.0/24
- dantesuper subnet: 192.168.190.0/23
- dante subnet: 192.168.192.0/24
- dafne subnet: 192.168.195.0/24
- dante-data subnet: 192.168.198.0/24
Test Configuration File
After modifying the configuration file and before restarting the service, it's useful to check if any syntax error is present. To check the config file, run this command as root user:
[root@dafnenfs ~]# /usr/sbin/dhcpd -t
If no error are reported, the service can be restarted without problems. Otherwise, correct reported errors and try again.
Service Check
To check if DHCP service is running, launch this command and check its output as root user:
[root@dafnenfs ~]# systemctl status dhcpd.service
If the service is active (view following screenshot) then it's running, otherwise read which errors are reported.
Service Stop
WARNING: Many control system hosts relies on this service. BE CAREFUL WHEN STOPPING THIS SERVICE
To stop DHCP service, run the following command as root user:
[root@dafnenfs ~]# systemctl stop dhcpd.service
Service Start
To start DHCP service, run the following command as root user:
[root@dafnenfs ~]# systemctl start dhcpd.service
Service Restart
To restart DHCP service, run the following command as root user:
[root@dafnenfs ~]# systemctl restart dhcpd.service