[VLAN] DHCP problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(...)
> But The DHCP server don't wanna play along over vlans?
> When sniffing the traffic, the DHCP UPD packets arive on eth0.5 on the
> router but that's it, the dhcp don't respond to the vlan interfaces.
> DHCP works fine to regular ethernet if's.

On our main router, our dhcpd.conf looks like this :

-----------------
ddns-update-style none;
max-lease-time 10800;
default-lease-time 10800;

#
# vlan1001 Config
#
subnet 10.0.1.0 netmask 255.255.255.0
{
        range 10.0.1.128 10.0.1.250;
        option subnet-mask 255.255.255.0;
        option routers 10.0.1.1;
        option domain-name-servers nn.nn.nn.nn;
        option domain-name "vlan1001.domain.local";
}
-----------------
and so on.

So you basicly need to have a block for each vlan on your box. Make sure you 
also don't drop the packet in iptables :

-A INPUT -i vlan10+ -m udp -p udp --dport 67:68 -j ACCEPT
-A OUTPUT -o vlan10+ -m udp -p udp --sport 67:68 -j ACCEPT

Nicolas


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux