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

    VoIP VLAN assigned by DHCP

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 2 Posters 468 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
      Stewart
      last edited by

      I know there are vendor specific options for DHCP to tell phones what VLAN to use but I have 4 brands of phones (Panasonic, Polycom, VTech, and Grandstream) and can't get it to work. I've made it work with Mitel phones on a Windows DHCP server but never with pfSense. I've grabbed the DHCP DORA packets and looked them over to find the options being requested by the phones. I set all the options I see but they don't ever go to the new VLAN to pull their IP and set up. Maybe it's the type? I'm using "Unsigned 32-bit integer" with a value of 100. Wireshark shows the option being sent as 000064 so it seems like it's being converted to hexadecimal. The switch is a Cisco CBS250. I've turned off CDP and LLDP. Any advice?

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Can you see what options the phones are requesting coming into pfSense?

        Seems like they would try to use VLAN 64 if it was expecting decimal value like that.

        This is not something I've seen before. I assume with the Windows server the phones don't get an IP in the untagged subnet also?

        Steve

        S 1 Reply Last reply Reply Quote 0
        • S
          Stewart @stephenw10
          last edited by

          @stephenw10 The value I've put in is 100. 0x64 would be the hexidecimal value for 100 decimal. This particular instance is new so there is no Windows server involved. In the instance that is working for me it is a Windows server with Mitel phones (in the past) and Yealink phones (replaced the Mitel phones).

          What should happen is:

          1. The phone pulls a provisional IP from the DHCP server on the untagged VLAN from the switch port
          2. Read the VLAN option received from the DHCP server
          3. Release the provisional IP
          4. Switch to the assigned VLAN
          5. Pull an IP on the new VLAN

          I've set every option I've found for the phones. That's why I looked at the DHCP DORA packets to see what options are being requested. I've tried every option I can find for different brands:
          43
          128
          129
          132
          133
          142
          144
          157
          160
          176
          191
          I'm hoping someone with a working setup can chime in. Maybe I'm using the wrong type for the option? Something in the switch perhaps? I'm a bit lost as to why it isn't working this time but since this is the first time I've tried this with pfSense as the DHCP server I thought this would be the place to start.

          1 Reply Last reply Reply Quote 1
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Yup, someone probably has this working. Unfortunately I don't think I have any way to test it here.

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