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

Problem with multiple DHCP servers

Scheduled Pinned Locked Moved General pfSense Questions
5 Posts 3 Posters 352 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.
  • Z
    zanahoria13
    last edited by Oct 31, 2019, 12:40 PM

    Hello,

    I have a problem related to multiple DHCP servers.

    I have 3 LAN interfaces:

    1. Interface X:
    • network 192.168.255.0/24
    • DHCP pool 192.168.255.100-192.168.255.254
    • access to internet and one one home network resource only
    1. Interface Y:
    • network 10.1.1.0/24
    • DHCP pool 10.1.1.100-10.1.1.254
    • isolated network with no internet access, access to one home network resource only
    1. Interface Z:
    • network 10.1.2.0/24
    • DHCP pool 10.1.2.100-10.1.2.254
    • isolated network with no internet access, access to one home network resource only

    My problem is that sometimes the hosts are receiving IP addresses from different interfaces. For example host from network X receives IP address from DHCP from interface Y.

    How can I prevent this situation? How can I force the hosts to receive the IP addresses only from pool from the interface there are connected to?

    1 Reply Last reply Reply Quote 0
    • N
      NogBadTheBad
      last edited by NogBadTheBad Oct 31, 2019, 3:18 PM Oct 31, 2019, 3:15 PM

      Sounds like a L2 issue with your switches.

      Do you virtualise pfSense ?

      I'd do a packet capture using wireshark and look at the DHCP requests & replies.

      Andy

      1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

      1 Reply Last reply Reply Quote 0
      • Z
        zanahoria13
        last edited by zanahoria13 Oct 31, 2019, 4:46 PM Oct 31, 2019, 4:42 PM

        pfSense is virtualized on VMware ESXi. There are 4 network interfaces connected to the pfSense:

        1. The WAN interface with IP address from home network subnet
          2, 3, 4) Virtual interfaces created on ESXi, but not connected to Default switch (default switch is mapped to physical NIC) but to custom switch which is not being mapped to physical NIC.

        I would like to mention that I have no problems with isolating the trafic between the subnets, subnet from internet etc. My only issue is that with DHCP.

        And writing this message, after reading your message, I probably know where the problem is... I am going to test it and I confirm it.

        1 Reply Last reply Reply Quote 0
        • K
          KOM
          last edited by Oct 31, 2019, 4:48 PM

          You have all these layer3 networks going to the same vswitch? That's a strange way of doing it. Normally, you create a vswitch for each network and then map one or more physical interfaces to it.

          1 Reply Last reply Reply Quote 0
          • Z
            zanahoria13
            last edited by Oct 31, 2019, 5:28 PM

            I confirm. All virtual NICs were connected to one switch, this switch was not connected to physical NIC of course.

            Now I have recreated the setup. Each virtual NIC is connected to separate virtual switch. Problem is gone.

            Thank you for your help!

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