- Raspberry Pi 3 Cookbook for Python Programmers
- Tim Cox Dr. Steven Lawrence Fernandes
- 118字
- 2021-08-27 18:25:34
There's more...
You can configure the network settings by editing cmdline.txt in the BOOT partition and adding settings to the startup command line with ip.
The ip option takes the following form:
ip=client-ip:nfsserver-ip:gw-ip:netmask:hostname:device:autoconf
- The client-ip option is the IP address you want to allocate to Raspberry Pi
- The gw-ip option will set the gateway server address if you need to set it manually
- The netmask option will directly set the netmask of the network
- The hostname option will allow you to change the default raspberrypi hostname
- The device option allows you to specify a default network device if more than one network device is present
- The autoconf option allows the automatic configuration to be switched on or off