Trying to add DHCP on Opt-2 port of Alix board but I get invalid range
-
Hello Everyone,
I have an Alix2d13 board (three NICs in total). 1 NIC is used for WAN access and the other two NICs are to be used for LAN access with a switch that supports vLAN.
I want to split the switch into two vLANs so I can provide my servers with IPs from two different subnets. 192.168.0.0/24 and 192.168.1.0/24.
LAN-1 works fine and it's giving out DHCP but when I try to add DHCP range in LAN-2 under Services > DHCP Server I see these values pre-populated which doesn't let me to put the range I need:
Subnet mask 255.255.255.255
Available range 255.255.255.255 - 255.255.255.255So, if I enter 192.168.0.2 - 192.168.0.250 for DHCP range it will come with:
The following input errors were detected:
The specified range lies outside of the current subnet.So, I headed to Interfaces > Opt2 and in IP Configuration section I added:
Bridge with: none
IP Address: 192.168.0.1/24
Gateway:192.168.0.1Pressed save and tried DHCP again and still the same error with the same values above. I checked Interfaces > Opt-2 again and now it's empty and I don't see the values I entered. So, to me it seems like Interface settings that I am entering is not saving somehow.
Please help me figure this out.
Thanks
-
What IP address have you assigned LAN-1? (LAN-1 and LAN-2 need to have IP addresses from different subnets.)
There is probably no need to fill in the gateway addresses on the LAN interfaces.
-
Thanks for the reply. As mentioned I used 192.168.0.0/24 and 192.168.1.0/24 for LAN-1 and LAN-2 respectively. I have tried many different subnets but it seems like it's not saving it.
Any other ideas?
-
As mentioned I used 192.168.0.0/24 and 192.168.1.0/24 for LAN-1 and LAN-2 respectively.
I thought that was probably what you had configured, but in your original post you said:
I headed to Interfaces > Opt2 and in IP Configuration section I added:
Bridge with: none
IP Address: 192.168.0.1/24
Gateway:192.168.0.1So why are you trying to give OPT2 an IP address on the LAN-1 subnet? But you haven't said whether OPT2 is LAN-1 or LAN-2 or something else!
For what its worth: on my pfSense 1.2.3 box there are 4 interfaces: WAN, LAN, DMZ and WLAN. WAN gets its IP address from DHCP and WLAN is bridged to LAN. DHCP server allows configuration on LAN and DMZ only and in both cases the DHCP server configuration shows IP addresses based on the IP address of the corresponding interface even though DHCP is enabled only on LAN.
-
I was just giving examples.
LAN-1 = 192.169.0.0/24 subnet
LAN-2 = It can be anything but subnet of LAN-1 or a bridge with LAN-1 or a bridge with WAN. You get the idea. I am not mixing same subnets on two interfaces.What I am saying is that I can't turn on the DHCP on the second LAN interface. Has anyone experienced that? I have posted exactly what the errors are in bold.
Thanks
-
I've never seen it on any of my systems and I can't recall ever seeing another report of it but I don't read all the forums. Have you searched the forums?
Perhaps your configuration file has been corrupted. If so, backup configuration file, reset to factory defaults, reconfigure might help.
What version of pfSense are you running?
-
First try removing the gateway to see if that has any effect. There is no reason to ever enter its own IP address in the gateway field, as far as I know.
-
Double check your subnet mask on the OPT1 interface. You say it's /24 but the settings you pasted implied it's really set to /32.
-
Thanks for the feedback.
And that is exactly the problem. When I add the /24 in the Opt-1 (without any gateway) it saves it. And I can see it right there. But if I reload the Opt-1 interface I see that the settings now gone. So, in fact there is a glitch in saving this setting. I don't know why it doesn't apply. That is what I noted in my first post. I want to know where in the logs to look to see why this doesn't get saved.
Thanks
-
Leave the gateway field blank, you do not enter a gateway for an internal interface.