Networking Flashcards
change hostname
Method 1
edit /etc/hostname
sudo systemctl restart systemd-hostnamed
Method 2
sudo hostnamectl set-hostname server1.example.com
Where are protocols defined?
/etc/protocols
where are well-known ports defined?
/etc/services
where are connection configuration files located
/etc/sysconfig/network-scripts
activate and deactivate a network conneciton
sudo ifdown enp0s8
sudo ifup enp0s8
With network manager show connections
nmcli c s
Connection and Show
abridged like cisco routers
With network manager bring down/up a connection
sudo nmcli c down enp0s8
sudo nmcli c up enp0s8
Network manager - show status of all devices
nmcli d s
what is the network manager’s service name
NetworkManager
sudo systemctl status NetworkManager