Tuesday, September 1, 2015

Juniper DHCP Server Configuration

We already configure our QEMU in GNS3 and run our vSRX Router. Now its time to configure DHCP server in our vSRX router. Lets began.
Logical Diagram for this tutorial

To configure DHCP server

Assign Lowest and highest IP range
root# set system services dhcp pool address-range low high

Assign DNS server (in my case I had used Router interface IP)
root# set system services dhcp pool name-server

Assign IP address of the router
root# set system services dhcp pool router

Assign the lease time
root# set system services dhcp pool default-lease-time 3600

Assign DHCP as an allowed inbound service for the interface which we are going to enable DHCP.

root# set security zones security-zone untrust interfaces ge-0/0/1 host-inbound-traffic system-services dhcp

Assign IP address to the client faced interface.
root# set interfaces ge-0/0/1 unit 0 family inet address

Check our client get the IP Address from the server.

How to statically assign IP with fixed MAC address

root#set system service dhcp static-binding 00:50:79:66:68:00 fixed-address

PC1>show ip

Request DHCP IP

PC1>dhcp -d



Post a Comment