[opensuse] Can't add 2nd DHCP range
I'm trying to add a second DHCP range for a a subnet on a VLAN. However, when I try to save the configuration, I get an error "Error occurred while restarting the DHCP daemon". I have rechecked the configuration for that 2nd range and I don't see any problems. How can I find out what the problem is? Dmsg doesn't show anything and there doesn't appear to be anything relevant in /var/log. I'm running openSUSE 13.1. tnx jk -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 05/21/2014 10:10 AM, James Knott wrote:
I'm trying to add a second DHCP range for a a subnet on a VLAN. However, when I try to save the configuration, I get an error "Error occurred while restarting the DHCP daemon". I have rechecked the configuration for that 2nd range and I don't see any problems. How can I find out what the problem is? Dmsg doesn't show anything and there doesn't appear to be anything relevant in /var/log. I'm running openSUSE 13.1.
tnx jk
Sorry, I forgot to include the dhcpd.conf info: This is the main LAN: subnet 172.16.1.0 netmask 255.255.255.0 { option domain-name "jknott.net"; range 172.16.1.100 172.16.1.199; default-lease-time 14400; max-lease-time 172800; range 192.168.5.100 192.168.5.199; And the VLAN: subnet 192.168.5.0 netmask 255.255.255.0 { option domain-name-servers 8.8.8.8; option domain-name "jknott.net"; option routers 192.168.5.1; range 192.168.5.100 192.168.5.199; default-lease-time 14400; max-lease-time 17800; -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 05/21/2014 10:22 AM, James Knott wrote:
On 05/21/2014 10:10 AM, James Knott wrote:
I'm trying to add a second DHCP range for a a subnet on a VLAN. However, when I try to save the configuration, I get an error "Error occurred while restarting the DHCP daemon". I have rechecked the configuration for that 2nd range and I don't see any problems. How can I find out what the problem is? Dmsg doesn't show anything and there doesn't appear to be anything relevant in /var/log. I'm running openSUSE 13.1.
tnx jk
Sorry, I forgot to include the dhcpd.conf info:
I tried recreating the configuration from scratch and while I now have both ranges configured, the server hands out the wrong address range for the VLAN. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
James Knott wrote:
On 05/21/2014 10:22 AM, James Knott wrote:
On 05/21/2014 10:10 AM, James Knott wrote:
I'm trying to add a second DHCP range for a a subnet on a VLAN. However, when I try to save the configuration, I get an error "Error occurred while restarting the DHCP daemon". I have rechecked the configuration for that 2nd range and I don't see any problems. How can I find out what the problem is? Dmsg doesn't show anything and there doesn't appear to be anything relevant in /var/log. I'm running openSUSE 13.1.
tnx jk
Sorry, I forgot to include the dhcpd.conf info:
I tried recreating the configuration from scratch and while I now have both ranges configured, the server hands out the wrong address range for the VLAN.
How will the DHCP server know when a request comes over the VLAN vs. the regular LAN? -- Per Jessen, Zürich (18.1°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 05/22/2014 02:54 AM, Per Jessen wrote:
How will the DHCP server know when a request comes over the VLAN vs. the regular LAN?
The LAN & VLAN have different subnets, so the DHCP server hands out addresses accordingly. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
James Knott [22.05.2014 14:04]:
I tried recreating the configuration from scratch and while I now have both ranges configured, the server hands out the wrong address range for the VLAN.
How will the DHCP server know when a request comes over the VLAN vs. the regular LAN?
The LAN & VLAN have different subnets, so the DHCP server hands out addresses accordingly.
Isn't this a contradiction? First you say that "the server hands out the wrong address range for the VLAN", and then "the DHCP server hands out addresses accordingly"? So, where's the problem now? confused, Werner -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Isn't this a contradiction? First you say that "the server hands out the wrong address range for the VLAN", and then "the DHCP server hands out addresses accordingly"?
So, where's the problem now? The "wrong addresses" was my fault. Most of the devices on my network
On 05/22/2014 08:15 AM, Werner Flamme wrote: that use DHCP for IPv4 addresses have their MAC assigned to specific IP addresses in the DHCP server. This means the server will always hand out that address, no matter which subnet it's in. I had to remove one of my computers MAC address from the DHCP server for testing. What I was setting up was a guest WiFi network. My access point supports VLANs and multiple SSIDs. I have configured the guest SSID to use a VLAN and then configured my firewall to put that VLAN in the DMZ. The DHCP server then hands out the appropriate addresses to guest computers. My firewall is set up so that only DHCP requests and SSH are passed from the DMZ to my home network. It's also set up so that only SSH or SSL is passed from the Internet to my home network. My next project is to see if I can get one of my IPv6 subnets working on the guest VLAN. I have a /56 IPv6 subnet, which is in fact 256 /64 subnets. I'm only using one on my home network. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
James Knott wrote:
On 05/21/2014 10:10 AM, James Knott wrote:
I'm trying to add a second DHCP range for a a subnet on a VLAN. However, when I try to save the configuration, I get an error "Error occurred while restarting the DHCP daemon". I have rechecked the configuration for that 2nd range and I don't see any problems. How can I find out what the problem is? Dmsg doesn't show anything and there doesn't appear to be anything relevant in /var/log. I'm running openSUSE 13.1.
tnx jk
Sorry, I forgot to include the dhcpd.conf info:
This is the main LAN: subnet 172.16.1.0 netmask 255.255.255.0 { option domain-name "jknott.net"; range 172.16.1.100 172.16.1.199; default-lease-time 14400; max-lease-time 172800; range 192.168.5.100 192.168.5.199;
And the VLAN: subnet 192.168.5.0 netmask 255.255.255.0 { option domain-name-servers 8.8.8.8; option domain-name "jknott.net"; option routers 192.168.5.1; range 192.168.5.100 192.168.5.199; default-lease-time 14400; max-lease-time 17800;
"range 192.168.5.100 192.168.5.199" seems to be duplicated? Usually I find dhcpd error messages in /var/log/messages. -- Per Jessen, Zürich (27.4°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 5/21/2014 8:02 AM, Per Jessen wrote:
James Knott wrote:
On 05/21/2014 10:10 AM, James Knott wrote:
I'm trying to add a second DHCP range for a a subnet on a VLAN. However, when I try to save the configuration, I get an error "Error occurred while restarting the DHCP daemon". I have rechecked the configuration for that 2nd range and I don't see any problems. How can I find out what the problem is? Dmsg doesn't show anything and there doesn't appear to be anything relevant in /var/log. I'm running openSUSE 13.1.
tnx jk
Sorry, I forgot to include the dhcpd.conf info:
This is the main LAN: subnet 172.16.1.0 netmask 255.255.255.0 { option domain-name "jknott.net"; range 172.16.1.100 172.16.1.199; default-lease-time 14400; max-lease-time 172800; range 192.168.5.100 192.168.5.199;
And the VLAN: subnet 192.168.5.0 netmask 255.255.255.0 { option domain-name-servers 8.8.8.8; option domain-name "jknott.net"; option routers 192.168.5.1; range 192.168.5.100 192.168.5.199; default-lease-time 14400; max-lease-time 17800;
"range 192.168.5.100 192.168.5.199" seems to be duplicated?
Usually I find dhcpd error messages in /var/log/messages.
Not only that, but the first range 192... appears under the wrong subnet. Actually, I see the marked error in the spew that dhcpd kicks out when you restart it, usually its the first thing it says, and the error is marked with a ^ symbol. -- _____________________________________ ---This space for rent--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 05/21/2014 02:39 PM, John Andersen wrote:
Not only that, but the first range 192... appears under the wrong subnet. Actually, I see the marked error in the spew that dhcpd kicks out when you restart it, usually its the first thing it says, and the error is marked with a ^ symbol.
I just decided to start from scratch and that cleared that problem. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
John Andersen wrote:
On 5/21/2014 8:02 AM, Per Jessen wrote:
James Knott wrote:
On 05/21/2014 10:10 AM, James Knott wrote:
I'm trying to add a second DHCP range for a a subnet on a VLAN. However, when I try to save the configuration, I get an error "Error occurred while restarting the DHCP daemon". I have rechecked the configuration for that 2nd range and I don't see any problems. How can I find out what the problem is? Dmsg doesn't show anything and there doesn't appear to be anything relevant in /var/log. I'm running openSUSE 13.1.
tnx jk
Sorry, I forgot to include the dhcpd.conf info:
This is the main LAN: subnet 172.16.1.0 netmask 255.255.255.0 { option domain-name "jknott.net"; range 172.16.1.100 172.16.1.199; default-lease-time 14400; max-lease-time 172800; range 192.168.5.100 192.168.5.199;
And the VLAN: subnet 192.168.5.0 netmask 255.255.255.0 { option domain-name-servers 8.8.8.8; option domain-name "jknott.net"; option routers 192.168.5.1; range 192.168.5.100 192.168.5.199; default-lease-time 14400; max-lease-time 17800;
"range 192.168.5.100 192.168.5.199" seems to be duplicated?
Usually I find dhcpd error messages in /var/log/messages.
Not only that, but the first range 192... appears under the wrong subnet.
I figured that one was the duplicate - cut&paste?
Actually, I see the marked error in the spew that dhcpd kicks out when you restart it, usually its the first thing it says, and the error is marked with a ^ symbol.
Yep, same here. -- Per Jessen, Zürich (17.6°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
James Knott
-
John Andersen
-
Per Jessen
-
Werner Flamme