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

DHCP client doesnt work on VLAN

Scheduled Pinned Locked Moved L2/Switching/VLANs
7 Posts 3 Posters 691 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.
  • F
    frayper
    last edited by frayper Jan 10, 2022, 12:53 PM Jan 10, 2022, 12:51 PM

    Hello all, Im have this problem about DHCP with VLAN TAG.
    Mikrotk RB ----> PFsense---->Internet
    DHCP ----------- Gateway
    Router ---------- IDS/IPS
    VLAN
    DNS

    My config:
    br0 --> WAN
    br1 --> WAN2
    re0 --> LAN
    Setting LAN on DHCP without VLAN works fin. But when assing an interface to re0 doesnt work properly.
    VLAN 1001 on re0 (dhcp client)
    VLAN 1002 on re0 (dhcp client)

    My LAN inteface work like a trunk
    VLAN 1001 TAGGED
    VLAN 1002 TAGGED

    When set the config works few minutes then they lost address. This I got on logs.:

    b2dab996-2b29-439a-87d0-844df40b58ee-image.png

    Any ideas!?

    Thanks!

    J 1 Reply Last reply Jan 10, 2022, 1:34 PM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @frayper
      last edited by Jan 10, 2022, 1:34 PM

      @frayper huh? So your trying to setup a vlan on your lan interface as dhcp client? So this is going to be a new wan connection coming in on your lan side interface? Where is it talking too? What is connected too? What switch, did you tag the vlans there? What is providing dhcp?

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

      F ? 2 Replies Last reply Jan 10, 2022, 2:23 PM Reply Quote 0
      • F
        frayper @johnpoz
        last edited by frayper Jan 10, 2022, 2:25 PM Jan 10, 2022, 2:23 PM

        @johnpoz ook.. all configuration of the network its on Mikrotik RB. DNS, DHCP on VLAN interfaces etc.
        My idea is to config the pfsense like a Gateway and IDS/IPS.

        Mikrotk RB --------------------------------> PFsense----------------------->Internet
        10.1.1.0/24 vlan1001 (DHCP server)
        10.2.1.0/24 vlan1002 (DHCP server)

        Pfsense connected to Mikrotik on LAN port, I tagged both VLAN on this interface.
        (Its a PC with 3 NIC)

        bge0 --> WAN
        bge1 --> WAN2
        re0 --> LAN
        VLAN 1001 on re0
        VLAN 1002 on re0

        I want Psense set the IP on DCHP 10.1.1.254/24 and 10.2.1.254/24 to be the gateway of this networks.

        help something ? more clear now what i want to do? Its wrong my settup?

        J 1 Reply Last reply Jan 10, 2022, 2:37 PM Reply Quote 0
        • ?
          A Former User @johnpoz
          last edited by Jan 10, 2022, 2:36 PM

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator @frayper
            last edited by johnpoz Jan 10, 2022, 2:38 PM Jan 10, 2022, 2:37 PM

            @frayper said in DHCP client doesnt work on VLAN:

            DHCP on VLAN interfaces etc

            You want pfsense to be the dhcp server for this vlan?

            But your log shows it sent out a discovery as a dhcp client..

            Here is a dhclient asking for IP and getting a renewal, my wan interface.

            client.jpg

            This is pfsense being a dhcp server and answer a clients request for an IP

            server.jpg

            Your trying to setup a lan side interface on pfsense and you want it to be a dhcp client? Or you want pfsense to be the dhcp server for these network.

            I am just confused at what your wanting to do exactly..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            F 1 Reply Last reply Jan 10, 2022, 3:00 PM Reply Quote 0
            • F
              frayper @johnpoz
              last edited by frayper Jan 10, 2022, 3:01 PM Jan 10, 2022, 3:00 PM

              @johnpoz ok ok i see u dont getting my point.. I try to explain..
              I want the pfsense take the ip .254 of both network to be the gateway. But i got this error on the log.
              More clear?

              c6a7ee24-3d6d-4622-9e13-c57f912556af-image.png

              J 1 Reply Last reply Jan 10, 2022, 3:56 PM Reply Quote 0
              • J
                johnpoz LAYER 8 Global Moderator @frayper
                last edited by Jan 10, 2022, 3:56 PM

                @frayper what is the point of the RB, you want to use that as a downstream router?? But you want pfsense to be your router for the vlans?

                I don't get trying to setup a local interface as dhcp client.. Why would you do that? Here

                https://forum.netgate.com/post/393642
                Set LAN IP via DHCP

                You could always run into the dhcp handing out a gateway, so pfsense would think its a wan.

                If you want pfsense to be the gateway for your lan side networks, where your RB downstream is just L2 then set them as static IPs. But that RB is normally used as a router (L3).. So not sure what your thinking is going be setup here.

                If you want pfsense to be the gateway for those 2 networks, then you just need a L2 switch.

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                1 Reply Last reply Reply Quote 0
                7 out of 7
                • First post
                  7/7
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received