DHCP public LAN doesn't work on linux OS (gateway 0.0.0.0) only on windows
-
What commands did you use to renew the IP address on rpimacumba? Or did you reboot it?
-
I've rebooted the Raspberry Pi and also try with sudo dhclient eth0
I can't put another IP in gateway field.Even if i configure eth0 with
iface eth0 inet static
address 86.122.117.49
netmask 255.255.255.240
network 86.122.117.48
broadcast 86.122.117.63
gateway 86.122.117.48
it doesn't work -
Take a screenshot of your LAN settings, and post here.
Edit: And again, with your netmask, you cannot use 86.122.117.48 as an host/gateway address, as it is the network address. See:
http://jodies.de/ipcalc?host=86.122.117.48&mask1=28&mask2=The first IP address you can use is .49, the last is .62.
-
^ exactly if this 86.122.117.48/28 network is routed to your wan IP.. What IP did you put on the pfsense lan interface for this network.
You would normally take the first host address in that network for pfsense lan interface so .49 - you could then use hosts .50 to 62 where clients on this network would use the pfsense lan IP .49 as their gateway.
I would also expect that if you have a routed network your connection that would have disabled nat for this segment in pfsense. Or you going to end up natting these Ips to whatever the IP is on your wan interface.
-
This are my LAN settings
![macumba office - Interfaces- LAN.jpg](/public/imported_attachments/1/macumba office - Interfaces- LAN.jpg)
![macumba office - Interfaces- LAN.jpg_thumb](/public/imported_attachments/1/macumba office - Interfaces- LAN.jpg_thumb) -
With your netmask, that's an IP address you cannot use. You can only use the addresses ending in the range from 49 towards 62. Most people would use the first usable IP address as the gateway address, in this case 86.122.117.49. This means that the IP addresses that can be used on clients is 50, 51, 52 … 62.
I guess Windows is not so picky about the IP address, but Linux-based operating system certainly are, and that's why you don't get a default gateway on your Raspberry Pi (and the other Linux-based OS) because the address that the DHCP server sends is invalid.
I guess that pfSense should have notified you that the address specified on the interface is invalid, but looks like it doesn't.
-
I tried to create an interface LAN Gateway with 86.122.117.49, but that doesn't work either and also it doesn't work on windows with DHCP). the only clients that work are windows PC with fixed IPs from 86.122.117.50 to xx.xxx.xxx.58 with gateway 86.122.117.48
-
Did you remove or edit the DHCP static mapping in the DHCP server settings for LAN? And you are sure of that another device on the network isn't using 86.122.117.49 already?
What netmask did you enter on your Windows machines when you added a static IP address?
-
I'm positive about 86.122.117.49 isn't use by another device. I remove the static mapping because it was only for the linux server. My windows pc clients have IPs from 50 to 58 with gateway ip 86.122.117.48
-
Here is the thing dude .48/28 is NOT a valid IP - its NOT!!! That is the network ADDRESS, not the first useable host..
Change your IP on pfsense lan to .49/28
Now you shouldn't have to but your having issues - so once you change it reboot pfsense. Now on a client set its IP to .50 with /28 mask.. Can you ping .49? If not what is in your arp table for .49?
What version of pfsense are you using - as you can see from the attached pfsense will not even allow you to set that IP - because its a NETWORK not a valid host IP.
-
It Looks like your gateway address that you have entered in on the DHCP settings for LAN is incorrect.
-
thank you guys, you are the best. it's working now thank to your knowledge.