Networking Flashcards

1
Q

change hostname

A

Method 1
edit /etc/hostname
sudo systemctl restart systemd-hostnamed

Method 2
sudo hostnamectl set-hostname server1.example.com

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

Where are protocols defined?

A

/etc/protocols

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

where are well-known ports defined?

A

/etc/services

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

where are connection configuration files located

A

/etc/sysconfig/network-scripts

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

activate and deactivate a network conneciton

A

sudo ifdown enp0s8
sudo ifup enp0s8

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

With network manager show connections

A

nmcli c s
Connection and Show
abridged like cisco routers

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

With network manager bring down/up a connection

A

sudo nmcli c down enp0s8
sudo nmcli c up enp0s8

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

Network manager - show status of all devices

A

nmcli d s

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

what is the network manager’s service name

A

NetworkManager
sudo systemctl status NetworkManager

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