Manage Networking Flashcards
What command do you use to configure a new connection to start automatically?
nmcli con mod “Connection String” connection.autoconnect yes
What command do you use to stop a connection from starting automatically?
nmcli con mod “Connection String” connection.autoconnect no
What command do you use to add IP address to an existing connection?
nmcli con mode “connection string” +ipv4.addresses <IP address/XX>
What command do you use to edit the configuration file to add a second address to a system connection?
vim /etc/NetworkManager/system-connections/<String>.nmconnection</String>
What command do you use to edit the hosts file to reference and IP address with a specified hosts name?
echo “<IP> <hosts>" >> /etc/hosts</hosts></IP>