Brainscape_Lynda.com-Linux-Network_Configuration_Flash_Cards_CSV Flashcards
(92 cards)
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