7.6. Configure the DHCP Agent
Follow the steps listed in this procedure to configure the DHCP Agent. All steps listed in this procedure must be performed on the network node while logged in as the
root user on the system hosting the DHCP agent.
Procedure 7.14. Configuring the DHCP Agent
Configuring Authentication
The DHCP agent must be explicitly configured to use the Identity service for authentication.- Set the authentication strategy (
auth_strategy) configuration key tokeystoneusing theopenstack-configcommand.#openstack-config --set /etc/neutron/dhcp_agent.ini \DEFAULT auth_strategy keystone - Set the authentication host (
auth_hostconfiguration key) to the IP address or host name of the Identity server.#openstack-config --set /etc/neutron/dhcp_agent.ini \keystone_authtoken auth_host IPReplace IP with the IP address or host name of the Identity server. - Set the administration tenant name (
admin_tenant_name) configuration key to the name of the tenant that was created for the use of the networking services. Examples in this guide use services.#openstack-config --set /etc/neutron/dhcp_agent.ini \keystone_authtoken admin_tenant_name services - Set the administration user name (
admin_user) configuration key to the name of the user that was created for the use of the networking services. Examples in this guide use neutron.#openstack-config --set /etc/neutron/dhcp_agent.ini \keystone_authtoken admin_user neutron - Set the administration password (
admin_password) configuration key to the password that is associated with the user specified in the previous step.#openstack-config --set /etc/neutron/dhcp_agent.ini \keystone_authtoken admin_password PASSWORD
Configuring the Interface Driver
Set the value of theinterface_driverconfiguration key in the/etc/neutron/dhcp_agent.inifile based on the networking plug-in being used. Execute only the configuration step that applies to the plug-in used in your environment.Open vSwitch Interface Driver
#openstack-config --set /etc/neutron/dhcp_agent.ini \DEFAULT interface_driver neutron.agent.linux.interface.OVSInterfaceDriverLinux Bridge Interface Driver
#openstack-config --set /etc/neutron/dhcp_agent.ini \DEFAULT interface_driver neutron.agent.linux.interface.BridgeInterfaceDriver
Starting the DHCP Agent
- Use the
servicecommand to start theneutron-dhcp-agentservice.#service neutron-dhcp-agent start - Use the
chkconfigcommand to ensure that theneutron-dhcp-agentservice will be started automatically in the future.#chkconfig neutron-dhcp-agent on
The DHCP agent has been configured and started.