Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titledhcp server config on QFX
collapsetrue
delete interfaces xe-0/0/0 unit 0 family inet dhcp
set interfaces xe-0/0/0 unit 0 family inet address 12.0.1.110/24

set routing-instances dhcpserv_ri description "local dhcp server vrouter"
set routing-instances dhcpserv_ri instance-type virtual-router
set routing-instances dhcpserv_ri system services dhcp-local-server group g1 interface xe-0/0/0.0
set routing-instances dhcpserv_ri access address-assignment pool p1 family inet network 11.0.1.0/24
set routing-instances dhcpserv_ri access address-assignment pool p1 family inet range r1 low 11.0.1.100
set routing-instances dhcpserv_ri access address-assignment pool p1 family inet range r1 high 11.0.1.200
set routing-instances dhcpserv_ri access address-assignment pool p1 family inet dhcp-attributes domain-name jlknet1
set routing-instances dhcpserv_ri access address-assignment pool p1 family inet dhcp-attributes name-server 11.0.1.11
set routing-instances dhcpserv_ri access address-assignment pool p1 family inet dhcp-attributes router 11.0.1.11

set routing-instances dhcpserv_ri interface xe-0/0/0.0
set routing-instances dhcpserv_ri routing-options static route 11.0.1.0/24 next-hop 12.0.1.111


vagrant@vqfx2> show dhcp server binding routing-instance dhcpserv_ri detail

Client IP Address:  11.0.1.100
     Hardware Address:             08:00:27:da:9c:47
     State:                        BOUND(LOCAL_SERVER_STATE_BOUND)
     Protocol-Used:                DHCP
     Lease Expires:                2018-09-21 09:39:26 UTC
     Lease Expires in:             86077 seconds
     Lease Start:                  2018-09-20 09:39:26 UTC
     Last Packet Received:         2018-09-20 09:39:26 UTC
     Incoming Client Interface:    xe-0/0/1.0
     Server Identifier:            12.0.1.110
     Bootp Relay Address:          11.0.1.11
     Session Id:                   3
     Client Pool Name:             p1

{master:0}
vagrant@vqfx2>




vagrant@vqfx2> show dhcp server statistics routing-instance dhcpserv_ri
Packets dropped:
    Total                      0

Offer Delay:
    DELAYED                    0
    INPROGRESS                 0
    TOTAL                      0

Messages received:
    BOOTREQUEST                9
    DHCPDECLINE                0
    DHCPDISCOVER               3
    DHCPINFORM                 0
    DHCPRELEASE                0
    DHCPREQUEST                6
    DHCPLEASEQUERY             0
    DHCPBULKLEASEQUERY         0

Messages sent:
    BOOTREPLY                  9
    DHCPOFFER                  3
    DHCPACK                    5
    DHCPNAK                    1
    DHCPFORCERENEW             0
    DHCPLEASEUNASSIGNED        0
    DHCPLEASEUNKNOWN           0
    DHCPLEASEACTIVE            0
    DHCPLEASEQUERYDONE         0

{master:0}
vagrant@vqfx2>


...