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
Q

If I want to set persistent routes in a debian based system what file to I need to edit?

A
  • /etc/network/interfaces
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Define Name Resolution:

A
  • Name resolution is the act of translating hostnames to the IP addresses of their hosts.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

There are two facilities for doing translation. What are they?

A
  • Static name resolution.(using /etc/hosts) - Dynamic name resolution . ( using DNS servers)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

What is reverse resolution?

A
  • reverse resolution is the process of converting an IP address to a host name.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

Name the three command line utilities than can be used to resolve an IP address?

A

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

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

the file /etc/hosts holds what information?

A

-/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
Q

what are two other host-related files?

A
  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
Q

If name resolution cannot be achieved through /etc/hosts , then the system will query______________?

A

-a DNS ( Domain Name Server) server.

33
Q

A computers usage of DNS is controlled by what file ?

A

Answer: /etc/resolv.conf

34
Q

the /etc/resolv.conf file……..?

A
  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
Q

What does DHCP stand for?

A

Dynamic Host Configuration Protocol

36
Q

the IP address declares the ___________ and ____________?

A

the ip address declares the host device and its location.

37
Q

IP address are _________ __________ labels assigned to each device.

A

IP address are unique numerical labels assigned to each device.

38
Q

The IP address has two functions .What are they?

A
  1. Identifies the network interface of host devices 2. Provides the location of the host on the network.
39
Q

32 bit long addresses provided us with how many addresses to use?

A

more than 4 billion.

40
Q

The scheme for using 32 bit addresses is call ______?

A

IPv4

41
Q

With IPv6 how long are the addresses?

A

128 bit long addresses.

42
Q

ip

A
  • 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
Q

ip address

A

protocol address management

44
Q

what layer is the mac address apart of ?

A

layer 2, the data link layer

45
Q

how is the mac address stored in the computer?

A

it is burned in the ROM chip

46
Q

can the mac address be changed?

A

no

47
Q

the Address Resolution Protocol (ARP) is used to ….?

A

to map IP addresses to MAC addresses.

48
Q

if I want to view the current ARP table on my linux system what command could i exeute?

A

arp -a

49
Q

An IP address consists of four ______ seperated by _____

A

numbers , periods

50
Q

w.r.t IP addres : in decimal notation each octet must be btween what two numbers ?

A

0 and 255

51
Q

IP addresses are sometimes called ……?

A

dotted squad addresses

52
Q

each number in the IP address is actually an …….?

A

an eight bit binary number called an octet.

53
Q

every host on a IP address based network must have a ….?

A

unique ip address

54
Q

A NAT router can present a single registered IP address to a Public network and …..?

A

hide thousands of the private IP address on the network behind it.

55
Q

the IP address is made up of two parts . what are they?

A
  1. network address
  2. Node or host address
56
Q

How much of an address is used for the network and how much is used for the host is defined by …..?

A

the subnet mask

57
Q

In order for two hosts on the same network segment to communicate , they need to have the same ….?

A

network address

which means they need to have the same subnet mask .

58
Q

Network interfaces can be configured using a……?

A

non changing IP address or a dynamic IP address

59
Q

to statically assign Ip address parameters to a linux system. I can use what two commands ?

A

ifconfig or ip

60
Q

when I use the ip addr show what does the parameter link stand for ?

A

the MAC address of the network board

61
Q

when I use the ip addr show what does the parameter inet stand for ?

A

the IPv4 address/mask assigned to the interface

62
Q

when I use the ip addr show what does the parameter inet6 stand for ?

A

teh IPv6 address/mask assigned to the interface

63
Q

when I use the ip addr show what does the parameter brd stand for?

A

the broadcast address of the network segment

64
Q

routers operate at the network layer and are used to …?

A

connect various networks together.

65
Q

Routers determine the best way to get data to the right destination by …..?

A

maintaining a routing table of available routes

66
Q

the command : route. its primary purpose is to …….?

A

set up static routes to specific hosts or networks via interfaces after is has been configured by ifconfig or ip.

67
Q

the command : route. when the add or del options are used , route…..?

A

modifies the routing tables.

68
Q

the command : route. without any options what is the result ?

A

the command : route displays teh current contents of the routing tables.

69
Q

what option with the command : nmcli makes it easier to read ?

A

-p or –pretty

70
Q

what is the syntax for the command: nmcli general?

A

nmcli general [status | hostname | permissions | logging} [arguements….]

71
Q

what command would give me the overall status of the network manager?

A

nmcli general status

72
Q

what is the syntax of the command : nmcli?

A

nmcli [options…] { help | general | networking | radio | connection | device | agent | monitor | } [command] [arguments ……]

73
Q
A