SRX

Expand all | Collapse all

DHCP Options on SRX320

Jump to Best Answer
  • 1.  DHCP Options on SRX320

    Posted 01-03-2020 00:56

    Hello,

    I have an SRX320 and we are moving to a hosted phone provider. They have asked for the following DHCP Options

     

    DHCP Options
    Could the following DHCP options by added to the voice VLAN:
     option 66 ascii provision.acuitymt.uk
     option 160 ascii http://provision.acuitymt.uk/app/provision/
     option 246 ascii upfprofile.address=http://upf.acuityuc.com/provision.xml
     option 4 ip 185.192.177.37
     option 42 ip 185.192.177.37

     

    I have configured them word for word on the pool but it is working. Can someone please point me in the right direction?

    Many thanks

    Barry

     



  • 2.  RE: DHCP Options on SRX320

    Posted 01-03-2020 02:21

    Hello,

     

    "ASCII" and "IP" are not valid option types for JUNOS , please see https://www.juniper.net/documentation/en_US/junos/topics/topic-map/dhcp-local-server-for-routing-devices.html#id-creating-user-defined-dhcp-options-not-included-in-the-default-junos-implementation

     

    • option-type—Any of the following types: byte, byte-stream, flag, integer, ip-address, short, string, unsigned-integer, unsigned-short.

     

    HTH

    Thx

    Alex



  • 3.  RE: DHCP Options on SRX320

    Posted 01-03-2020 03:14

    Hi Alex,

    Thanks for your responce. I just need to get my head around this now. So the below lines wouldn't work?

    option 4 ip-address 185.192.177.37;

    option 42 ip-address 185.192.177.37;

    option 66 array string provision.acuitymt.uk;

    option 160 array string http://provision.acuitymt.uk/app/provision/

    option 246  array string upfprofile.address=http://upf.acuityuc.com/provision.xml

     

    KR

    Barry

     



  • 4.  RE: DHCP Options on SRX320
    Best Answer

    Posted 01-03-2020 03:26

    Hello,

     


    @barry_olech wrote:

     

    option 66 array string provision.acuitymt.uk;

    option 160 array string http://provision.acuitymt.uk/app/provision/

    option 246  array string upfprofile.address=http://upf.acuityuc.com/provision.xml

     

     

     

    Array is used when Your DHCP server has more than 1 value to offer, such as 

     

    option 42 array ip-address [ 185.192.177.37 203.0.113.1 ]

     

    Else You don't need array.

    And You need to enclose Your strings into double quotes just as in the example at link I provided. 

    Finally, some options can have restrictions on types , such as option 43 in this example https://www.reddit.com/r/networking/comments/362sz6/junos_dhcp_server_option_configuration/ so You have to follow these restrictions and convert the strings/IPs into bytes like in this example https://kb.juniper.net/InfoCenter/index?page=content&id=KB23834&cat=SWITCH_PRODUCTS&actp=LIST

    HTH

    Thx

    Alex

     



  • 5.  RE: DHCP Options on SRX320

    Posted 01-03-2020 03:35

    Thanks Alex.