SRX

 View Only
last person joined: 4 days ago 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  Enabling DHCP option 66

    Posted 03-16-2018 12:19

    Hello, I am trying to add an option 66 to some current configuration, and I am gettin an error:

     

    "Incompatible with the dhcp server configured under 'system services dhcp'"

     

    The configuration I am trying to add is 

     

    set system services dhcp boot-server "ADDRESS" 

     

    or

     

    set system services dhcp option 66 string "ADDRESS" 

     

    The current DHCP configuration is: 

     

    Spoiler
    set system services dhcp-local-server group EAST interface irb.10
    set system services dhcp-local-server group SOUTH interface irb.11
    set system services dhcp-local-server group WEST interface irb.12
    set system services dhcp-local-server group NORTH interface irb.13
    set system services dhcp-local-server group PICO1 interface irb.14
    set system services dhcp-local-server group PICO2 interface irb.15
    set system services dhcp-local-server group PICO3 interface irb.16
    set system services dhcp-local-server group PICO4 interface irb.17
    set system services dhcp-local-server group SMDHCP interface irb.247
    set access address-assignment pool EAST-POOL family inet network 10.30.10.0/24
    set access address-assignment pool EAST-POOL family inet range EAST-RANGE low 10.30.10.2
    set access address-assignment pool EAST-POOL family inet range EAST-RANGE high 10.30.10.254
    set access address-assignment pool EAST-POOL family inet dhcp-attributes name-server 8.8.8.8
    set access address-assignment pool EAST-POOL family inet dhcp-attributes name-server 8.8.4.4
    set access address-assignment pool EAST-POOL family inet dhcp-attributes router 10.30.10.1
    set access address-assignment pool EAST-POOL family inet dhcp-attributes propagate-settings irb.10
    set access address-assignment pool SOUTH-POOL family inet network 10.30.11.0/24
    set access address-assignment pool SOUTH-POOL family inet range SOUTH-RANGE low 10.30.11.2
    set access address-assignment pool SOUTH-POOL family inet range SOUTH-RANGE high 10.30.11.254
    set access address-assignment pool SOUTH-POOL family inet dhcp-attributes name-server 8.8.8.8
    set access address-assignment pool SOUTH-POOL family inet dhcp-attributes name-server 8.8.4.4
    set access address-assignment pool SOUTH-POOL family inet dhcp-attributes router 10.30.11.1
    set access address-assignment pool SOUTH-POOL family inet dhcp-attributes propagate-settings irb.11
    set access address-assignment pool WEST-POOL family inet network 10.30.12.0/24
    set access address-assignment pool WEST-POOL family inet range WEST-RANGE low 10.30.12.2
    set access address-assignment pool WEST-POOL family inet range WEST-RANGE high 10.30.12.254
    set access address-assignment pool WEST-POOL family inet dhcp-attributes name-server 8.8.8.8
    set access address-assignment pool WEST-POOL family inet dhcp-attributes name-server 8.8.4.4
    set access address-assignment pool WEST-POOL family inet dhcp-attributes router 10.30.12.1
    set access address-assignment pool WEST-POOL family inet dhcp-attributes propagate-settings irb.12
    set access address-assignment pool NORTH-POOL family inet network 10.30.13.0/24
    set access address-assignment pool NORTH-POOL family inet range NORTH-RANGE low 10.30.13.2
    set access address-assignment pool NORTH-POOL family inet range NORTH-RANGE high 10.30.13.254
    set access address-assignment pool NORTH-POOL family inet dhcp-attributes name-server 8.8.8.8
    set access address-assignment pool NORTH-POOL family inet dhcp-attributes name-server 8.8.4.4
    set access address-assignment pool NORTH-POOL family inet dhcp-attributes router 10.30.13.1
    set access address-assignment pool NORTH-POOL family inet dhcp-attributes propagate-settings irb.13
    set access address-assignment pool PICO1-POOL family inet network 10.30.14.0/24
    set access address-assignment pool PICO1-POOL family inet range PICO1-RANGE low 10.30.14.2
    set access address-assignment pool PICO1-POOL family inet range PICO1-RANGE high 10.30.14.254
    set access address-assignment pool PICO1-POOL family inet dhcp-attributes name-server 8.8.8.8
    set access address-assignment pool PICO1-POOL family inet dhcp-attributes name-server 8.8.4.4
    set access address-assignment pool PICO1-POOL family inet dhcp-attributes router 10.30.14.1
    set access address-assignment pool PICO1-POOL family inet dhcp-attributes propagate-settings irb.14
    set access address-assignment pool PICO2-POOL family inet network 10.30.15.0/24
    set access address-assignment pool PICO2-POOL family inet range PICO2-RANGE low 10.30.15.2
    set access address-assignment pool PICO2-POOL family inet range PICO2-RANGE high 10.30.15.254
    set access address-assignment pool PICO2-POOL family inet dhcp-attributes name-server 8.8.8.8
    set access address-assignment pool PICO2-POOL family inet dhcp-attributes name-server 8.8.4.4
    set access address-assignment pool PICO2-POOL family inet dhcp-attributes router 10.30.15.1
    set access address-assignment pool PICO2-POOL family inet dhcp-attributes propagate-settings irb.15
    set access address-assignment pool PICO3-POOL family inet network 10.30.16.0/24
    set access address-assignment pool PICO3-POOL family inet range PICO3-RANGE low 10.30.16.2
    set access address-assignment pool PICO3-POOL family inet range PICO3-RANGE high 10.30.16.254
    set access address-assignment pool PICO3-POOL family inet dhcp-attributes name-server 8.8.8.8
    set access address-assignment pool PICO3-POOL family inet dhcp-attributes name-server 8.8.4.4
    set access address-assignment pool PICO3-POOL family inet dhcp-attributes router 10.30.16.1
    set access address-assignment pool PICO3-POOL family inet dhcp-attributes propagate-settings irb.16
    set access address-assignment pool PICO4-POOL family inet network 10.30.17.0/24
    set access address-assignment pool PICO4-POOL family inet range PICO4-RANGE low 10.30.17.2
    set access address-assignment pool PICO4-POOL family inet range PICO4-RANGE high 10.30.17.254
    set access address-assignment pool PICO4-POOL family inet dhcp-attributes name-server 8.8.8.8
    set access address-assignment pool PICO4-POOL family inet dhcp-attributes name-server 8.8.4.4
    set access address-assignment pool PICO4-POOL family inet dhcp-attributes router 10.30.17.1
    set access address-assignment pool PICO4-POOL family inet dhcp-attributes propagate-settings irb.17
    set access address-assignment pool SM-POOL family inet network 10.30.0.0/23
    set access address-assignment pool SM-POOL family inet range SM-RANGE low 10.30.0.2
    set access address-assignment pool SM-POOL family inet range SM-RANGE high 10.30.1.254
    set access address-assignment pool SM-POOL family inet dhcp-attributes name-server 8.8.8.8
    set access address-assignment pool SM-POOL family inet dhcp-attributes name-server 8.8.4.4
    set access address-assignment pool SM-POOL family inet dhcp-attributes router 10.30.0.1
    set access address-assignment pool SM-POOL family inet dhcp-attributes propagate-settings irb.247

    I am not sure what exactly is causing the issue, I tried adding the configuration to each group as well, but I receive a syntax error as soon as I add "group" to the end of the command.

     

    Thank you ahead of time for the assistance!



  • 2.  RE: Enabling DHCP option 66

     
    Posted 03-16-2018 22:19

    try this, its part of address-assignment pool. With option 66, you can configure 1 TFPT server per pool.

     

    For instance:

        access {

            address-assignment {

                pool dhcpv4 {

                    family inet {

                        network x.x.x.x/x;

                        range 1 {

                            low x.x.x.x;

                            high x.x.x.x;

                        }

                        dhcp-attributes {

                            boot-file test.cnf;

                            tftp-server 10.1.1.1;

                            option 66 ip-address 10.1.1.1;

                        }

                    }

                }

                pool test1 {

                    family inet {

                        network x.x.x.x/x;

                        range 2 {

                            low x.x.x.x

                            high x.x.x.x;

                        }

                        dhcp-attributes {

                            boot-file test.cnf;

                            tftp-server 20.1.1.1;

                            option 66 ip-address 20.1.1.1;

                        }

     

     

     



  • 3.  RE: Enabling DHCP option 66

    Posted 03-19-2018 08:08

    Please forgive my ignorance, but I am not familiar with converting that format into something "usable"

     

    How would I go about setting things up that way?



  • 4.  RE: Enabling DHCP option 66
    Best Answer

     
    Posted 03-19-2018 08:32

    You can paste the syntax as it is using "load merge terminal relative" at the CLI.

    or here is the display set output:

     

    labroot@re0> show configuration access address-assignment pool dhcpv4 | display set
    set access address-assignment pool dhcpv4 family inet network x.x.x.x/x
    set access address-assignment pool dhcpv4 family inet range 1 low x.x.x.x
    set access address-assignment pool dhcpv4 family inet range 1 high x.x.x.x
    set access address-assignment pool dhcpv4 family inet dhcp-attributes router x.x.x.x
    set access address-assignment pool dhcpv4 family inet dhcp-attributes tftp-server x.x.x.x
    set access address-assignment pool dhcpv4 family inet dhcp-attributes option 66 ip-address x.x.x.x

     

     



  • 5.  RE: Enabling DHCP option 66

    Posted 03-19-2018 08:46

    Thank you so much! Is that addding to my current configuration, or replacing it? 



  • 6.  RE: Enabling DHCP option 66

     
    Posted 03-19-2018 09:03

    Add the following to you existing pool(s) configuration:

     

    #set access address-assignment pool <pool_name> family inet dhcp-attributes tftp-server <ip_addr> option 66 ip-address <ip_addr>

     

    For instance:

    set access address-assignment pool EAST-POOL family inet dhcp-attributes tftp-server <ip_addr> option 66 ip-address <ip_addr>

     



  • 7.  RE: Enabling DHCP option 66

    Posted 03-19-2018 09:18

    Does it need to be an IP address to work, or could I use a URL?



  • 8.  RE: Enabling DHCP option 66

     
    Posted 03-19-2018 09:27
    you need to input ip_address for opt 66. For URL, you need to create/configure it & place it boot file. dhcp-attributes { boot-file test.cnf; https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-statement/boot-file-edit-access.html


  • 9.  RE: Enabling DHCP option 66

    Posted 03-19-2018 09:31

    Thank you so much! I will try that out.



  • 10.  RE: Enabling DHCP option 66

    Posted 03-27-2018 11:22

    That worked! 

     

    Is there a way to make the same thing work with a URL instead of an IP address? I tried 

    set access address-assignment pool dhcpv4 family inet dhcp-attributes option 66 hostname

     

    but that gave a syntax error, is there a different flag? I couldnt find anything in google?



  • 11.  RE: Enabling DHCP option 66

    Posted 03-27-2018 12:04

    UPDATE for anyone looking at this in the future:

     

    I got it to work using

     

    set access address-assignment pool dhcpv4 family inet dhcp-attributes option 66 hostname  string *url*