Statisk ip och gateway raspberry pi: Difference between revisions
Jump to navigation
Jump to search
Linuxwiki>Wikiadmin Skapade sidan med 'För att sätta statisk IP adress och gateway i raspberry pi, redigera filen '''/etc/dhcpcd.conf''': Exempel: '''interface eth0''' '''static ip_address=192.168.10.2/24''' '''static routers=192.168.10.1''' '''static domain_name=8.8.8.8''' Category:nätverk Category:raspberry' |
Linuxwiki>Wikiadmin No edit summary |
||
| Line 7: | Line 7: | ||
'''static routers=192.168.10.1''' | '''static routers=192.168.10.1''' | ||
'''static domain_name=8.8.8.8''' | '''static domain_name=8.8.8.8''' | ||
Filen '''/etc/network/interfaces''' skall inte innehålla någon information som hanteras ovan. | |||
[[Category:nätverk]] | [[Category:nätverk]] | ||
[[Category:raspberry]] | [[Category:raspberry]] | ||
Revision as of 13:47, 21 February 2022
För att sätta statisk IP adress och gateway i raspberry pi, redigera filen /etc/dhcpcd.conf:
Exempel:
interface eth0 static ip_address=192.168.10.2/24 static routers=192.168.10.1 static domain_name=8.8.8.8
Filen /etc/network/interfaces skall inte innehålla någon information som hanteras ovan.