Chapter 8 - Configuring Networks Flashcards

1
Q

What are the two types of IP addresses available now?

A

IPv4 and IPv6

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an IPv4 address?

A

These are based on 32-bit addresses and have four octets, separated by dots, such as 192.168.10.100.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an IPv6 address?

A

These are based on 128-bit addresses and are written in eight groups of hexadecimal numbers that are 16 bits each and separated by colons.
An IPv6 address may look like fe80:badb:abe01:45bc:34ad:1313:6723:8798.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a host?

A

A host is typically a server providing services on the network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does computers commuinicate?

A

To make it easier for computers to communicate with one another, every IP address
belongs to a specific network, and to communicate with computers on another network,
a router is used

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a router?

A

A router is a machine (often dedicated hardware that has been created for that purpose) that connects networks to one another.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are private IP addresses?

A

Private network addresses are addresses that are for use in internal networks only. Some specific IP network addresses have been reserved for this purpose:

  • 10.0.0.0/8 (a single Class A network)
  • 172.16.0.0/12 (16 Class B networks)
  • 192.168.0.0/16 (256 Class C networks)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the length of MAC addresses?

A

12-byte MAC address

An example of a MAC address is 00:0c:29:7d:9b:17.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the two parts of the MAC addresses?

A

The first 6 bytes is the vendor ID, and the second 6 bytes is the unique node ID

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do the default names of network cards in RHEL8 begin?

A
  1. Ethernet interfaces begin with en, WLAN interfaces begin with wl, and WWAN interfaces begin with ww.
  2. The next part of the name represents the type of adapter.
  3. Then follows a number, which is used to represent an index, ID, or port
  4. If the fixed name cannot be determined, traditional names such as eth0 are used.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which command or utility can be used to check the configuration of network?

A

ip utility, or the ip command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what is the command “ip addr” used for?

A

Use ip addr to configure and monitor network addresses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the command “ip route” used for?

A

To configure and monitor routing information

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which command is used to configure and monitor network link state?

A

ip link

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which command to use to check or show current network settings?

A

ip addr show

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which interface is used for communication between the processes and what is the default IP of the loopback interface in Linux?

A

The loopback interface is used for communication between processes. Some processes are using the IP protocol for internal communications. For that reason, you’ll always find a loopback interface, and the IP address of the loopback interface is always set
to 127.0.0.1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What are all the informations seen in “ip addr show” command?

A
  1. Current state
  2. MAC address Configuration
  3. IPv4 configuration
  4. IPv6 Configuration
18
Q

Which command to use if you are just interested to see the link status of the network interfaces?

A

ip link show

19
Q

Which service in RHEL8 manages the networking?

A

NetworkManager service.
You can use the systemctl status NetworkManager
command to verify its current status

20
Q

For what purpose is the commands nmtui command or the nmcli command used for?

A

To manage the network connections that you want to assign to devices, you use the nmtui command or the
nmcli command.

21
Q

Which command to use to check your current permissions with changing/modifying the network configuration?

A

nmcli gen permissions

22
Q

Which command can be used to temporarily set IP address on a network interface?

A

ip addr add

23
Q

How to use nmcli command to show all connections?

A

nmcli con show
This shows active and inactive connections. You can easily see the difference because inactive connections are not currently assigned to a device

24
Q

How to see all the properties of the network interface ens33?

A

nmcli con show ens33

syntax is : nmcli con show

25
Q

What is the difference between a connection and a device?

A

A device is a network interface card.
A connection is the configuration that is used on a device.

nmcli con show
nmcli dev status

26
Q

What command is a text user interface that allows you to create network connections easily?

A

nmtui

27
Q

How to use the nmcli command to modify an existing setting?

A

nmcli con mod

28
Q

What are the menu options in nmtui interface?

A
  1. Edit a Connection
  2. Activate a Connection
  3. Set System Hostname
29
Q

Every network connection that you create is stored in a network configuration file. Where is this file present?

A

/etc/sysconfig/network-scripts

30
Q

How to identify the names of network configuration files?

A

The name of the configuration files starts with ifcfg- and is followed by the name of the network interface.

31
Q

Why is hostname necessary?

A

To communicate with the other hosts. Makes it more readable than IP addresses.

32
Q

What are the different parts in a hostname?

A

Hostname typically consists of different parts. These are the name of the host and the DNS domain in which the host resides.
These two parts together make up for the fully qualified domain name (FQDN), which looks like server1.example.com

33
Q

What is FQDN?

A

Fully qualified domain name (FQDN) It is the name of the host and the DNS domain in which the host resides all together

34
Q

What are the different ways to change the hostname in linux?

A
  1. Use nmtui and select the option Change Hostname.
  2. Use hostnamectl set-hostname command
  3. Edit the contents of the configuration file /etc/hostname.
35
Q

Give an example of setting hostname using hostnamectl command?

A

hostnamectl set-hostname myhost.example.com

36
Q

Which command to use to check the current hostname?

A

hostnamectl status

37
Q

What are the two columns in /etc/hosts file?

A

The first column has the IP address of the specific host, and the second column specifies the hostname.

38
Q

In which configuration file is the DNS information stored in ?

A

The NetworkManager configuration stores the DNS information in the configuration file for the network connection, which is in /etc/sysconfig/network-scripts, and from there pushes the configuration to the /etc/resolv.conf file, which is used for DNS name server resolving.
Do not edit /etc/resolv.conf directly, as it will be overwritten the next time you restart NetworkManager.

39
Q

What are the different ways to set the DNS server?

A
  1. Use nmtui to set the DNS name servers.
  2. Set the DNS1 and DNS2 parameters in the ifcfg network connection
    configuration file in /etc/sysconfig/network-scripts.
  3. Use a DHCP server that is configured to hand out the address of the
    DNS name server
  4. Use nmcli con mod [+]ipv4.dns.dns
40
Q

if your computer is configured to get the network configuration from a DHCP server, the DNS server is also set via the DHCP server. If you do not want this to happen what should you do?

A

]1. Edit the ifcfg configuration file to include the option PEERDNS=no.
or
2. Use nmcli con mod ipv4.ignore-auto-dns yes.