openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601 and BL602
https://openbekeniot.github.io/webapp/devicesList.html
1.39k stars 241 forks source link

Fixed IP Address #182

Open bugalaws opened 2 years ago

bugalaws commented 2 years ago

Theres some way to configure a fixed ipaddress?

openshwprojects commented 2 years ago

You can do a MAC reservation on your router.

Otherwise, I think that BK7231 SDK supports static IP, it's just that it's not coded in WWW frontend yet, neither in config flash memory.

bugalaws commented 2 years ago

Ok thanks, but my modem don’t have the reservation list. Thanks a lot i wait for a future upgrade

deepcoder commented 1 year ago

This would be a helpful addition to the firmware. Being able to make sure there is no gateway in device or putting a honeypot gateway in to confirm that device is 100% local give a lot of creds to project. Thx!

leromarinvit commented 1 year ago

I added support for static IP configuration in my fork: https://github.com/leromarinvit/OpenBK7231T_App/tree/static-ip

It works for BK7231N and at least builds for BK7231T (I don't have any devices to actually test it there though).

I had a look at the other platforms:

But for all of these, I wouldn't be comfortable attempting these changes without hardware to test on.

sjm42 commented 1 year ago

Well, just as an additional motivation...

When using mesh wifi access points, the mac address gets modulated on the way. So depending on which actual access point the BK-something device is connecting to, my firewall would see different mac address!

The mac address is not randomized but derived somehow from the device and AP mac addresses and are deterministic. Anyway there are as many possibilities for the mac address seen by the firewall as there are mesh aps in the range.

And, my firewall does not let me configure several static dhcp mappings with identical IP but a bunch of possible mac addresses for it. I guess most dhcp servers simply don't accept such config.

I am running OPNsense but it makes no difference here. The problem is how mesh/repeater wifi works related to the edge device mac addresses.

I would really love to see this feature added to upstream.

Thanks a lot for everyone for their efforts in any case! I appreciate it very much.