Network Devices and Configuration Flashcards

1
Q
  1. are network devices associated with file system entrees in /dev? 2. what are network devices known as ? 3. the network names of made up of _________?
A

-network devices are not associated with device nodes or device files . ——————————————————————– -Networks are known by their names instead of a filesystem entree in the directory in /dev. ———————————————————————- -the names to the networks are made up of a type identifier and a number.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  1. what command line utility is used to configure, control and query interface parameters and control devices and routing? _________________________________ 2. the command line utility in question #1 uses ______ instead of ioctl system calls? ___________________________________ 3.the object arguement describes _______ that is going to be performed? ___________________________________ 4. what is the two systax forms for the command utility in question #1?
A

-ip is the command line utility used to configure, control and query interface parameters and control devices, routing etc. ________________________________________ -ip uses netlink sockets rather than ioctl system calls . _________________________________________ - the basic syntax for ip is : -ip [options] object {command | help} - ip [- force] -batch filename Where the second can read commands from a designated file. _____________________________________________ -the object argument describes the action that is going to be performed.

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

what are the main 7 objects that ip uses and their function?

A
  1. address- IPv4 and IPv6 protocal devices address ———————————————————- 2. link - network devices ———————————————– 3. maddress - multicast address ——————————————– 4. monitor - watch for netlink messages ————————————————————- 5. route - routing table entry ———————————————————- 6. rule - rule in the routing policy database ————————————————————- 7. tunnel - tunnel over IP.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  1. how would i lookup all the network interfaces? 2. what would i do to show the information for a specific network interface, including statistics? 3. how would i set up the IP address for a network device eth0? 4 how would i bring down the network device eth0? 5. what would I have to do to set the MTU to 1480 bytes for the network device eth0? 6. how would i use ip to set up a networking route?
A

-$ ip link show #shows information for all network interfaces -$ip -s link show eth0 #shows the information for the eth0 network interface including statistics . -$ sudo ip addr add 192.168.1.7 dev eth0 #sets the IP address for eth0 -$ sudo ip link set eth0 down #brings eth0 down. -$ sudo ip link set eth0 mtu 1480 #set the MTU to 1480 bytes for eth0 -$ sudo ip route add 72.16.1.0/24 via 192.168.1.5 #sets up the networking route

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

how would i look up all information for network interfaces ?

A

$ ip link show

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

what configuration utility was superseded by the ip command ?

A

command: ifconfig

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

when using the Predictable Network interface device names. it is strongly correletaed to __________ and ____________

A

udev, integrated w/ systemd

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

What is ifconfig?

A

System administration utility. ———‐——————— Example: $ ifconfig # displays info about all interfaces

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

What does PNIDN stand for?

A

Predictable network interface device names

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

With PNIDN how many types of names are there?

A

5

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

Network interfaces can be configured on the fly by using what two utilities?

A

ip or ifconfig.

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

If you’re system is using systemd it is wise to use __________ instead of editing the underlying configuration files.

A

Network manager

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

If I want to run scripts to change the network configuration I will want to use____________?

A

nmcli #command utility

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

what is nmtui?

A

it is a Network manager .

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

How can I navigate nmtui?

A

I can navigate with arrow keys or the tab key.

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

With the nmtui I can __________ or ______ __________ as well as set the _________ _________.

A

activate , edit connections, host name.

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

what is nmcli?

A

it is the command line interface for the network manager. _______________________________________ I can see how to use the command utility by typing $ man nmcli-example

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

Describe the process of routing:

A

Routing is the process of selecting paths in a network along which to send network traffic .

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

What is the routing table?

A

-the Routing table is a list of routes to other networks managed by the system. -it defines paths to all networks and hosts, sending remote traffic to routers .

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

If I want to see the current routing table what commands could i use?

A
  • $ ip route - $ route -n
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Define the default network:

A

-the default route is the way packets are sent when there is no other match in the routing table for reaching the specified network.

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

the default route can be manually (static) configured with what command utility?

A

Answer: nmcli

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

Define static routes:

A
  • static routes are used to control packet flow when there is more than one router or route. -they are defined for each interface and can be either persistent or non-persistent.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

what two command utilities can I use to create non-persistent routes?

A

