Red Hat Certified System Administration 8



Exercise 01: Managing Network Connections with nmcli

In this exercise you create a new connection and manage its status. This connection needs to be connected to a network device. In this exercise the device ens33 is used. If necessary, change this to the name of the network device in use on your computer.

  1. Create a new network connection by typing nmcli con add con-name dhcp type ethernet ifname ens33 ipv4.method auto.

  2. Create a connection with the name static to define a static IP address and gateway: nmcli con add con-name static ifname ens33 autoconnect no type ethernet ip4 10.0.0.10/24 gw4 10.0.0.1 ipv4.method manual. The gateway might not exist in your configuration, but that does not matter.

  3. Type nmcli con show to show the connections, and use nmcli con up static to activate the static connection. Switch back to the DHCP connection using nmcli con up dhcp.

In this exercise, you created network connections using nmcli con add. You can also change current connection properties by using nmcli con mod.


Eninam BAGNABANA     |         |     bagnadavid@outlook.fr     |