I'm working on Raspberry Pi board with Ubuntu OS but it's not detecting the LAN connection and I 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?