petak, 14. veljače 2014.

Configure static network IP on Raspberry Pi

Configure static network IP on Raspberry Pi
Raspian - Debian


Basic vi commands:

i  - insert text before cursor, until hit
I  - insert text at beginning of current line, until hit
a  - append text after cursor, until hit
:wq - quit vi, writing out modified file to file named in original invocation

http://www.lagmonster.org/docs/vi.html
 

----------------------------

$ sudo vi /etc/network/interfaces

----------------------------

auto lo

iface lo inet loopback
iface eth0 inet static

address 192.168.1.16    (your Raspberry Pi static IP)
netmask 255.255.255.0
gateway 192.168.1.1

allow-hotplug wlan0
iface default inet dhcp

----------------------------
Restart network:

$ sudo /etc/init.d/networking restart

----------------------------
Reboot your Rasberry Pi:

$ sudo shutdown -r now

----------------------------

Nema komentara:

Objavi komentar