Networking fundamentals Flashcards
1
Q
Network Config files:
/etc/hosts
A
- always contains the localhost IP address, 127.0.0.1
- Sometimes contains addresses of additional hosts
Sample output:
Do not remove the following line, or various programs
that require network functionality will fail.
- 0.0.1 localhost.localdomain localhost
- 168.52.10 tux.mylan.com tux
- 168.52.11 winxp.mylan.com winxp
2
Q
Network Config files:
/etc/resolv.conf
A
- configures access to a DNS server
Sample output:
search mylan.com
nameserver 193.134.20.4
3
Q
Network Config files:
/etc/nsswitch.conf
A
- defines the order in which to contact different name services
Sample output:
[bob@tux ~] grep hosts /etc/nsswitch.conf
hosts: files dns
4
Q
Network Config command:
ip command
A
- assigning IP addresses to interfaces
- for setting up routes to the Internet and to other networks
- displaying TCP/IP configurations etcetera
eg.
ip addr show
ip route show
5
Q
Network Config command:
ifconfig command
A
- configure a network interface
(preferable using ip command)
6
Q
Network checking command:
netstat command
A
- Print network connections, routing tables, interface statistics, masquerade connections, and multi‐
cast memberships
7
Q
Network checking command:
host command
A
- display information on hosts or domains
8
Q
Network checking command:
ping command
A
- check if a host is alive
9
Q
Network checking command:
traceroute / tracepath command
A
- check the route that packets follow to a network host
10
Q
A