Important note about SSL VPN compatibility for 20.0 MR1 with EoL SFOS versions and UTM9 OS. Learn more in the release notes.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

dhcp option 43 for unifi

hi,

Can anyone tell me what the format is to get the dhcp option to work for unifi please on a sophos XG?

I am using option 43 and have tried the ip of the unifi controller.  This worked fine on v19.5.2 but since updating to v19.5.3 it now doesnt work and the unifi controller is not seeing the door hubs being connected.

I have tried hex like this c0a8befc, 0104c0a8befc, 01:04:c0:a8:be:fc and all of them in Caps as well but nothing is working.



This thread was automatically locked due to age.
  • Hello  ,

    Thank you for reaching out to the community, you can use the following command:

    console> system dhcp dhcp-options binding add dhcpname <YOUR DHCP SERVER NAME> optionname Vendor_Encapsulated_Options(43) value '0104xxxxxxxx'

    where xxxxxxxx is the hex ip address for your unifi controller

    Ref: Appendix A – DHCP Options (RFC 2132).
    > dhcp

    Thanks & Regards,
    _______________________________________________________________

    Vivek Jagad | Team Lead, Global Support & Services 

    Log a Support Case | Sophos Service Guide
    Best Practices – Support Case


    Sophos Community | Product Documentation | Sophos Techvids | SMS
    If a post solves your question please use the 'Verify Answer' button.

  • Is that upper or lower case ? and what difference is that to putting the same information in the web gui DHCP page?

  • No difference on the GUI, and not a case sensitive.

    Thanks & Regards,
    _______________________________________________________________

    Vivek Jagad | Team Lead, Global Support & Services 

    Log a Support Case | Sophos Service Guide
    Best Practices – Support Case


    Sophos Community | Product Documentation | Sophos Techvids | SMS
    If a post solves your question please use the 'Verify Answer' button.

  • As per my OP I have already tried that and its not worked.  Is there a log I could check?

  • after adding the dhcp option is that option visible from the console ?
    On the logs you can refer the applog.log and *csc.log 
    *ensure to enable the debugging by executing the following command: to enable/disable -  csc custom debug 
    when enable you'll see the log - Toggling log level to: MAX
    when disable you'll see the log - oggling log level to: WARNING
    console> system dhcp dhcp-options binding show

    Thanks & Regards,
    _______________________________________________________________

    Vivek Jagad | Team Lead, Global Support & Services 

    Log a Support Case | Sophos Service Guide
    Best Practices – Support Case


    Sophos Community | Product Documentation | Sophos Techvids | SMS
    If a post solves your question please use the 'Verify Answer' button.

  • thanks ill have a look.  This is what the binding shows

    Options Configured from GUI                                                     
    ---------------------------                                                     
    Domain_Name                                                                     
    Subnetmask                                                  255.255.255.0       
    Default_Gateway                                             192.168.193.1       
    Domain_Name_Servers                                                             
    Options Configured from CLI                                                     
    ---------------------------                                                     
    Vendor_Encapsulated_Options(43)                             "0104C0A8BEFC"      
    console> 
                                                                    
  • This is what came out of csc.log when I plugged a hub in.   I couldnt see any mention of option 43 or the hex value.

    MESSAGE   Sep 25 14:55:48Z  [dhcpd_events:5179]: {"dhcpd_events":{"method":"nservice","name":"dhcpd_events:write_dhcp_lease","version":"1.2",

    "type":"json","length":35,"data":{ "filename":"/tmp/dhcpd.leases", }}}  

                              

    MESSAGE   Sep 25 14:55:49Z  [dhcpd_events:5179]: service command 'write_dhcp_lease': time taken: 0.057299372 seconds with return status: '200' 

                   

    MESSAGE   Sep 25 14:55:49Z  [dhcpd_events:5179]: {"dhcpd_events":{"method":"nservice","name":"dhcpd_events:l2dhcp_commit","version":"1.2",

    "type":"json","length":243,"data":{"ipaddress":"192.168.193.7","mac":"24:5a:4c:6d:ee:59","loginfo":"192.168.193.7    Mon 25 Sep 15:55:48 2023        Tue 26 Sep 15:55:48 2023       

    24:5a:4c:6d:ee:59       UA-HUB","interfacename":"Port1.193","leasetime":"86400",

    "clienthost":"UA-HUB","ipfamily":"0" }}}

                                           

    MESSAGE   Sep 25 14:55:49Z  [dhcpd_events:5179]: service command 'l2dhcp_commit'

    : time taken: 0.069874644 seconds with return status: '200'   

    -------------------------------------------------------------------------------------------------------------------------------              

    MESSAGE   Sep 25 14:55:56Z  [dhcpd_events:5179]: {"dhcpd_events":{"method":"nservice","name":"dhcpd_events:l2dhcp_commit","version":"1.2",

    "type":"json","length"

    :243,"data":{ "ipaddress":"192.168.193.7","mac":"24:5a:4c:6d:ee:59","loginfo":"192.168.193.7    Mon 25 Sep 15:55:48 2023        Tue 26 Sep 15:55:48 2023        

    24:5a:4c:6d:ee:59       UA-HUB","interfacename":"Port1.193","leasetime":"86400",

    "clienthost":"UA-HUB","ipfamily":"0" }}}     

                                     

    MESSAGE   Sep 25 14:55:56Z  [dhcpd_events:5179]: service command 'l2dhcp_commit'

    : time taken: 0.069379783 seconds with return status: '200'                    

    ------------------------------------------------------------------------------------------------------------------------

    MESSAGE   Sep 25 14:56:09Z  [dhcpd_events:5179]: {"dhcpd_events":{"method":"nservice","name":"dhcpd_events:l2dhcp_commit","version":"1.2",

    "type":"json","length":243,"data":{"ipaddress":"192.168.193.7","mac":"24:5a:4c:6d:ee:59","loginfo":"192.168.193.7    Mon 25 Sep 15:55:48 2023        Tue 26 Sep 15:55:48 2023       

    24:5a:4c:6d:ee:59       UA-HUB","interfacename":"Port1.193","leasetime":"86400",

    "clienthost":"UA-HUB","ipfamily":"0" }}}  

                                        

    MESSAGE   Sep 25 14:56:09Z  [dhcpd_events:5179]: service command 'l2dhcp_commit'

    : time taken: 0.072741593 seconds with return status: '200' 

  • Indeed there is not much, I'd request you to log a technical support case, and revert us a case id here.

    Thanks & Regards,
    _______________________________________________________________

    Vivek Jagad | Team Lead, Global Support & Services 

    Log a Support Case | Sophos Service Guide
    Best Practices – Support Case


    Sophos Community | Product Documentation | Sophos Techvids | SMS
    If a post solves your question please use the 'Verify Answer' button.