EasyManua.ls Logo

EDA ED-HMI2120-101C - Configuring IP by Using the Dhcpcd Tool

Default Icon
79 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5 Configuring System
ED-HMI2120-101C User Manual 5-17
Set the IP to automatic mode
Execute the following command to set the way of obtaining IP address to automatic mode.
sudo nmcli connection modify <name> ipv4.method auto
5.4.2 Configuring IP by Using The dhcpcd Tool
Since NetworkManager is enabled on the Desktop and Lite of operating systems by default. If you
need to switch to using the dhcpcd tool for configuration, you need to stop and disable the
NetworkManager service and enable the dhcpcd service before configuration.
Steps:
1. Execute the following command to stop the NetworkManager service.
sudo systemctl stop NetworkManager
2. Execute the following command to disable the NetworkManager service.
sudo systemctl disable NetworkManager
3. Execute the following command to enable the dhcpcd service.
sudo systemctl enable dhcpcd
4. Execute the following command to restart the device.
sudo reboot
5. Execute the following command to open the /etc/dhcpcd.conf file.
sudo nano /etc/dhcpcd.conf
6. Add the following content at the end of the /etc/dhcpcd.conf file.
interface eth0
static ip_address=192.168.168.210/24
static routers=192.168.168.1
static domain_name_servers=192.168.168.1 8.8.8.8 fd51:42f8:caae:d92e::1
eth0 is the Ethernet port of the IP to be configured;
192.168.0.10/24 indicates the IP address and subnet mask to be configured;

Table of Contents