Figure 70. Humidity sensor example
Configure Ethernet
Steps
1. The Ethernet cards function in DHCP client mode by default. Use the
$ip addr
command to confirm.
NOTE:
The Ethernet card names for port1, port2, and port3 are
enp3s0
,
enp0s29f1
, and
enp0s29f2
, respectively.
2. To set up a static IP address, use the following commands:
a.
nmcli con down <connection name >
b.
nmcli con mod <connection name> ipv4.addresses <xx.xx.xx.xx>/24
c.
nmcli con mod <connection name> ipv4.gateway <xx.xx.xx.xx>
d.
nmcli con mod <connection name> ipv4.dns <xx.xx.xx.xx>
e.
nmcli con mod <connection name> ipv4.method manual
f.
nmcli con up <connection name>
3. To roll back to dynamic IP by DHCP, use the following commands:
a.
nmcli con down <connection name>
b.
nmcli con mod <connection name> ipv4.method auto
c.
nmcli con up <connection name>
NOTE:
port2 and port3 ETH PHY LED have different definitions when the ports are assigned to Ubuntu than when they
are assigned to Intel PSE. Make this selection under the BIOS menu by clicking
Chipset
>
PSE Configuration
>
GBE0
or
GBE1
. GBE0 is port2 and the GBE1 is port3. When
Host owned with pin muxed
is selected, the port is assigned to
Ubuntu.
Setting Up the Ubuntu Operating System
71