Chapter 15 Flashcards
You need to configure what five main pieces of information in your Linux system to interact on a network
1) The host address
2) The network subnet address
3) the default router (gateway)
4) The system host name
5) A Domain Name System (DNS) server address for resolving host names
What three ways are there to configure the network in Linux
1) Manually editing network configuration files
2) Using a graphical tool included with your Linux distribution
3) Using command-line tools
Name the two types of IP network address schemes in use today as well as how many bits each has to represent a host address
IPv4 (commonly just IP) - 32 bits
IPv6 - 128 bits
The blank is popular program used by many Linux distributions to provide a graphical interface for defining network connections
Network Manager tool
Network Manager starts automatically and appears in the blank area of the desktop as an icon
system trey
Network Manager allows you to specify the host, network subnet address, default router, and DNS server names by using the blank or blank
manual configuration option
Dynamic Host Configuration Protocol (DHCP)
In Linux, you can manually define a DNS server so the system can use DNS host names. This is handled in the blank file by what three entries.
/etc/resolv.conf
domain mydomain.com
search mytest.com
nameserver 192.168.1.1
In the /etc/resolv.conf file, the blank defines the domain name assigned to the network. By default, the system appends this to any host names you specify
domain
In the /etc/resolv.conf file, the blank entry defines any additional domains used to search for host names.
search
In the /etc/resolv.conf file, the blank entry is where you specify the DNS server assigned to your network and you can have more than just one.
nameserver
Network Manager offers what two command line tools.
nmtui
nmcli
For the Network Manager, the blank command provides a simple text-based menu
nmtui
For the Network Manager, the blank command provides a text-only command line tool
nmcli
If your Linux distribution doesn’t support one of the Network Manager tools, you can use one of what four traditional command-line tools
ethtool
ifconfig
ip
iwconfig
route
What command displays Ethernet settings for a network interface
ethtool
What command displays or sets the IP address and netmask values for a network interface
ifconfig
What command displays or sets the IP address, netmask, and router values for a network interface
ip
What command displays or sets the SSID and encryption key for a wireless interface
iwconfig
What command displays or sets the default router address
route
The blank allows you to peek inside the network interface card Ethernet settings and change any properties that you may need to communicate with a network device, such as a switch
ethtool command
By default, the ethtool command displays the blank for the network interface
current configuration
The blank command is a legacy command for configuring network device settings. It allows you to set the network address and subnet mask for a network interface
ifconfig
The blank command is more robust than ifconfig in what it can do, and it is becoming the most popular method to use for defining network settings from the command line
ip
Name the ip utility command that display or set the IPv4 or IPv6 address on the device
address
Name the ip utility command that define configuration labels
addrlabel
Name the ip utility command that tunnel Ethernet over IP
l2tp
Name the ip utility command that define a network device
link
Name the ip utility command that define a multicast address for the system to listen to
maddress
Name the ip utility command that watch for netlink messages
monitor
Name the ip utility command that define an entry in the multicast routing cache
mroute
Name the ip utility command that define a rule in the multicast routing policy database
mrule
Name the ip utility command that manage Address Resolution Protocol (ARP) or Neighbor Discovery (NDISC) cache entries
neighbor
Name the ip utility command that manage network namespaces
netns
Name the ip utility command that manage the neighbor cache operation
ntable
Name the ip utility command that manage the routing table
route
Name the ip utility command that manage entries in the routing policy database
rule
Name the ip utility command that manage TCP metrics on the interface
tcpmetrics
Name the ip utility command that manage tokenized interface identifiers
token
Name the ip utility command that tunnel over IP
tunnel
Name the ip utility command that manage Network Tunnel (TUN) or Network Bridge (TAP) devices
tuntap
Name the ip utility command that manage IPSec policies for secure connections
xfrm
What is the name for the local loopback interface
lo
What is the name for a wired network interface
enp0s3
The blank is a special virtual network interface that any local program can use to communicate with other programs just as if they were across a network
local loopback inteface
If the output doesn’t show a network address assigned to the interface, you can use the blank command to specify the host address and netmask value for the interface
ip
You can use the blank command to set up the default router for the network interface
ip route add
Although the ip command is a one-stop method for changing network settings, you can also specify network routing settings for your network with the blank command
route
Three common DHCP client programs available for Linux are what?
dhcpcd
dhclient
pump
What DHCP client program is becoming the most popular?
dhcpc
Before you can use the ip command to assign an address to a wireless interface, you must assign the wireless SSID and encryption key value using the blank command
iwconfig
When setting up the encryption key with the iwconfig command precede the encryption key with blank in order to use ASCII text characters
s:
If you don’t know the name of the local wireless connection, you can use the blank command to display all the wireless signals your wireless card detects
iwlist
One way to test network connectivity is to send blank to known hosts
test packets
The blank and blank commands sent Internet Control Message Protocol (IMCP) using either the IP or IPv6 protocols
ping
ping6
The basic format for the ping command is to specify the blank of the remote host
IP address
The ping command continues to send packets until you hit what or alternatively use what option to set a number of packets to send then stop?
Ctrl+C
-c
With the ping6 command, you also have to specify which interface to blank
send packets out on
You can test a DNS host name system with the blank command
host
The host command returns all blank assigned to the specify host name
IP addresses
You can also specify an IP address with the blank command to get the host name associated to it
host
The blank command displays all of the DNS data records associated with a specific host or network
dig
Name the two commands that provide complex information about the network environment
netstat
ss
By default, the blank command list all the open network connections on the system
netstat
Withe the netstat command, you can limit the output to just TCP connections with the blank option, or limit to UDP connections with the blank option
-t
-u
With the netstat command, you can get a list of what applications are listening on which network ports by using the blank option
-l
With the netstat command, you can display statistics for the different types of packets the system has used on the network with the blank command
-s
The netstat tool provides a wealth of information, but it can be hard to determine which program is listening on which open port. The blank command helps with that
ss
A program connection to a port is called a blank
socket
The ss command links which blank are using which network sockets that are active
system processes
With ss, the blank option displays both listening and established TCP connections, as well as the process they’re associated with
-anpt
Which two commands set the IP address, subnet mask, and default router information on an interface using the command line? (Choose two)
A) netstat
B) ping
C) nmtui
D) ip
E) route
C,D
Which command displays the duplex settings for an Ethernet card?
A) ethtool
B) netstat
C) iwconfig
D) iwlist
E) route
A
Which command displays what processes are using what ports on a Linux system?
A) iwconfig
B) ip
C) ping
D) nmtui
E) ss
E
What network setting defines the network device that routes packets intended for hosts on remote networks?
A) Default router
B) Netmask
C) Host name
D) IP address
E) DNS Server
A
WHat device setting defines a host that maps a host name to an IP address?
A) Default router
B) Netmask
C) Host name
D) IP address
E) DNS Server
E
What is used to automatically assign an IP address to a client?
A) Default router
B) DHCP
C) ARP table
D) Netmask
E) ifconfig
B
Which command would you use to find the mail server for a domain?
A) dig
B) netstat
C) ping6
D) host
E) ss
A
Which ifconfig format correctly assigns an IP address and netmask to the eth0 interface?
A) ifconfig eth0 up 192.168.1.0 netmask 255.255.255.0
B) ifconfig eth0 255.255.255.0 192.168.1.0
C) ifconfig up 192.168.1.0 netmask 255.255.255.0
D) ifconfig up
E) ifconfig down
A
What command displays all wireless networks in your area?
iwlist
What command can you use to both display and set the IP address, netmask and default router values
ip