Networking Flashcards

1
Q

What are the fundamental physical components of a LAN?

A

three major components:
server/computers; devices like nic, switches, gateway or routers; transmission media – wired or
wireless, ethernet, optic fibre, coaxial cable.

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

Which command-line tool is utilized for managing network connections in Linux-based
operating systems?

A

nmcli – network manager command line interface

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

What command is used to retrieve the public IP address?

A

curl ifconfig.me public ip is the
ip assigned by the internet service provider.

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

How can the profiles of network interfaces be listed using the nmcli command?

A

nmcli
connection show

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

Which command is used to list the network interfaces?

A

ifconfig, nmcli dev show, ipaddr or ip as

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

What is the command employed to create a new connection profile?

A

nmcli connection add

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

What command is used to modify a connection profile?

A

nmcli connection modify

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

What command is used to delete a connection profile?

A

nmcli connection delete

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

How would you determine which interface is responsible for sending and receiving traffic
outside the network?

A

route -n

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

What does the term "IP address" signify?

A

internet protocol address, a logical number that is assigned to the NIC of a host so that the host can be uniquely identified over the TCP/IP network.

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

What is the function of a gateway?

A

a device that helps you to take the traffic out and bring it in,
a gate between the networks.

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

What is the purpose of a DNS server?

A

domain name service maps the hostname to ip address
and ip address to hostname.

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

What constitutes a DHCP server?

A

dynamic host configuration protocol – a server which assigns
the ip address automatiocally, port number 67 for dhcp server, dhcp client port number 68.
DORA process: how the ip address is assigned – Discover Offer Request Accept

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

What does NAT service refer to?

A

a service in the router – network address translation –
responsible for mapping private ip into public ip and vice versa.

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

What is dynamic routing protocol?

A

a protocol inside the router that is responsible for writing the dynamic routing table (where to send and receive packets)

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

For what purpose is the ping command used, and which protocol does it utilize?

A

it checks the
connectivity of the remote server, used to get the latency in the network (how much time
packets take to reach destination), visibility of server on network. It uses ICMP.

17
Q

Which TCP/IP setting (directives) is necessary for a workstation to function?

A

ipaddr, netmask,
gateway, bootproto, onboot – what you add in network configuration file for static ip.

18
Q

Define "Subnet Mask"

A

divides the ip address into two separate portions – host (0) and network

19
Q

Which IP address remains constant?

A

loopback address – 127.0.0.1

20
Q

How can the IP address of a remote hostname be obtained?

A

nslookup <hostname>

21
Q

What do you mean by “forward lookup”?

A

mapping the hostname into ip address – nslookup
<hostname>

22
Q
  1. What does "reverse lookup" indicate?
A

mapping the ip address into hostname – nslookup <ip
address>

23
Q

What is the significance of a loopback address?

A

checks the connectivity of the TCP stack.

24
Q

Which configuration file contains networking interface configuration for Redhat/CentOS/OEL 7?

A

/etc/sysconfig/network-scripts/ifcfg-<interface name>

25
Q

Which command is used to display the routing table?

A

netstat -rn and/or route -n

26
Q

What is DNS client configuration file?

A

/etc/resolv.conf

27
Q

What purpose does the /etc/hosts file serve?

A

/etc/hosts is a stub resolver which maps the hostname into ip address.

28
Q

Which file specifies the sequence and methods for utilizing naming and service resolution
services?

A

/etc/nsswitch.conf

29
Q

Differentiate between a switch and a router.

A

switch – connects devices within a network,
datalink layer, frames. Router – connects two networks, manages the packets, network layer

30
Q

What is the file path for storing networking configuration (interface configuration)?

A

/etc/sysconfig/network-scripts/ifcfg-<interface name>

31
Q

How would you identify if a port is listening to or not on a local server?

A

netstat -tunap | grep -i
listen or ss -tunap | grep -i listen or lsof -i :<port number>

32
Q

How would you identify if a port is listening to or not on a remote server?

A

nmap <remote
server ip address> <port number> or telnet <remote server ip> <port number> will show escape
character

33
Q

What method can be used to verify if a server's cable is connected?

A

ethtool <interface name>
will state link detected.

34
Q

In RHEL 6 & 7, what is the host-based firewall known as?

A

iptables in RHEL 6
firewalld in RHEL 7

35
Q

Define NIC and explain how NICs can be listed.

A

a device – with an ip address - which
sends and receives packets within and outside the network.

36
Q

If you can successfully ping within your network but not outside of it, what steps would you take for troubleshooting?

A

check if the gateway is assigned with route -n, UG means
up gateway.

37
Q

What troubleshooting steps would you follow if you are unable to ping the internet?

A

a. check if cable is connected with ethtool <interface name>.
b. Check systemctl status NetworkManager/network (whether service is working or not).
c. nmcli connection show to see if connection is up.

38
Q

What are the steps you would take for network troubleshooting?

A

a. Check the cable with ethtool.
b. Check the service with systemctl status network.
c. Check connection with nmcli connection show.
d. Check configuration file.
e. Check routing table if gateway is assigned with route -n.
f. Check if DNS is present in /etc/resolv.conf