Networking (continued) Flashcards
what does the file /etc/network/interfaces contain?
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.
what command can I use to configure network service to services at boot?
command : systemctl
what is the syntax for the command : systemctl?
systemctl [options…] COMMMAND[UNIT….]
How would I configure a http service to start at boot?
systemctl enable apache2
or more generally
systemctl enable ‘service’
how would I configure the network card or specific connection to start at boot ?
- I use the command: nmcli
- $ nmcli connection modify [connection name eg eth01] connection.autoconnect yes
how would i show what connections are active?
nmcli connection show –active
also great for getting the connection name
what is one way to look up the current kernel IP routing table?
netstat -r