Routing

last person joined: 4 days ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  how to configure DHCP server on MX 960

    Posted 03-10-2016 00:34
      |   view attached

     

    Hi Guys,

    i need help on how to set up DHCP server on MX 960 (i have attached "show chassis hardware" output).

     

    i tried following this link : 

    Example: Complete DHCP Server Configuration

    http://www.juniper.net/documentation/en_US/junos15.1/topics/example/dhcp-complete-configuration-statements.html

     

    when i go under "sysytem services" i dont see "DHCP" hierarchy, i see

     

    " -re0# edit system services dhcp-?
    Possible completions:
    > dhcp-local-server Dynamic Host Configuration Protocol server configuration
    > dhcp-proxy-client Dynamic Host Configuration Protocol Proxy client configuration

     

    under dhcp-local-server, i dont see POOL, but i see "pool-match-order".

    is there another way of doing it?? i tried defining the pools under address assignemnt , but unfortunately it says it requires license for "adress assignment".

     

    i just want to use the MX to give IPs via DHCP to our clients. i will appreciate any help. thank you guys.

    Attachment(s)

    txt
    chasis hardware.txt   2 KB 1 version


  • 2.  RE: how to configure DHCP server on MX 960
    Best Answer

    Posted 03-10-2016 06:37

    Hello,

    Here is the working config for MX:

     

    access {
        address-assignment {
            pool P1 {
                family inet {
                    network 192.168.1.0/24;
                    range R1 {
                        low 192.168.1.15;
                        high 192.168.1.250;
                    }
                    dhcp-attributes {
                        name-server {
                            8.8.4.4;
                        }
                        router {
                            192.168.1.1;
                        }
                    }
                }
            }
        }
    }
    interfaces {
        ge-0/0/0 {
            unit 0 {
                family inet {
                    address 192.168.1.1/24;
                }
            }
    	}
    }
    system {
        services {
            dhcp-local-server {
                group G1 {
                    interface ge-0/0/0.0;
                }
            }

    Don't forget to allow DHCP in Your lo0.0 filter.

    You should have a free 1000-user license installed on Your MX960.

    The commit check does give You a warning but does not prevent the commit as below:

     

    [edit access]
      'address-assignment'
        warning: requires 'subscriber-address-assignment' license
    configuration check succeeds

    HTH

    Thx

    Alex



  • 3.  RE: how to configure DHCP server on MX 960

    Posted 03-10-2016 22:25

    Hi Alex,

     

    Thank you for you help. followed your solution and its working.

     

    Sheeel.



  • 4.  RE: how to configure DHCP server on MX 960

    Posted 10-10-2016 02:26

    Hi Aarseniv / All,

     

    I'm try using config as per below but not work. The diffrenet is the physical interface was diffrent ip address with pool segment and im using logical interace such as ae0.59.

     

    The gateway from segment gateway just relay to this MX.

     

    Thanks and appreciate your feedback

     

     

    interfaces {
        ge-0/0/0 {
            unit 0 {
                family inet {
                    address 192.168.1.1/24;
                }
            }
    	}
    }
    system {
        services {
            dhcp-local-server {
                group G1 {
                    interface ge-0/0/0.0;
                }
            }