Network Configuration Flashcards

1
Q

What command is used to show/manipulate routing, devices, policy routing and tunnels?

A

■ ip
■ usage: ip [options] object {command|help}
■ usage: ip addr show ens160
■ usage: ip -s link show ens160

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

What commands can be used to trace a path to a remote host?

A

■ traceroute (support UDP and ICMP)

■ tracepath

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

What command is used to report socket statistics?

A

■ ss

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

What are the ways in which NetworkManager can be accessed?

A

■ nmcli
■ nm-connection-editor
■ nmtui

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

How does NetworkManager see networking system?

A

■ device = network interface

■ connection = a configuration used by a device

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

What command is used to test DNS server connectivity?

A

■ host [server.domain]

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

What command is used to test host resolution with the /etc/hosts file?

A

■ getent hosts [hostname]

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

If DHCP is used, /etc/resolv.conf is automatically rewritten as interfaces are started, how is this prevented?

A

■ Add ‘PEERDNS=no’ to the interface configuration file

■ nmcli con mod [interfacename] ipv4.ignore-auto-dns yes

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

What command is used to check/edit the system hostname?

A

■ hostnamectl [status]

■ hostnamectl [systemhostname]

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