Cannot connect to internet with VLANs
aTastyAim last edited by
I'm having a rather strange issue.
I've just setup pfsense, running within vmware esxi 5.1 on a Dell PE R320II.
Network setup is as follows
WAN Interface is directly attached to the ADSL gateway having DHCP IP 10.0.0.152
LAN Interface is attached to a Dell PowerConnect 2824 Switch. Port tagged on VLAN 1, 2 and 10
The vlans are not in use yet. I'm just using VLAN 1 at the moment to test the setup
pfsense can ping to 220.127.116.11
and when I use a client to ping to 18.104.22.168 it says:
"Response from 10.0.0.152: target host unreachable"
Also: For some reason i'm unable to ping to the pfsense box (10.0.0.1) but it's not blocked by any FW rule.
Strange thing is:
When attaching the linksys ADSL GW to the switch AND to the pfsense box's WAN Interface I can ping 10.0.0.1, but as soon as the ADSL gateway gets disconnected from the switch I lose the ability to ping. But I can get an IP from pfsense..
Any suggestions would be appriciated
phil.davis last edited by
It sounds like the WAN and LAN are connected together on one single layer-2 network. And that you have WAN and LAN subnets the same - 10.0.0.0/24. The LAN client is probably getting DHCP from the ADSL gateway, rather than pfSense.
- Make your LAN subnet different from the WAN subnet.
- If you have 2 NICs in your pfSense hardware, then connect the ADSL gateway directly to 1 NIC and use that as WAN, completely separate from the VLAN stuff;
otherwise you have to configure the VLAN switch, and use a VLAN for WAN devices and separate VLAN for LAN devices, with pfSense trunk port between them. That way a DHCP request from pfSense WAN is only seen by the ADSL gateway, and a DHCP request from a LAN device is only seen by the pfSense virtual LAN interface.