configure_static_ip_address
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
configure_static_ip_address [2016/07/24 14:22] – walkeradmin | configure_static_ip_address [2023/03/09 22:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
\\ | \\ | ||
Raspbian Jesse changed the way a static IP Address is configured. The static IP settings are now held in a file located in the // | Raspbian Jesse changed the way a static IP Address is configured. The static IP settings are now held in a file located in the // | ||
- | \\ | ||
\\ | \\ | ||
To edit the dhcpcd.conf file, enter: | To edit the dhcpcd.conf file, enter: | ||
\\ | \\ | ||
- | //**sudo / | + | |
- | \\ | + | |
\\ | \\ | ||
At the end of the file add the following lines (with your own IP Address values) | At the end of the file add the following lines (with your own IP Address values) | ||
\\ | \\ | ||
\\ | \\ | ||
- | //**eth0 | + | |
- | \\ static ip_address=192.168.1.14/ | + | static ip_address=192.168.1.14/ |
- | \\ 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. | ||
+ | \\ | ||
+ | \\ | ||
+ | To enable the changes you can either restart the network service: | ||
\\ | \\ | ||
+ | sudo / | ||
+ | \\ | ||
+ | Or you can simply reboot: | ||
\\ | \\ | ||
- | Save and reboot. | + | sudo reboot |
\\ | \\ | ||
\\ | \\ | ||
+ | |||
configure_static_ip_address.1469366570.txt.gz · Last modified: 2023/03/09 22:35 (external edit)