Configure Networking from the Command Line Flashcards

1
Q

What command displays the network interface associated with a MAC address?

A

ip link

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

What command displays only the active connections?

A

nmcli con show –active

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

What command displays all configuration settings for the active connection?

A

nmcli con show “Connection name”

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

What command show the device status?

A

nmcli dev status

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

What command displays the settings for an interface?

A

nmcli dev show enX

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

What command creates a static connection with the same setting as the active connection?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you activate the new connection?

A

nmcli con up <new></new>

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

How do you disable the original connection to not start at boot?

A

nmcli con mod “Original Connection” connection.autoconnect no

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