DHCP/VLAN Not working

Issues related to configuring your network
Post Reply
faqterson
Posts: 6
Joined: 2014/06/25 13:58:42

DHCP/VLAN Not working

Post by faqterson » 2014/06/25 14:15:31

Please assist with the fillowing issue I am having:

Kernel:

Code: Select all

kernel-2.6.18-371.el5
kernel-headers-2.6.18-371.el5
kernel-devel-2.6.18-371.el5
Network divers:

Code: Select all

igb                   102237  0 
8021q                  26441  2 cxgb3,igb
dca                    11617  1 igb
VLAN:

Code: Select all

DEVICE=eth0.200
BOOTPROTO=none
HWADDR=XX:XX:XX:XX:XX:XX
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=10.0.0.1
TYPE=Ethernet
VLAN=yes
DHCP: (dhcp-3.0.5-33.el5_9.i386)

Code: Select all

ddns-update-style interim;

# bitco.co.za
subnet 10.0.0.0 netmask 255.255.255.0 {
        option domain-name-servers 10.0.0.1;
        option domain-name "bitco.co.za";
        option routers 10.0.0.1;
        option ntp-servers 10.0.0.1;
        option tftp-server-name "10.0.0.1/snom/snom.php";
        range 10.0.0.50 10.0.0.254;
        }
DHCP just refuses to provide the devices IP address:

Code: Select all

Jun 25 13:35:56 pbx dhcpd: DHCPDISCOVER from 00:04:13:4a:a5:30 via eth0.200
Jun 25 13:35:56 pbx dhcpd: DHCPOFFER on 10.0.0.254 to 00:04:13:4a:a5:30 via eth0.200
Jun 25 13:36:00 pbx dhcpd: DHCPDISCOVER from 00:04:13:4a:a5:30 via eth0.200
Jun 25 13:36:00 pbx dhcpd: DHCPOFFER on 10.0.0.254 to 00:04:13:4a:a5:30 via eth0.200
Jun 25 13:36:04 pbx dhcpd: DHCPDISCOVER from 00:04:13:4a:a5:30 via eth0.200
Jun 25 13:36:04 pbx dhcpd: DHCPOFFER on 10.0.0.254 to 00:04:13:4a:a5:30 via eth0.200
Jun 25 13:36:08 pbx dhcpd: DHCPDISCOVER from 00:04:13:4a:a5:30 via eth0.200
Jun 25 13:36:08 pbx dhcpd: DHCPOFFER on 10.0.0.254 to 00:04:13:4a:a5:30 via eth0.200
Jun 25 13:36:12 pbx dhcpd: DHCPDISCOVER from 00:04:13:4a:a5:30 via eth0.200
Jun 25 13:36:12 pbx dhcpd: DHCPOFFER on 10.0.0.254 to 00:04:13:4a:a5:30 via eth0.200
Jun 25 13:36:16 pbx dhcpd: DHCPDISCOVER from 00:04:13:4a:a5:30 via eth0.200
Jun 25 13:36:16 pbx dhcpd: DHCPOFFER on 10.0.0.254 to 00:04:13:4a:a5:30 via eth0.200
Jun 25 13:36:20 pbx dhcpd: DHCPDISCOVER from 00:04:13:4a:a5:30 via eth0.200
Jun 25 13:36:20 pbx dhcpd: DHCPOFFER on 10.0.0.254 to 00:04:13:4a:a5:30 via eth0.200
Jun 25 13:36:24 pbx dhcpd: DHCPDISCOVER from 00:04:13:4a:a5:30 via eth0.200
Jun 25 13:36:24 pbx dhcpd: DHCPOFFER on 10.0.0.254 to 00:04:13:4a:a5:30 via eth0.200
Jun 25 13:36:28 pbx dhcpd: DHCPDISCOVER from 00:04:13:4a:a5:30 via eth0.200
Jun 25 13:36:28 pbx dhcpd: DHCPOFFER on 10.0.0.254 to 00:04:13:4a:a5:30 via eth0.200
Jun 25 13:36:32 pbx dhcpd: DHCPDISCOVER from 00:04:13:4a:a5:30 via eth0.200
Jun 25 13:36:32 pbx dhcpd: DHCPOFFER on 10.0.0.254 to 00:04:13:4a:a5:30 via eth0.200
The device then never receives the IP address.

I have confirm the switches are working correct on different Kernel and Network card on different server. As soon as its connected to the switch the DHCP gets allocated to the device from this new server.

Regards

faqterson
Posts: 6
Joined: 2014/06/25 13:58:42

Re: DHCP/VLAN Not working

Post by faqterson » 2014/06/26 05:25:50

I have tried every thing I can think of to get this working but nothing seams to be working.

DHCP just refuse to distribute via the VLAN interface.

faqterson
Posts: 6
Joined: 2014/06/25 13:58:42

Re: DHCP/VLAN Not working

Post by faqterson » 2014/07/03 07:29:01

I have tried updating all the kernels and even DHCP to the latest version and its still not able to broadcast DHCP via the VLAN interface.

Regards

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: DHCP/VLAN Not working

Post by TrevorH » 2014/07/03 08:17:24

What other interfaces do you have? Could you post the content of all /etc/sysconfig/network-scripts/ifcfg-* files plus /etc/sysconfig/network?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

faqterson
Posts: 6
Joined: 2014/06/25 13:58:42

Re: DHCP/VLAN Not working

Post by faqterson » 2015/11/16 06:22:25

Sorry for the long delay:

cat /etc/sysconfig/network-scripts/ifcfg-*

Code: Select all

# Intel Corporation I210 Gigabit Network Connection
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=0c:c4:7a:4c:e7:1a
ONBOOT=yes
TYPE=Ethernet

# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
TYPE=Ethernet
DEVICE=eth0.5
BOOTPROTO=none
NETMASK=255.255.255.0
IPADDR=10.0.0.1
ONBOOT=yes
VLAN=yes
HWADDR=0c:c4:7a:4c:e7:1a

# Intel Corporation Ethernet Connection I217-LM
DEVICE=eth1
HWADDR=0C:C4:7A:4C:E7:1B
ONBOOT=no
HOTPLUG=no
BOOTPROTO=dhcp
TYPE=Ethernet
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0

# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback
cat /etc/sysconfig/network

Code: Select all

NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=client1.domain.local
I am running into exactly the same issue on different server, same hardware.

If I run DCHP on the non VLAN interface and change my switch settings to untagged on the port all the devices start receiving DHCP. However on eth0.5 nothing works.

Regards

faqterson
Posts: 6
Joined: 2014/06/25 13:58:42

Re: DHCP/VLAN Not working

Post by faqterson » 2015/11/18 09:38:43

I have now looked at a different system with same modules but it has one less module loaded and this server is allowing for DHCP via VLAN

Code: Select all

igb                    85589  0 
8021q                  25033  1 igb
dca                    11233  1 igb
How can I not load cxgb3 module can I also remove it?

Regards

Post Reply