Client:
Code Block | ||||||
---|---|---|---|---|---|---|
| set interfaces xe-0/0/2 unit 0 family inet dhcp vendor-id Juniper-qfx10002-72q
||||||
DHCP Relay:
...
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
...
:
...
Server:
Code Block | ||||||
---|---|---|---|---|---|---|
| set interfaces xe-0/0/1 unit 0 family inet address 10.120.35.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 9.9.9.0/24
set routing-instances dhcpserv_ri access address-assignment pool p1 family inet range r1 low 9.9.9.100
set routing-instances dhcpserv_ri access address-assignment pool p1 family inet range r1 high 9.9.9.200
set routing-instances dhcpserv_ri access address-assignment pool p1 family inet dhcp-attributes name-server 9.9.9.1
set routing-instances dhcpserv_ri interface xe-0/0/1.0
set routing-instances dhcpserv_ri routing-options static route 9.9.9.0/24 next-hop 10.120.35.1
||||||