The FP Internal scanner uses cloud-init to get it’s IP address configuration.
Reference: https://netplan.io/examples
The FP Internal Scanner appliance uses the: /etc/netplan/60-coda-init.yaml file. In order to set the static IP you need to edit it.
In order to check current netplan configuration you can run:
sudo netplan get
Default configuration should be using DHCP, if you would like to revert to DHCP then this is the file structure:
network: version: 2 ethernets: eth0: dhcp4: true
If changes are required then please edit the /etc/netplan/60-coda-init.yaml:
sudo nano /etc/netplan/60-cloud-init.yaml
Change the existing config to the following structure:
Note: to edit in vi you need to press INSERT Key or CTRL + i
network: version: 2 ethernets: eth0: addresses: - 192.168.159.166/24 nameservers: addresses: [192.168.159.1, 8.8.8.8] routes: - to: default via: 192.168.159.1
Save the file by pressing ESC Key + :wq
To apply the new configuration after you have edited the file please initiate a netplan try/apply.
sudo netplan try sudo netplan apply
References and Notes [Optional]:
Note: YAML is strict about indentation so if needed you may validate your file using this link: https://yamlchecker.com/
Also note netplan application priority:
Netplan's configuration files use the YAML format. All /{lib,etc,run}/netplan/*.yaml are considered. Lexicographically later files (regardless of in which directory they are) amend (new mapping keys) or override (same mapping keys) previous ones. A file in /run/netplan completely shadows a file with same name in /etc/netplan, and a file in either of those directories shadows a file with the same name in /lib/netplan.
Comments
0 comments
Please sign in to leave a comment.