Hello all, first post here and I am having some issues setting up a dhcp server at my workplace.
We have what I would consider a large network spanning 15+ large buildings, over 150 switches and over 1000 network devices plus a large wireless network.
I am trying to configure a Centos 6 box to server as a dhcp server on our network. We have layer 3 distrubition and core switches, and multiple vlans per building. I am wanting to put a dhcp server in the datacenter, on the datacenter vlan/subnet. I am getting some error messages in /var/log/messages and I am not sure how I need my local network set up on the server. I do not want to trunk every vlan on campus (100+ vlans) to this server. I was hoping to have the server have one interface IP, and use IP helper across the network to forward dhcprequest packets to the sever.
Error message
Code:
Jul 2 14:09:12 dhcp1 dhcpd: No subnet declaration for eth0 (10.72.228.40).
Jul 2 14:09:12 dhcp1 dhcpd: ** Ignoring requests on eth0. If this is not what
Jul 2 14:09:12 dhcp1 dhcpd: you want, please write a subnet declaration
Jul 2 14:09:12 dhcp1 dhcpd: in your dhcpd.conf file for the network segment
Jul 2 14:09:12 dhcp1 dhcpd: to which interface eth0 is attached. **
Jul 2 14:09:12 dhcp1 dhcpd:
Jul 2 14:09:12 dhcp1 dhcpd:
Jul 2 14:09:12 dhcp1 dhcpd: Not configured to listen on any interfaces!
Jul 2 14:09:12 dhcp1 dhcpd:
Jul 2 14:09:12 dhcp1 dhcpd: This version of ISC DHCP is based on the release available
Jul 2 14:09:12 dhcp1 dhcpd: on ftp.isc.org. Features have been added and other changes
Jul 2 14:09:12 dhcp1 dhcpd: have been made to the base software release in order to make
Jul 2 14:09:12 dhcp1 dhcpd: it work better with this distribution.
Jul 2 14:09:12 dhcp1 dhcpd:
Jul 2 14:09:12 dhcp1 dhcpd: Please report for this software via the CentOS Bugs Database:
Jul 2 14:09:12 dhcp1 dhcpd: http://bugs.centos.org/
Jul 2 14:09:12 dhcp1 dhcpd:
Jul 2 14:09:12 dhcp1 dhcpd: exiting.
Datacenter network is 10.72.228.0/22
dhcpd config with three test scopes
Code:
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
# see 'man 5 dhcpd.conf'
#
option domain-name "xxxxxxxxx.edu";
option domain-name-servers xxx.xxx.xxx.xxx,xxx.xxx.xxx.xxx;
authorative;
#JDK-WIFI
#VLAN 475
#subnet 10.73.128.0 netmask 255.255.252.0
# range 10.73.128.50 10.72.131.250;
# option routers 10.73.128.1;
# option broadcast-address 10.73.131.255;
# default-lease-time 300;
# max-lease-time 300;
#
#JDK-WIFI-MANAGE
#VLAN 476
subnet 10.73.132.0 netmask 255.255.255.0 {
range 10.73.132.50 10.73.132.250;
option routers 10.73.132.1;
option broadcast-address 10.73.132.255;
default-lease-time 300;
max-lease-time 300;
}
#JDK-WIRED
#VLAN 477
subnet 10.73.136.0 netmask 255.255.252.0 {
range 10.73.136.50 10.73.139.250;
option routers 10.73.136.1;
option broadcast-address 10.73.139.255;
default-lease-time 300;
max-lease-time 300;
}
Also current interface config
Code:
DEVICE="eth0"
BOOTPROTO="STATIC"
IPADDR=10.72.228.40
NETMASK=255.255.252.0
HWADDR="00:25:90:11:50:D6"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="37234b68-d7a5-4a43-8278-0f9dc270e982"
I have done some searching on this forum, and around the internet and have picked up on some things, but mostly questions and answers about serving a couple scopes. I plan on having around 80-100 dhcp scopes in this server when complete.
Thanks!