Juniper Labs DHCP Server (lr3)
Adding ge-0/0/4
to Logical System LR3
To connect an external device (in this case, an ARM64 SBC) on interface ge-0/0/4
, we need a DHCP server. We’ll configure a /30
DHCP pool that hands out a single IP address via DHCP. 😊
Configure DHCP Server
1. Enable DHCP on ge-0/0/4
# Assign ge-0/0/4 to the DHCP‐local‐server group
set system services dhcp-local-server group dhcp interface ge-0/0/4
2. Define the DHCP Pool (/30
subnet)
# Create a pool named “dhcp” for 10.0.4.0/30
set access address-assignment pool dhcp family inet network 10.0.4.0/30
# Only one usable address in this /30: .2
set access address-assignment pool dhcp family inet range dhcp low 10.0.4.2
set access address-assignment pool dhcp family inet range dhcp high 10.0.4.2
3. Configure DHCP Attributes
# DNS servers
set access address-assignment pool dhcp family inet dhcp-attributes name-server 8.8.8.8
set access address-assignment pool dhcp family inet dhcp-attributes name-server 8.8.4.4
# Default gateway (router)
set access address-assignment pool dhcp family inet dhcp-attributes router 10.0.4.1
Validation
-
Connect your DHCP-client device to port
ge-0/0/4
-
Check the DHCP binding on the ACX1100:
lr3@acx1100:lr3> show dhcp server binding IP address Session Id Hardware address Expires State Interface 10.0.4.2 1 6e:6a:c9:b9:01:80 86365 BOUND ge-0/0/4.0
-
Ping the leased address to confirm connectivity:
lr3@acx1100:lr3> ping count 3 10.0.4.2 PING 10.0.4.2 (10.0.4.2): 56 data bytes 64 bytes from 10.0.4.2: icmp_seq=0 ttl=64 time=1.231 ms 64 bytes from 10.0.4.2: icmp_seq=1 ttl=64 time=1.217 ms 64 bytes from 10.0.4.2: icmp_seq=2 ttl=64 time=1.291 ms --- 10.0.4.2 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 1.217/1.246/1.291/0.032 ms