[BL training-materials-updates] U-Boot: configure the network through nmcli

Michael Opdenacker michael.opdenacker at bootlin.com
Wed Oct 3 18:06:16 CEST 2018


Repository : git://git.free-electrons.com/training-materials.git
On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=bee06a9736f0ca0650956b9a81c181602e662022

>---------------------------------------------------------------

commit bee06a9736f0ca0650956b9a81c181602e662022
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Wed Oct 3 18:06:16 2018 +0200

    U-Boot: configure the network through nmcli
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


>---------------------------------------------------------------

bee06a9736f0ca0650956b9a81c181602e662022
 labs/sysdev-u-boot/network-config-2.png | Bin 20455 -> 0 bytes
 labs/sysdev-u-boot/network-config-3.png | Bin 43490 -> 0 bytes
 labs/sysdev-u-boot/sysdev-u-boot.tex    |  35 ++++++++++++++------------------
 3 files changed, 15 insertions(+), 20 deletions(-)

diff --git a/labs/sysdev-u-boot/network-config-2.png b/labs/sysdev-u-boot/network-config-2.png
deleted file mode 100644
index 228eeaf..0000000
Binary files a/labs/sysdev-u-boot/network-config-2.png and /dev/null differ
diff --git a/labs/sysdev-u-boot/network-config-3.png b/labs/sysdev-u-boot/network-config-3.png
deleted file mode 100644
index c350d48..0000000
Binary files a/labs/sysdev-u-boot/network-config-3.png and /dev/null differ
diff --git a/labs/sysdev-u-boot/sysdev-u-boot.tex b/labs/sysdev-u-boot/sysdev-u-boot.tex
index 036626d..fab212c 100644
--- a/labs/sysdev-u-boot/sysdev-u-boot.tex
+++ b/labs/sysdev-u-boot/sysdev-u-boot.tex
@@ -305,29 +305,24 @@ wired connection to the network, your instructor will provide you with
 a USB Ethernet adapter. A new network interface should appear on your
 Linux system.
 
-To configure this network interface on the workstation side, click on
-the {\em Network Manager} tasklet on your desktop, and select {\em
-  Edit Connections}.
-
-Select {\em Wired connection 1} and press the {\em Edit} button.
-
-\begin{center}
-\includegraphics[width=5cm]{labs/sysdev-u-boot/network-config-2.png}
-\end{center}
+Find the name of this interface by typing:
+\begin{verbatim}
+ifconfig -a
+\end{verbatim}
 
-In the \code{IPv4 Settings} tab, choose the \code{Manual} method
-to make the interface use a static IP address, like \code{192.168.0.1}
-(of course, make sure that this address belongs to a separate network
-segment from the one of the main company network).
+The network interface name is likely to be
+\code{enxxx}\footnote{Following the {\em Predictable Network Interface
+Names} convention:
+\url{https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/}}.
+If you have a pluggable Ethernet device, it's easy to identify as it's
+the one that shows up after pluging in the device.
 
-\begin{center}
-\includegraphics[width=5cm]{labs/sysdev-u-boot/network-config-3.png}
-\end{center}
+Then, instead of configuring the host IP address from NetWork Manager’s graphical interface,
+let’s do it through its command line interface, which is so much easier to use:
 
-You can use \code{24} as \code{Netmask}, and leave the
-\code{Gateway} field untouched (if you click on the \code{Gateway} box, you
-will have to type a valid IP address, otherwise you won't be allowed to
-click on the \code{Save} button).
+\begin{verbatim}
+nmcli con add type ethernet ifname en... ip4 192.168.0.1/24
+\end{verbatim}
 
 Now, configure the network on the board in U-Boot by setting the \code{ipaddr}
 and \code{serverip} environment variables:




More information about the training-materials-updates mailing list