Static Clients on Static LAN
Why is it that I have to select DHCP on the LAN interface to get the clients to connect?
I gave the clients unique static IP addresses? If I switch the LAN interface to static they cannot connect.
By the way, I have a couple Linux boxes with static IP addresses.
I presume you are talking about the client interfaces and IP addresses here.
If you configure your clients with a static IP addresses you also have to configure a gateway (router) IP address if you want them to access anything off the subnet (LAN). If the clients get their IP address from DHCP they (normally) also get the gateway address from DHCP.
My connection to the router is okay. I have Internet connectivity. I know about the default gateway. The thing is that the LAN interface on the router has to be set to DHCP to connect even though I don't want to use DHCP. All the clients have static IP addresses. I will change the router's LAN interface to static right now to see what happens…...
My pfsense LAN interface has a static IP address and I have no trouble "connecting" from Windows and Linux boxes on my LAN through my pfSense box to web servers on the internet.
Its not clear to me what is different about your setup that makes your setup not work so lets try to find out what is different.
What do you mean by "connect"? (What attempts to connect to what?)
By "router" do you mean the pfSense box?
When you attempt to ping the pfSense box (LAN interface with static IP address) from a Linux system with static IP address what happens?
I may also help to show your configuration. ASCII art would be fine.
I turn the router on first the the computer. The computer does not has a static IP address when I check ifconfig but I cannot get to the Internet. It says page cannot be displayed or something. These are bookmarked websites, so I did not type the address in wrong. Yes, the router is the pfSense box. I can ping the pfSense box so the wires are okay. If the DHCP server is turned on on the LAN interface everything is okay, if I set it to static and reboot the PC I lose the Internet connection. Do I need to set a "Static Route" in the first tab of pfSense?
These are bookmarked websites, so I did not type the address in wrong.
I presume the bookmarks specify names rather than IP addresses. Correct?
If the DHCP server is turned on on the LAN interface everything is okay, if I set it to static and reboot the PC I lose the Internet connection.
This is an area where you need to state what you do with rather more precision. I presume the "it" in "if I set it to static" refers to the LAN interface on the pfSense box and that by "static" you are hinting you are both disabling the DHCP server on the pfSense box AND setting the IP address on "the computer" manually.
I don't really understand what you are doing, so lets try a different tack.
When "the computer" gets its IP address by DHCP whats the IP address and network mask of the LAN interface on "the computer"? Whats the routing table on "the computer". (On Linux, the shell command route -n displays the routing table with IP addresses rather than host names.) Whats the IP address and network mask of the LAN interface on the pfSense box?
When "the computer" has a static IP address, whats the IP address and network mask of the LAN interface on the computer? Whats the routing table on "the computer"? Whats the IP address and network mask of the LAN interface on the pfSense box?
kpa last edited by
Afaik you can't set LAN interface to DHCP, there is no such option Interfaces->LAN. Do you mean turning on the DHCP server on the LAN interface instead?
of course the bookmarks are names. they have IP addresses behind them. It all works through DNS.
wallabybob, can you just tell me how you would set up static IP addressing between your router and workstation using pfSense?
Thanks for your help.
On my home LAN I have every system assigned an IP address by DHCP on pfSense.
A number of my systems are assigned the same address every time by tieing their MAC address to an IP address in the DHCP Server configuration.
You haven't said why you want to have the Linux systems with static addresses so I can't address that. On those systems with static IP address (as seen by the system) you need to specify by the gateway and the DNS server. If you use DHCP this stuff can be changed in one place (the DHCP server) rather than on multiple systems.