Configure ethernet with static address
Jump to navigation
Jump to search
- Enable predictable network names
- Enable predictable network names in the Network Options section of raspi-config
- Reboot
- Run ifconfig
- and note the names of the network interfaces
- Make sure dhcpcd service is running
- sudo service dhcpcd status
- if not, run
- sudo service dhcpcd start
- sudo systemctl enable dhcpcd
- Edit network configuration
- edit file
- sudo emacs /etc/dhcpcd.conf
- and modify eth0 section to include something like replacing eth0 with the interface names noted from ifconfig
- interface eth0
- static ip_address=192.168.192.204/24
- static routers=192.168.192.1
- static domain_name_servers=192.168.192.1