I think that I am making some mess, probably beacause I I still do not understand well how LAN linkes to WAN.
Just to make clear my actual settings:
Interfaces:
eth1 renamed WLAN1 on Ethernet
bridge1 → bridge
eth2 to 5 → ethernet
eth6 → ethernet
eth7 → ethernet
Interface List:
all LAN except WLAN1 (eth1) on WAN
rest default settings
Bridge:
bridge1 with ARP enabled, STP I changed from RSTP to NONE, status root bridge
in IP
→ addresses: 0.254/24 on eth2 (to get 0.254 for the router LAN side. Actualy I do not understand it well, I originally used only the eth2 port with no bridge for the whole LAN. But it would not bridge to the WAN port, so i put a bridge to connect eth2-5 and am using all this ports. I would prefer to give a specific IP to each port, but don’t know how to do it. Should I put bridge1 in the address field here?
→ similarly I did configure eth7 on a second LAN with .1.0/24, with a bridge2 setting … (talks to WAN ok, I would like in the future figure out a way to be able to see it from a specific client from the bridge1 side, but for now this has to wait.)
DHCP SERVER
→ DHCP → dhcp1/ bridge1/ ARP static only
→ DHCP lease: enabled–> sees al atteched devices and give new IPs, change to all_static: remains connected to the active de vices but stops giving out IP to a newly connected one as the cellphone, also having the cellphone’s MAC in the static DHCP lease table …
→ dhcp address pool from -180-229
The cabled LAN client computer (fixed .0.2 IP) goes on internet ok wih all_static in the DHCP server. But when I try to connect the cellphone via DHCP, it does not get the IP address.
when I switch back from DHCP-SERVER -->ARP static only to ARP enabled it gets a dynamic IP -195 (in the pool) and not the -183 that is in the static lease table. The weird thing is that it gets ALWAYS -195, also after reboot, as a dynamic IP. If I cancel the line, it makes a new dynamic entry on -195!
How is your connection to the WAN set up? Routing+NAT via a non bridged interface with DHCP client? No ??
–>mmm .. here you got me. I tried something but it did not work so all back to default. At this point:
WAN is on eth1 as default,
no NAT rules for now
in the bridges table WAN appears as disabled but since it was working I did not touch anything for now …
Setting ARP back to enabled some devices do not link to the static registered address but open a new dynamic one on side of the registered one ----
“Enabled” is an ARP setting of the interface, not the DHCP server this time
–>OK, all back to enabled for now.
That might be the real problem … static MAC addresses are not used/recognised for some reason.
I tried also setting ARP to replay-only in the inteface table but no conenction at all
“Reply-only” is again an ARP setting of an interface (the bridge). Want to control the DHCP no? Or do you want to allow traffic via ARP entries?
The idea is to assign specific IPs to specific MACs for devices linked to the LAN which do not allow a static IP (certain videocams specifically). This gives me the possibility to reach them through NAT from the outside directly.
Static-only should be on the DHCP server - OK
, not on the bridge (I found no such thing on the bridge) Where did you find this? → was an error, I actually tried to put relay-only.
if I switch back to the pool it gets a DC connection on DIFFERENT numer as the registered one and I have two times the same MAC on the list.
Sounds like something is different in your static entry for the MAC address, therefor you just get a dynamic IP address.
Please do not mix interface settings for ARP, DHCP server settings and wifi access-list settings. You should only tweak the DHCP server to be static-only.as pool. That static pool is the DHCP lease table. Reply-only ARP entries is only after you have the DHCP correct, if you still need this.
→ in fact I tried to make static the ARP entries which I had already made static in th eDHCP table, but was a mess.
One thing that is known to sometimes interfere with the DHCP server on a bridge is the STP (spanning tree protocol) protocol mode of the bridge. To exclude that one set the STP protocol mode to “none” on the bridge.. By default it is in RSTP.
I put STP … now LAN–>WAN remains connected also if I put static-only on the DHCP table, but stil the cellphone connects in it’s strange way.
Excuse me - I understand that I am mixing up a lot of things, but up to now I used only D-Links as routers and APs and do not know al the tricks of the real thing. I switched to a real router as the data flow just could not be handled any more with my general public style devices. I have about 30 domotic devices (all with DHCP) and 10 Cams (4 with dynamic IP) running on the system …