Manage Networking Flashcards

1
Q

What command do you use to configure a new connection to start automatically?

A

nmcli con mod “Connection String” connection.autoconnect yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What command do you use to stop a connection from starting automatically?

A

nmcli con mod “Connection String” connection.autoconnect no

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What command do you use to add IP address to an existing connection?

A

nmcli con mode “connection string” +ipv4.addresses <IP address/XX>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What command do you use to edit the configuration file to add a second address to a system connection?

A

vim /etc/NetworkManager/system-connections/<String>.nmconnection</String>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What command do you use to edit the hosts file to reference and IP address with a specified hosts name?

A

echo “<IP> <hosts>" >> /etc/hosts</hosts></IP>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly