Help with Switch setup;



  • So here is my current working setup;

    Right now I have a VDSL modem pluged into a phone line which then goes directly into my pfsense box which is WAN (set up with pppoe authentication), which then goes out as LAN which in turn currently goes to a 2wire router to use as a switch and a wireless AP. On here I have set the routing off, so the gateway for the router is always 192.168.1.254/255.255.255.0 so no conflicts. The pfsense LAN is plugged into the routers fibre connection as if it was the ISP connection, but I have set the internet to be ethernet instead of pppoe, so the router gets its broadband via DHCP same with DNS. So then I have this 2wire router acting as a switch too, with the LAN port 1 going out to my switch (for extension to reach my xbox 360) and port 2 going to my pc.

    All of that setup works, but was only temporary until I had my new switch come which is my netgear prosafe pluss (GS105E) which I intended to make use of the VLANS on.

    Now I was wondering as I have no idea about VLANS, and how to set this up properly if someone could help me on how I would need to set up my network in order for this to work (complete noob when it comes to networking).

    I will put a basic diagram below, of what I think is correct and how I would like it;

    My idea is to have the new switch in place of the router, and the router in place of the current switch (I hope this makes sense). So that the pfsense box stays the same with the VDSL in the WAN, but instead the lan going into the switch, and the switch then being pluged into my pc, and the router. I have tired a lot tonight to get this setup to work using trail and error, and my current small network knowledge. First I tried without VLANS, and it did not seem to work for what ever reason I personally dont know, I thought it may be too much conflicts in the DHCP range with the router having DHCP on it too… So I tried to seperate my pc and the router on seperate VLANS, heres what I tried;

    I made the port which had the pfsense box going into it the trunk (which I thought was how your suppose to make it), and my pc untagged (this is for vlan 20),
    then I made the router untagged and again the port with the pfsense incomming trunk for vlan 10... I wasnt sure what to do with the default vlan 1 and left it as all untagged but I think I changed port 1 to trunk again... none of this seemed to give me network on my pc, so I then disabled this and used port based VLANS, and that gave me network but the router wasnt working.

    so my head almost exploding (cos Im a noob) I gave up and went back to my original setup, and am asking how I could achieve this...

    So weather or not that setup would work with VLANs I dont know, but It would be nice to put my personal PC on a seperate VLAN to the xbox / router ... I hope people can make sense of this.



  • Assuming I'm understanding your desired topology correctly, this is what it should look like.




  • @timthetortoise:

    Assuming I'm understanding your desired topology correctly, this is what it should look like.

    Yeah that is the same as I drew. But how do I correctly configure the vlans xD



  • I marked exactly how to configure the VLANs in the diagram. The link from the switch to pfSense should be tagged 10 and 20. The link to your router should be untagged 10, and to your PC untagged 20. Not sure how much more detailed than that I can get. If it doesn't work as above, it's not your VLAN configuration at fault - it may be a routing or DHCP issue.

    In addition, if you're not already aware, your VLANs need to be on different subnets.



  • @timthetortoise:

    I marked exactly how to configure the VLANs in the diagram. The link from the switch to pfSense should be tagged 10 and 20. The link to your router should be untagged 10, and to your PC untagged 20. Not sure how much more detailed than that I can get. If it doesn't work as above, it's not your VLAN configuration at fault - it may be a routing or DHCP issue.

    Oh yeah thanks sorry, I was viewing it on my phone, and only looked at it briefly was driving, didn't notice that :)… I shall try it out.



  • Just an update on this, I have only just got round to re-doing the network, and it works perfectly :)

    With the same network diagram shown here;


Log in to reply