Setting up DHCPD on 5G NR Node

This tutorial how to setup DHCPD and NAT so that the UE can access the internet through the AP & NAT running on 5G NR simulating PI. This tutorial also describe how to setup the DHCPD to automatically allocated IPs to UE or PCs.

Key Aspects

  • Setup /etc/dhcp/dhcpd.conf.
  • Setup /etc/default/isc-dhcp-server
  • Setup /etc/systcl.conf
  • Setup /etc/dhcpcd.conf


Also the Kubedge team went through the process, it has not been documented yet. Still some example files are available bellow.


On the laptop, under the wifi icon, join a network xxx@kubedge network If the worker PI and the master PI are configured properly (dhcpd, network/eth0,pan0) the worker PI and master PI will acts as routers. The worker PI will provide the laptop with an IP address in the 192.168.0xx.0/255 range.

SSH to the node.

ssh 192.168.0xx.1 -l pirate

On your PC itself, open a command prompt or cygwin

ipconfig /all

Notice the IP address of the home router in the DNS server list

If the previous test is successful, the Name Server list should contain the IP and your home router, and you should be able to surf the internet.