SRX

 View Only
last person joined: 21 hours ago 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  Disable DHCP on SRX320

    Posted 10-08-2021 09:10
    Edited by emacdermid 10-08-2021 13:11

    Greetings Community,

    How to disable DHCP service on SRX320, and allow IRB.0 ports use Windows server DHCP.


    Thanks 
    FA



  • 2.  RE: Disable DHCP on SRX320

    Posted 10-20-2021 16:29
    Go under config > edit system services > del dhcp > commit


  • 3.  RE: Disable DHCP on SRX320

    Posted 10-21-2021 12:12
    Greetings,

    Excuses me, I am new to Juniper.

    Is this from CLI or JWeb?

     Thanks

    ------------------------------
    FA
    ------------------------------



  • 4.  RE: Disable DHCP on SRX320

    Posted 10-21-2021 14:24
    Juniper uses mostly the CLI, and most of the help you're likely to get will favor CLI, so it's worth learning. So you'd login using the console cable like this on my SRX-345 and do:
    Login: root
    Password:
    Last login: Tue Oct 19 03:51:53 2021 from 10.1.10.3
    --- JUNOS 15.1X49-D45 built 2016-04-25 07:29:58 UTC
    root@routername% cli
    
    root@routername> configure 
    Entering configuration mode
    
    [edit]
    root@routername# edit system services 
    
    [edit system services]
    root@routername# show 
    ssh;
    web-management {
        http {
            interface ge-0/0/2.0;
        }
        https {
            system-generated-certificate;
            interface ge-0/0/2.0;
        }
    }
    dhcp {
        pool 100.64.205.0/24 {
            address-range low 100.64.205.5 high 100.64.205.250;
            name-server {
                1.1.1.1;
                8.8.8.8;
            }
            router {
                100.64.205.1;
            }
        }
    }
    
    [edit system services]
    root@routername# delete dhcp    
    root@routername# commit check
    if no errors then do
    root@routername# commit​


    hope that help.




  • 5.  RE: Disable DHCP on SRX320

    Posted 10-22-2021 08:48
    Good day,

    Your instructions was helpful for me,

    I noticed the configuration for the dhcp still exist after deleting the dhcp servics.

    In case I need to activate the dhcp agin what is the command I need to use.

     Thanks

    ------------------------------
    FA
    ------------------------------



  • 6.  RE: Disable DHCP on SRX320

    Posted 10-22-2021 14:47
    It won't stop answering DHCP requests until you commit your code, did you try that? You can see if there's any DHCP config left by doing:

    config
    edit system services
    show​

    You shouldn't see anything there about dhcp. If you want to add dhcp service in the future, do something like (change your IP's):
    config
    set system services dhcp pool 192.168.32.0/24 address-range low 192.168.32.100
    set system services dhcp pool 192.168.32.0/24 address-range high 192.168.32.254
    set system services dhcp pool 192.168.32.0/24 name-server 1.1.1.1
    set system services dhcp pool 192.168.32.0/24 name-server 8.8.8.8
    set system services dhcp pool 192.168.32.0/24 router 192.168.32.1
    commit check
    commit​

    The router part of the command means it will answer dhcp requests on the interface that you've already configured to be the gateway of 192.168.32.1, so make sure that's already set up on the interface you want to use.