Networking (continued) Flashcards

1
Q

what does the file /etc/network/interfaces contain?

A

it contains network interface configuration info for ifup and ifdown commands. this is also where you configure how your system is connected to the network.

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

what command can I use to configure network service to services at boot?

A

command : systemctl

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

what is the syntax for the command : systemctl?

A

systemctl [options…] COMMMAND[UNIT….]

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

How would I configure a http service to start at boot?

A

systemctl enable apache2

or more generally

systemctl enable ‘service’

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

how would I configure the network card or specific connection to start at boot ?

A
  1. I use the command: nmcli
  2. $ nmcli connection modify [connection name eg eth01] connection.autoconnect yes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

how would i show what connections are active?

A

nmcli connection show –active

also great for getting the connection name

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

what is one way to look up the current kernel IP routing table?

A

netstat -r

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