Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Vlan dhcp and route howto?

    Scheduled Pinned Locked Moved Routing and Multi WAN
    9 Posts 3 Posters 4.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      senelord
      last edited by

      hello!  :'(

      I'm a beginner in pfsense and I hope to finaly find solutions in my problems in this forum!

      I have a firewall with 2 network interfaces (xl0 for the WAN and rl0 for the LAN). I wan to enable VLANs in my LAN network so I will be able to share my network in 802.1Q.

      this is network configuration

      WAN*                    ->  xl0    ->            IP@: 10.1.2.49  ->  GW@:10.1.2.254

      LAN                      ->  rl0    ->              IP@: 192.168.1.1

      OPT1(behin rl0)      ->  vlan0  ->          IP@: 10.0.2.254 (exemple capture1)

      OPT2(behin rl0)      ->  vlan1  ->          IP@: 10.0.3.254
      –-                                  -----                  ------------
      -----                                --------              -------------

      OPT20(behin rl0)      ->  vlan19  ->          IP@: 10.0.21.254

      Now what I want is to enable dhcp behin every vlan.
      Make sure that all user behind vlan can access to internet throught WAN interface.
      Make sure too that user can't move somewhere else that its own lan or vlan.

      I have try to make this configuration on OPT (see capture2) just to see if my user connection to this VLAN behin a switch 802.1Q will be ok, but it doesn't work coz I can't get ip address but DHCP  :-.
      Can someone please help me just send me a link where I can get some Howto?

      Thank you very much for your support  :)

      1 Reply Last reply Reply Quote 0
      • H
        hoba
        last edited by

        How many vlans do you need and what is the application for this setup? Maybe you are overcomplicating things and there is an easier way to set this up.

        1 Reply Last reply Reply Quote 0
        • S
          senelord
          last edited by

          This is a pic of what I want to do. I have around 20 Vlans of different users! but as I told you! I got problem coz I don't really understand why users can't have IP adresse from the DHCP server! and how to route them through the pfsense so they wil go to the internet without access to the other vlan.

          network.jpg
          network.jpg_thumb
          network.jpg_thumb

          1 Reply Last reply Reply Quote 0
          • S
            senelord
            last edited by

            all of my vlan network have a 255.255.255.0 netmask

            1 Reply Last reply Reply Quote 0
            • S
              senelord
              last edited by

              one of my OPT configuration

              opt1.jpg
              opt1.jpg_thumb
              opt1.jpg_thumb

              1 Reply Last reply Reply Quote 0
              • S
                senelord
                last edited by

                one of my OPT dhcp server configuration

                dhcp.jpg
                dhcp.jpg_thumb
                dhcp.jpg_thumb

                1 Reply Last reply Reply Quote 0
                • J
                  jeroen234
                  last edited by

                  do all the opt interfaces have a rule to alow trafic to the internet and to the dns server and to the dhcp server ?

                  1 Reply Last reply Reply Quote 0
                  • H
                    hoba
                    last edited by

                    Are you sure your switches are configured correctly?
                    Also don't assign the real interface where the vlans live on as interface. In your setup the first vlan would become lan, second vlan opt1 and so on.

                    1 Reply Last reply Reply Quote 0
                    • S
                      senelord
                      last edited by

                      thank u everybody for ur help! I finaly route and make my dhcp serveur up!  ;)

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.