Configure Networking from the Command Line Flashcards
What command displays the network interface associated with a MAC address?
ip link
What command displays only the active connections?
nmcli con show –active
What command displays all configuration settings for the active connection?
nmcli con show “Connection name”
What command show the device status?
nmcli dev status
What command displays the settings for an interface?
nmcli dev show enX
What command creates a static connection with the same setting as the active connection?
nmcli con add con-name static-addr ifname eth0 type ethernet ipv4/method manual ipv4.dns 172.25.250.220 ipv4.addresses 172.25.250.1/24 ipv4.gateway 172.25.250.254
How do you activate the new connection?
nmcli con up <new></new>
How do you disable the original connection to not start at boot?
nmcli con mod “Original Connection” connection.autoconnect no