Answer: route() or ip().

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
If I want to set persistent routes in a debian based system what file to I need to edit?
- /etc/network/interfaces
26
Define Name Resolution:
- Name resolution is the act of translating hostnames to the IP addresses of their hosts.
27
There are two facilities for doing translation. What are they?
- Static name resolution.(using /etc/hosts) - Dynamic name resolution . ( using DNS servers)
28
What is reverse resolution?
- reverse resolution is the process of converting an IP address to a host name.
29
Name the three command line utilities than can be used to resolve an IP address?
1.dig -is the newest -generates the most information and has many options ___________________________________________ 2. host -more compact. -output from this command is easiest to read. ________________________________ 3. nslookup -older
30
the file /etc/hosts holds what information?
-/etc/host holds a local database of hostnames and IP address. - It contains a set of records which map IP address with corresponding host names and aliases .
31
what are two other host-related files?
1. /etc/host.deny ----------------------------- 2. /etc/host.allow -------------------------- -these files are self-documenting. ---------------------------------------------- -the allow file is searched first and the deny file is only searched if an entry is not found in the allow file.
32
If name resolution cannot be achieved through /etc/hosts , then the system will query\_\_\_\_\_\_\_\_\_\_\_\_\_\_?
-a DNS ( Domain Name Server) server.
33
A computers usage of DNS is controlled by what file ?
Answer: /etc/resolv.conf
34
the /etc/resolv.conf file........?
1. Can specify particular domains to search 2. Defines a strict order of name servers to query 3. May be manaully configured or updated from a service such as DHCP
35
What does DHCP stand for?
Dynamic Host Configuration Protocol
36
the IP address declares the ___________ and \_\_\_\_\_\_\_\_\_\_\_\_?
the ip address declares the host device and its location.
37
IP address are _________ \_\_\_\_\_\_\_\_\_\_ labels assigned to each device.
IP address are unique numerical labels assigned to each device.
38
The IP address has two functions .What are they?
1. Identifies the network interface of host devices 2. Provides the location of the host on the network.
39
32 bit long addresses provided us with how many addresses to use?
more than 4 billion.
40
The scheme for using 32 bit addresses is call \_\_\_\_\_\_?
IPv4
41
With IPv6 how long are the addresses?
128 bit long addresses.
42
**ip**
* **name:** * **ip** - show / manipulate routing, network devices, interfaces and tunnels**​** * **synopsis:** * **​ip** [options] object [command | help] * **command** - specifies teh action to perform on the object
43
**ip address**
protocol address management
44
what layer is the *mac address* apart of ?
layer 2, the data link layer
45
how is the *mac address* stored in the computer?
it is **burned** in the ROM chip
46
can the *mac address* be changed?
no
47
the Address Resolution Protocol (ARP) is used to ....?
to map IP addresses to MAC addresses.
48
if I want to view the current ARP table on my linux system what command could i exeute?
arp -a
49
An IP address consists of four ______ seperated by \_\_\_\_\_
numbers , periods
50
w.r.t IP addres : in decimal notation each octet must be btween what two numbers ?
0 and 255
51
IP addresses are sometimes called ......?
dotted squad addresses
52
each number in the *IP address* is actually an .......?
an *eight bit binary* number called an *octet.*
53
every host on a IP address based network must have a ....?
unique ip address
54
A NAT router can present a single registered IP address to a Public network and .....?
hide thousands of the private IP address on the network behind it.
55
the IP address is made up of two parts . what are they?
1. network address 2. Node or host address
56
How much of an address is used for the network and how much is used for the host is defined by .....?
the subnet mask
57
In order for two hosts on the same network segment to communicate , they need to have the same ....?
network address which means they need to have the same subnet mask .
58
Network interfaces can be configured using a......?
non changing IP address or a dynamic IP address
59
to statically assign Ip address parameters to a linux system. I can use what two commands ?
ifconfig or ip
60
when I use the **ip addr show** what does the parameter **link** stand for ?
the MAC address of the network board
61
when I use the **ip addr show** what does the parameter **inet** stand for ?
the IPv4 address/mask assigned to the interface
62
when I use the **ip addr show** what does the parameter **inet6** stand for ?
teh IPv6 address/mask assigned to the interface
63
when I use the **ip addr show** what does the parameter **brd** stand for?
the broadcast address of the network segment
64
routers operate at the network layer and are used to ...?
connect various networks together.
65
Routers determine the best way to get data to the right destination by .....?
maintaining a routing table of available routes
66
the command : **route**. its primary purpose is to .......?
set up static routes to specific hosts or networks via interfaces after is has been configured by **ifconfig** or **ip**.
67
the command : **route**. when the **add** or **del** options are used , **route**.....?
modifies the routing tables.
68
the command : **route**. without any options what is the result ?
the command : **route** displays teh current contents of the routing tables.
69
what option with the command : **nmcli** makes it easier to read ?
**-p or --pretty**
70
what is the syntax for the command: **nmcli general**?
**nmcli general** [**status** | **hostname** | **permissions** | **logging**} [*arguements....*]
71
what command would give me the overall status of the network manager?
**nmcli general status**
72
what is the syntax of the command : **nmcli**?
**nmcli** [*options...*] { **help** | **general** | **networking** | **radio** | **connection** | **device** | **agent** | **monitor** | } [*command*] [*arguments ......*]
73