0

I'm working on Rasberry Pi board with Ubuntu OS but it's not detecting the LAN connection and am not getting an IP address when I type ifconfig.

I've added below code to /etc/netplan/01-config.yaml:

version: 2
  renderer: networkd
  ethernets:
    eth0:
      dhcp4: yes
      addresses: [192.168.0.1/24]
      gateway4: 192.168.0.1
      nameservers:
        addresses: [8.8.8.8, 1.1.1.1]

And executed the command dhclient etho but still I am not able to get an IP address, how can I solve this issue?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.