Sample CentOS 7.4 DHCP configuration file for PCoIP Management Console auto discovery

Rate this Article
No votes yet
The purpose of this tutorial is to provide a sample DHCP configuration for auto discovery of the PCoIP Management Console 2.x and newer.

In this set up the following were deployed:
  • CentOS 7.4 VM hosted on ESXi 5.5 server.
  • Configured the CentOS VM with two NICs (one on the corporate network and one on an isolated network for testing. This is not necessary as it is just to test on an isolated network and still have full access to the VM.)
  • As CentOS 7.4 VM was a fresh install, yum update was ran to ensure it had the latest patches and fixes.
  • Next, DHCP was installed - yum -y install dhcp
  • A 2nd NIC was assigned to DHCP for dhcpd to listen on. To do this modify /etc/sysconfig/dhcpd and add the following line - DHCPDARGS=ens192 replacing 192 with your NIC ID
  • Next, edit the default dhcpd.conf file located at /etc/dhcp. The exact configuration below.

NOTE: This is a sample configuration you will have to modify your file accordingly, cat was used to display the file contents.
[root@localhost ~]# cat /etc/dhcp/dhcpd.conf
#
# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp*/dhcpd.conf.example
#   see dhcpd.conf(5) man page
#

authoritative;
option space PCoIP;
option PCoIP.URI code 10 = string;
option PCoIP.fingerprint code 11 = text;

#
#You will have to modify this section
#to ensure it meets your scope and DNS server
# that you are offering up IP addresses for
#

subnet 10.0.161.0 netmask 255.255.255.0{
option subnet-mask 255.255.255.0;
option domain-name-servers 8.8.8.8;
range 10.0.161.30 10.0.161.100;
default-lease-time 3600;
max-lease-time 7200;
}

#
#You will have to modify this section
#to ensure it is configured with the IP address
#of you management console and the SHA256
#fingerprint of the management console certificate.
#The fingerprint provided is the default Teradici SHA256 fingerprint.
#The PCoIP.URI is the IP address of the management console converted from ASCII to Hexidecimal
#wss://10.0.161.31 converted to hexidecimal = 77:73:73:3a:2f:2f:31:30:2e:30:2e:31:36:31:2e:33:31
#

class "PCoIP" {
match if substring (option vendor-class-identifier,0,14) = "PCoIP Endpoint";
vendor-option-space PCoIP;
option PCoIP.URI 77:73:73:3a:2f:2f:31:30:2e:30:2e:31:36:31:2e:33:31;
option PCoIP.fingerprint "B7:62:71:01:85:27:46:BB:E3:E9:5C:E2:34:2C:B5:76:7D:7A:F1:7F:6A:4D:5C:DB:AA:2B:99:BD:D5:A9:28:91";
}


To start and enable the dhcpd service run the commands below:
systemctl start dhcpd
systemctl enable dhcpd


Modify the firewall rule and reload:
firewall-cmd --add-service=dhcp --permanent
firewall-cmd --reload