Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Cannot connect to wifi after static MAC address mapping
« previous
next »
Print
Pages: [
1
]
Author
Topic: Cannot connect to wifi after static MAC address mapping (Read 387 times)
mimitair
Newbie
Posts: 9
Karma: 0
Cannot connect to wifi after static MAC address mapping
«
on:
September 26, 2024, 09:11:26 am »
Dear opnsensers
My setup is as follows:
- OPNsense firewall
- Unifi ultra switch
- Unifi U6+ access point
My home devices are living on the default vlan1 (192.168.1.x). Whenever I go to services -> ISC DHCPv4 -> LAN and assign the MAC address of my laptop (HP, running Windows 11) a static IP address outside of the dynamic range, I am unable to connect to wifi. I am getting an IP address on a completely different network (169.x.x.x) and the wifi status displays "secured, no internet". I can connect via cable again and turn off the static mapping, after which I get a correct IP address and can access the internet. I also did the same for my smartphone (apple iPhone), and that one works fine. Has anyone encountered this before and/or know how to solve? If you need more information, please let me know.
Kind regards
Logged
Seimus
Hero Member
Posts: 608
Karma: 59
Re: Cannot connect to wifi after static MAC address mapping
«
Reply #1 on:
September 26, 2024, 09:55:58 am »
The IP you get on that device is called APIPA 169.254.0.0 to 169.254.255.255.
Its a range from which the Windows will assign itself an IP if it can not get any IP from the DHCP server.
Are you sure you did the reservation properly?
That reserved IP is it in same subnet as is the GW?
Regards,
S.
Logged
Networking is love. You may hate it, but in the end, you always come back to it.
OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | L 790 512G -
VM HA(SOON)
N100 - i226-V | Crucial 16G 4800 DDR5 | S 980 500G -
PROD
mimitair
Newbie
Posts: 9
Karma: 0
Re: Cannot connect to wifi after static MAC address mapping
«
Reply #2 on:
September 26, 2024, 11:07:43 am »
I will double check and try again once I get home. However, I've tried two times previously and am pretty sure the IP address is within the same subnet: 192.168.1.20. Smartphone is on 192.168.1.22 and works fine. The dynamic range is set from 192.168.1.50 - 192.168.1.250.
Thank you for your reply.
Logged
mimitair
Newbie
Posts: 9
Karma: 0
Re: Cannot connect to wifi after static MAC address mapping
«
Reply #3 on:
October 02, 2024, 02:42:23 pm »
The IP I'm defining is a valid one. Still not working.
Logged
EricPerl
Jr. Member
Posts: 90
Karma: 2
Re: Cannot connect to wifi after static MAC address mapping
«
Reply #4 on:
October 03, 2024, 10:31:54 pm »
You need Wi-Fi connectivity to hit the DHCP server...
A 169.xxx address is assigned when none get attributed statically or via DHCP.
Do you see DHCP entries in the firewall logs (filter on src_port = 67 or 68)?
You don't need to mess with the reservation based on the MAC of your wireless adapter when you're reconnecting wired (the wired NIC has a different one).
Which begs the question whether the Wi-Fi reservation is for the IP address that you have for the wired NIC.
Because I could see DHCP fail (or not honor the reservation) if it has an active lease for the IP...
I can't check with OPNsense's DHCP but my DHCP server ignores the reservation in case of active lease.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Cannot connect to wifi after static MAC address mapping