User Tools

Site Tools


configure_static_ip_address

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
configure_static_ip_address [2016/07/23 21:45] – created walkeradminconfigure_static_ip_address [2016/07/25 00:13] walkeradmin
Line 1: Line 1:
-===== Configure Static IP Address =====+====== Configure Static IP Address ======
 \\  \\ 
 Raspbian Jesse changed the way a static IP Address is configured. The static IP settings are now held in a file located in the //**/etc**// directory called //**dhcpcd.conf**// Raspbian Jesse changed the way a static IP Address is configured. The static IP settings are now held in a file located in the //**/etc**// directory called //**dhcpcd.conf**//
Line 6: Line 6:
 To edit the dhcpcd.conf file, enter: To edit the dhcpcd.conf file, enter:
 \\  \\ 
-//**sudo /etc/dhcpcd.conf**//+        sudo /etc/dhcpcd.conf
 \\  \\ 
 \\  \\ 
Line 12: Line 12:
 \\  \\ 
 \\  \\ 
-//**eth0 +    eth0 
-\\ static ip_address=192.168.1.14/24 +        static ip_address=192.168.1.14/24 
-\\ static routers=192.168.1.1 +        static routers=192.168.1.1 
-\\ static domain_name_servers=192.168.1.4**//+        static domain_name_servers=192.168.1.4
 \\  \\ 
 +Save the file.
 \\  \\ 
-Save and reboot. 
 \\  \\ 
 +To enable the changes you can either restart the network service:
 \\  \\ 
 +        sudo /etc/init.d/networking restart
 +\\
 +Or you can simply reboot:
 +\\ 
 +        sudo reboot
 +\\ 
 +\\ 
 +
  
configure_static_ip_address.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1