Configuring DHCP and Static IP on Raspberry Pi Ethernet

In order to configure Ethernet DHCP on Raspberry Pi:

Open /etc/network/interfaces through any text editor:

and modify anything related to iface eth0

iface eth0 inet dhcp

For getting a static IP Address on ethernet:

iface eth0 inet static

address 192.168.1.4

netmask 255.255.255.0

gateway 192.168.1.1

The above changes will assign an ip address of 192.168.1.4 to eth0 interface of Raspberry pi


Comments

Popular posts from this blog

bb.utils.contains yocto

Difference between RDEPENDS and DEPENDS in Yocto

PR, PN and PV Variable in Yocto