Raspberry Pi can't obtain IP address through router or switch ports
I must have something configured incorrectly or am misunderstanding how these should work.
I'll try and keep this as simple as I can.
I have a network set up with the router connected to the switch which provides 4 vlans. Each vlan has its own set of ips defined in the Pool Settings.
The Router has 2 WANs (vlan10 and vlan20) set but I am currently only using WAN1. The other 3 ports are set as vlan1 (default vlan for LAN) Port 3 is connected to port 8 of the switch. The other 2 are empty and I would expect could be used to obtain an IP address from the range used by the router just like the ip that is given to the switch?
The switch port setup is as follows.
The switch is set to provide vlan100 (ports 1/0/1-4), vlan200 (ports 1/0/1-4) and vlan300 (ports 1/0/1-4.)
vlan400, which is what I am currently working with is set to ports 1/0/1-7.
Currently I am only using port 4 (POE) of the switch connected to a single EAP655 which provides wireless access for all vlans. This works without a problem.
Wireless access works great from the EAP and I can enable the ports on the EAP to provide vlan IPs as well. These also work fine. vlan400 is the ip range that I am trying to access using the extra ports 5-7 on the switch.
The issue I am having, is trying to connect other devices to the unused switch or router ports and obtain either static or DHCP delivered IPs.
I have a raspberry Pi running hassio (HomeAssistant) that is connected using ethernet. It has a static ip and works fine when I have it connected using the port on the EAP. I have been unable to get it to work when connected to the switch. For some reason it does not appear to obtain an IP when connected to the switch. The Pi will also work properly using WIFI and connecting to the EAP wirelessly.
Strangely, I have been able to connect a laptop to the switch with ethernet and access the network so I am not sure why the Pi will not work when connected directly to the switch.
Depending on the switch port I connect to with the laptop, I will obtain the expected IP from the connected vlan. I would therefore expect that if I connect the Pi to port 5-7 I should obtain the address I require, since I have those ports configured the same as the port the EAP is connected to.
I am not sure what to try next. Maybe its a routing problem that I need to set up? It just seems strange that it works fine with one device but not with another.
Have I configure this wrong?
Suggestions?