Difference between revisions of "Set a static IP address for PI."

From MyWiki
Jump to: navigation, search
(Created page with "Set something like below in /etc/network/interfaces<br><br> address 192.168.1.81<br> netmask 255.255.255.0<br> network 192.168.1.0<br> broadcast 192.168.1.255<br> gateway 192....")
 
Line 1: Line 1:
 
Set something like below in /etc/network/interfaces<br><br>
 
Set something like below in /etc/network/interfaces<br><br>
 +
iface eth0 inet static<br>
 
address 192.168.1.81<br>
 
address 192.168.1.81<br>
 
netmask 255.255.255.0<br>
 
netmask 255.255.255.0<br>

Revision as of 12:58, 6 March 2015

Set something like below in /etc/network/interfaces

iface eth0 inet static
address 192.168.1.81
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.254