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

From MyWiki
Jump to: navigation, search
 
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>
 
iface eth0 inet static<br>
address 192.168.1.81<br>
+
address 192.168.0.253<br>
 
netmask 255.255.255.0<br>
 
netmask 255.255.255.0<br>
network 192.168.1.0<br>
+
network 192.168.0.0<br>
 
broadcast 192.168.1.255<br>
 
broadcast 192.168.1.255<br>
gateway 192.168.1.254<br>
+
gateway 192.168.0.1<br>

Latest revision as of 12:58, 6 March 2015

Set something like below in /etc/network/interfaces

iface eth0 inet static
address 192.168.0.253
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.1.255
gateway 192.168.0.1