01-09-2024 03:55 PM
I am a networking novice and trying to set up a router on a stick but unable to get it work. I want pfsense to handle all the routing. Here is my simple configuration:
ISP---pfsense---cisco 3650 switch (IOS version 16.12 with ipbase services)
pfsense is VM on a computer with a two port NIC. One port connected to WAN interface. Other port is connected to LAN interface. The LAN port on pfsense is wired to port 24 on switch. LAN is assigned 192.168.1.1/24 and DHCP is enabled. Now, when I connect a host to any port on the switch everything thing works great...DHCP on pfsense LAN interface automatically assigns IP address and I am able to access the internet.
Then I created VLAN10 on LAN interface in pfsense with address 192.168.10.1/24 and enabled DHCP. Also created a firewall rule in pfsense to allow allow all traffic.
On the switch I configured the following:
interface GigabitEthernet1/0/21
switchport access vlan 10
switchport mode access
interface GigabitEthernet1/0/24
switchport mode trunk
interface Vlan1
ip address 192.168.1.22 255.255.255.0
!
interface Vlan10
ip address 192.168.10.2 255.255.255.0
ip helper-address 192.168.10.1
!
ip default-gateway 192.168.1.1
ip forward-protocol nd
ip http server
ip http authentication local
ip http secure-server
Now, if I connect my host to port 21 (which is for vlan10) there is no DHCP, no internet.
please help. Appreciate any comments/suggestions with specific commands I can use to help fix the issue.
Solved! Go to Solution.