Brainscape_Lynda.com-Linux-Network_Configuration_Flash_Cards_CSV Flashcards
Which networking tools are now considered obsolete?
The ‘ifconfig’ tools
What two commands have replaced ifconfig?
ip or iproute
What popular tool can be used across distros?
NetworkManager
What is the ip command to see all network devices on the system?
ip addr’
When using the ip command, how can you tell which is the mac address?
It is listed after the ‘link/ether’ header
When using the ip command, how can you tell which is the ip address in use?
It is listed after the ‘inet’ header for each network device
When using the ip command, how can you tell if DHCP is being used to get the ip address?
The work ‘dynamic’ will be on the same line as the ‘inet’ header
What is the ip command to see only ipv4 network information?
ip -4 addr’
When using the ip command, how can you see how long your DHCP lease has before it expires?
The number of seconds is listed after the ‘valid_lft’ header
What is the ‘shortest’ ip command you can use to show only ipv4 address information for network devices on the system?
ip -4 a’
When looking at the ip information, how can you tell if the network device is connected to a physical network?
It will have ‘LOWER UP’ in the angle brackets. This means the lower protocols are working on the networking device.
Using the ip command, what is the syntax to take a network device completely offline?
sudo ip link set [network device name] down
Using the ip command, what is the syntax to bring a network device completely online?
sudo ip link set [network device name] up
What is the syntax to use the ethtool command to see more information about a network device?
ethtool [network device name]
What does PNIN stand for?
Predictable Network Interface Names
What software system brought in ‘Predictable Network Interface Names’?
systemd
What is the difference between ‘Predictable Network Interface Names’ and older ways of naming network devices on Linux systems?
The Predictable Network Interface Names are based on the ‘location’ of the network device in the system and should not change. The older method named them by which network device was found first, second, etc. and that could lead to the names changing unexpectedly.
Using the PNIN name of ‘enp0s3’, what does the first two characters specify?
The ‘type’ of network device.
What are two common ‘types’ as pertains to the PNIN naming?
- en = Ethernet 2. wl = Wireless
Using the PNIN name of ‘enp0s3’, what does the third and fourth characters specify?
The ‘bus’ the network device is connected to. ‘p0’ is PCI bus 0.
What two common busses would a network device be connected to and how would these be represented in PNIN naming?
- p = PCI 2. u = USB. The number following would be the number for the bus.
Using the PNIN name of ‘enp0s3’, what does the last two characters specify?
The ‘slot’ the network device is plugged into. ‘s3’ is Slot 3.
What is one way you can tell if NetworkManager is running on your Linux system?
sudo systemctl status NetworkManager
What is the syntax to install NetworkManager if it is not installed on a CentOS system?
sudo yum install NetworkManager
What command would you run to see what network devices are being managed by NetworkManager?
nmcli device. Look under the ‘STATE” column.
What is the syntax to restart the network service on a CentOS machine?
sudo systemctl restart network
How do you set a network device on CentOS so it is ‘managed’ by NetworkManager?
You don’t. By default, all network devices are managed by Network Manager unless you specifically configure them NOT to be managed.
Once CentOS and RHEL, what is the path to where the network device configuration files are located?
/etc/sysconfig/network-scripts
There will always be one network device that is not being managed by NetworkManager, which is it?
The loopback device (lo)
What is the naming convention of the network device configuration files on CentOS and RHEL?
ifcfg-[PNIN name] = ifcfg-enp0s3 (for example)
How would you configure a network device to NOT be managed by NetworkManager?
- Edit the network device’s configuration file in the /etc/sysconfig/network-scripts directory. 2. Add ‘NM_CONTROLLED=no’ to the file. 3. Restart the network service.
On Debian-based systems, how do you configure a network device to be managed?
- Edit the /etc/NetworkManager/NetworkManager.conf file 2. Under the [ifupdown] stanza, change managed to ‘true’. 3. Restart the network (sudo systemctl restart NetworkManager)
What are your options to changing network settings when using NetworkManager?
Either use the GUI tools or the CLI tools
What is the syntax to start the NetworkManager GUI from the CLI?
nm-connection-editor
What is the difference between a network Device and a network Connection?
The network device is the ‘hardware’ device that connects to the network. The network connection is a ‘profile’ that contains a collection of settings that can be applied to a network device.
Can you have more than one connection profile per network device?
Yes. But only one can be active at any one time.