Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Overview

This document will show you how to configure a DHCP server listening to multiple VLANs. However, Abiquo recommends that you use a DHCP relay server to provide VLAN configuration.

Note

A DHCP server only allows 200 VLANs. If more VLANs are needed, you should set up a DHCP relay server.

Abiquo recommends that you always use a DHCP relay server to provide VLAN support because it is difficult to scale this DHCP Server-only Configuration.

Install needed packages

You need to install vconfig. This is used to create VLANs.

Code Block
# yum install vconfig
Create configuration scripts

To generate needed files, we will use Abiquo dhcpd config script.

...

Code Block
# ./abiquo-dhcpd-config.py -s eth1 -v 2-200 -n 10.0.0.0
-- Generating file --

 * vlans-config		Script to generate VLANs and assign IPs
 * dhcpd		Script to configure dhcpd listen interfaces

-- End --
Configure DHCP

...

server
Note
Startup Order
Startup Order

Ensure that the vlans-config service always starts before the dhcpd service.

VLANs init script
Code Block
# cp vlans-config /etc/init.d/
# chkconfig vlans-config on
# service vlans-config start
DHCP server
Code Block
# cp dhcpd /etc/sysconfig/dhcpd
# service dhcpd restart
Add a single out-of-range VLAN tag

To create a single out-of-range VLAN tag e.g. a new public VLAN, edit your script at /etc/init.d/vlan-config and look for text like this:

...