I'm trying to setup InterVLAN routing on a Layer 3 switch (HP1920) with DHCP behind my pfSense box.
My setup is following:
pfSense with VLAN30 + VLAN40
VLAN30 - 10.10.30.1/24 - Gateway:10.10.30.2VLAN40 - 10.10.40.1/24 - Gateway:10.10.40.2=>connected to HP-switch through a trunk port which obtains
10.10.30.2(VLAN30) and 10.10.40.2(VLAN40) as IP-addresse for those 2 VLAN-interfaces.
Clients connected to the HP Switch and obtained IP through DHCP:
Client1 on VLAN30 - 10.10.30.10
Client2 on VLAN40 - 10.10.40.10
The routing table on the HP-switch is following:
10.10.30.0 255.255.255.0 Direct 0 10.10.30.2 Vlan-interface30
10.10.40.0 255.255.255.0 Direct 0 10.10.40.2 Vlan-interface40
The goal is to use the Layer3 switch to route VLAN30 and VLAN40 without pfSense.
I did manage to accomplish this by manually setting up the IP-addresses on the clients to
10.10.30.10/24 GW:10.10.30.2 (Address of VLAN30 interface on the HP swith manually added in pfSense) and
10.10.40.10/24 GW:10.10.40.2 (Address of VLAN40 interface on the HP swith manually added in pfSense)
The problem is, that when I enable DHCP, the correct IP-addresses are obtained, but the gateway is set to 10.10.30.1 on all VLAN-interfaces on the switch!So, the routing is obviously done by pfSense.
I seem to miss some basics in either pfSense or HP switch, so what am I doing wrong ?pfSense is acting as DHCP-server, do I need to do DHCP-relay on the HP switch in order it for work properly ? P.S. Do I need to do any additional static routing on HP switch as it seems it's already routing the correct networks ?------------------------------
xx xx
------------------------------