...
Code Block | ||||
---|---|---|---|---|
| ||||
set routing-instances vrouter1 instance-type virtual-router set routing-instances vrouter1 interface xe-0/0/0.0 set routing-instances vrouter1 interface xe-0/0/2.0 set routing-instances vrouter1 forwarding-options dhcp-relay server-group relaygrp 10.120.35.110 set routing-instances vrouter1 forwarding-options dhcp-relay active-server-group relaygrp set routing-instances vrouter1 forwarding-options dhcp-relay group toclient interface xe-0/0/0.0 vagrant@vqfx2> show dhcp relay binding routing-instance vrouter1 detail Client IP Address: 9.9.9.100 Hardware Address: 02:05:86:71:95:0b State: BOUND(RELAY_STATE_BOUND) Lease Expires: 2018-09-20 15:26:00 UTC Lease Expires in: 86244 seconds Lease Start: 2018-09-19 15:26:00 UTC Last Packet Received: 2018-09-19 15:26:00 UTC Incoming Client Interface: xe-0/0/0.0 Server Ip Address: 10.120.35.110 Server Interface: none Bootp Relay Address: 9.9.9.1 Session Id: 1 vagrant@vqfx2> show dhcp relay statistics routing-instance vrouter1 Packets dropped: Total 0 Messages received: BOOTREQUEST 2 DHCPDECLINE 0 DHCPDISCOVER 1 DHCPINFORM 0 DHCPRELEASE 0 DHCPREQUEST 1 DHCPLEASEACTIVE 0 DHCPLEASEUNASSIGNED 0 DHCPLEASEUNKNOWN 0 DHCPLEASEQUERYDONE 0 Messages sent: BOOTREPLY 2 DHCPOFFER 1 DHCPACK 1 DHCPNAK 0 DHCPFORCERENEW 0 DHCPLEASEQUERY 0 DHCPBULKLEASEQUERY 0 |
Server:
Code Block | ||||
---|---|---|---|---|
| ||||
delete interfaces xe-0/0/1 unit 0 family inet dhcp set interfaces xe-0/0/1 unit 0 family inet address 1012.1200.351.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/1.0 set routing-instances dhcpserv_ri access address-assignment pool p1 family inet network 911.90.91.0/24 set routing-instances dhcpserv_ri access address-assignment pool p1 family inet range r1 low 911.90.91.100 set routing-instances dhcpserv_ri access address-assignment pool p1 family inet range r1 high 911.90.91.200 set routing-instances dhcpserv_ri access address-assignment pool p1 family inet dhcp-attributes name-server 911.90.91.111 set routing-instances dhcpserv_ri interface xe-0/0/1.0 set routing-instances dhcpserv_ri routing-options static route 911.90.91.0/24 next-hop 1012.1200.351.1 vagrant@vqfx3>vagrant@vqfx2> show dhcp server binding routing-instance dhcpserv_ri detail Client IP Address: 911.90.91.100 Hardware Address: 0208:0500:8627:71da:959c:0b47 State: BOUND(LOCAL_SERVER_STATE_BOUND) Protocol-Used: DHCP Lease Expires: 2018-09-2021 1509:39:26:02 UTC Lease Expires in: 8617886077 seconds Lease Start: 2018-09-1920 1509:39:26:01 UTC Last Packet Received: 2018-09-1920 1509:39:26:02 UTC Incoming Client Interface: xe-0/0/1.0 Server Identifier: 1012.1200.351.110 Bootp Relay Address: 911.90.91.111 Session Id: 13 Client Pool Name: p1 {master:0} vagrant@vqfx2> vagrant@vqfx3> vagrant@vqfx2> show dhcp server statistatistics routing-instance dhcpserv_ri Packets dropped: Total 0 Offer Delay: DELAYED 0 INPROGRESS 0 TOTAL 0 Messages received: BOOTREQUEST 29 DHCPDECLINE 0 DHCPDISCOVER 13 DHCPINFORM 0 DHCPRELEASE 0 DHCPREQUEST 16 DHCPLEASEQUERY 0 DHCPBULKLEASEQUERY 0 Messages sent: BOOTREPLY 29 DHCPOFFER 13 DHCPACK 15 DHCPNAK 01 DHCPFORCERENEW 0 DHCPLEASEUNASSIGNED 0 DHCPLEASEUNKNOWN 0 DHCPLEASEACTIVE 0 DHCPLEASEQUERYDONE 0 {master:0} vagrant@vqfx2> |