OPNsense Forum

English Forums => General Discussion => Topic started by: meazz1 on February 21, 2020, 02:33:44 AM

Title: How to see what static IPs are active
Post by: meazz1 on February 21, 2020, 02:33:44 AM
Where is the menu to see list of static IP address being used on firewall?
I can see DHCP leases under Services-->DHCPv4--?Leases.
Is there an entry for the Static IPs being used?
My router uuses 192.168.4.1 & DHCP server 192.168.4.10 to 192.168.4.100.
I have assigned static IP 192.168.4.2 to 192.168.4.9.
Title: Re: How to see what static IPs are active
Post by: johnsmi on February 21, 2020, 04:59:05 AM
Services -> DHCPv4 -> Leases
There you can see both, dynamically and statically assigned IPs. The last column Lease type shows static for statically assigned DHCP mappings.


In case you assigned the IPs manually on each client you will have to refer to the sheet of paper where you wrote it down.

With a shell you can do a quick check if the hosts are up:
for i in 2 3 4 5 6 7 8 9 ;do ping -c1 192.168.4.$i; done


arp -a | sort -k2 lists what you may want to enter at DHCP Static Mappings for this interface. on the bottom of: Services -> DHCPv4 -> [Interface]

Assigning static addresses via DHCP can make life easier when you want to change the subnet.
Title: Re: How to see what static IPs are active
Post by: meazz1 on February 22, 2020, 03:11:49 AM
Thanks
Title: Re: How to see what static IPs are active
Post by: michael on February 22, 2020, 04:17:02 AM
Also, if you go to Reporting > Traffic and then wait a minute the active IPs on your LAN will populate as it logs traffic per address, you might need to scroll down to see them.