Comptia Linuxxk0005 10 1 1 Configuring A Network Adapter
Comptia Linuxxk0005 10 1 1 Configuring A Network Adapter
Objectives:
1. Demonstrate how to set the IP address and netmask using the ip, ifconfig, and nmcli commands.
Additional resources used during the episode can be obtained using the download link on the overview episode.
Common commands
ifconfig
ip addr
NetworkManager (RHEL)
NetPlan (Ubuntu)
Assigning a static IP
Resetting connections
NetPlan advantages
Cloud Init
Configuration tests
Simple YAML configuration
Disable cloud-init
sudoedit /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
network: {config: disabled}
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: false
addresses: [10.0.222.101/16]
gateway4: 10.0.0.1
nameservers:
addresses: [8.8.8.8,8.8.4.4]