Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
59 Cards in this Set
- Front
- Back
PLIP
PPP HIPPI |
PLIP - Parallel Line Interface Protocol
PPP - point to point protocol HIPPI - High-Performance Parallel Interface |
|
protocol stack def
|
protocol stack is a set of software that converts and encapsulates data between layers of abstraction.
|
|
IP def
|
IP - internet protocol
The core on TCP/IP Provides best effort delivery IP handles addresses |
|
ICMP def
|
ICMP - internet control message protocol
used for sending messages between computers relies upon IP |
|
UDP def
|
UDP - user datagram protocol
layer 3 UDP faster than TCP DNS and NFS are build upon IDP |
|
TCP def
|
TCP - transport control protocol
TCP creates full connection with error checking and correction as well as other feature Small performance penelty |
|
MAC address
|
Media Access Control address
16 bytes in length |
|
What is specific for network devices in linux
|
they dont have entries in /dev
instead low-level network utilities take the device names and down and work with then directly |
|
NDP abr
|
NDP - neighbor Discovery Protocol
ARP for IPv6 |
|
CIDR
|
CIDR Classless Inter-Domain Routing
|
|
IPv6 site local address begin with hex ? (4)
and usage |
IPv6 site-local addresses may be routed within a site but not off-site.
fec fed fee fef |
|
Link-local addresses def/list
|
restricted to a single network segment, they should not be routed at all
begin with fe8 fe9 fea feb |
|
nslookup cmd
|
performs DNS lookup and returns result
|
|
host cmd
|
replacement for the simpler use nslookup - lacks interactive mode
host target.name |
|
dig cmd
|
perfors a more complex DNS lookup
|
|
whois cmd
|
information on a domain
whois sybex.com -H omits legal disclimer |
|
file that contain mappings of IP addresses to hostnames
|
/ect/hosts
127.0.0.1 localhost 192.168.7.23 apollo.luna.edu apollo |
|
Linux normally performs lookups in /etc/hosts before it uses DNS, you can modify this behavior by editing the _____________ file
|
/etc/nsswitch.conf
line lists the order of the files and dns options, which stand for /etc/hosts and DNS, respectively: hosts: files dns |
|
What is the name of the file that works much like /etc/hosts but applies to network addresses
|
/etc/networks
loopback 127.0.0.0 mynet 192.168.7.0 This example sets up two linkages: the loopback name to the 127.0.0.0/8 network and mynet for the 192.168.7.0/24 network. It’s seldom necessary to edit this file. |
|
port and protocol
DCHP Portmapper auth/ident NNTP |
DCHP - 67 -- UDP
Portmapper - 111 -- TCP/UDP auth/ident - 113 -- TCP NNTP - 119 -- TCP |
|
port and protocol
NetBIOS Session IMAP SNMP XDMCP X Window System |
NetBIOS Session - 139 -- TCP
IMAP - 143 -- TCP SNMP - 161 -- UDP XDMCP - 177 - UDP X Window System - 6000/6007 - TCP |
|
port and protocol
LDAP MS Dir.Service SMTP over SSL IPP IMAP over SSL |
LDAP - 389 -- TCP
MS Dir.Service - 445 -- TCP SMTP over SSL - 465 -- TCP IPP - 631 -- TCP IMAP over SSL - 993 - TCP |
|
Where you configure the system to link the servers to the correct port
|
/etc/services
ssh 22/tcp # SSH Remote Login Protocol ssh 22/udp # SSH Remote Login Protocol telnet 23/tcp smtp 25/tcp |
|
If your network hardware isn’t correctly detected to correct the problem, you must load your network hardware driver with the _____ cmd
|
modprobe tulip
You must know the name of your network hardware’s kernel module (tulip in this example). |
|
Three DHCP clients are in common use on Linux (list)
|
pump
dhclient dhcpcd |
|
Ideally the DHCP client runs at system boot-up this is usual handled by either ________ or by __________
|
by its own SysV start-up file or by
part of the main network configuration start-up file called network or networking |
|
The system often uses a line in a config file to determine whether to run a DHCP
in Red Hat/Fedora __________ in Ubuntu |
in Red Hat/Fedora
/etc/sysconfig/network-scripts/ifcfg-eth0 with line like BOOTPROTO=dhcp in Ubuntu /etc/network/interfaces iface eth0 inet dhcp |
|
If you need to manually run a DHCP client type its name as root followed by a network identifier as in _________
|
dhclient eth0
|
|
long term config files for network configuration (2)
|
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/network/interfaces |
|
typical ifcfg-eth0
|
DEVICE=eth0
BOOTPROTO=static IPADDR=192.168.29.39 NETMASK=255.255.255.0 NETWORK=192.168.29.0 BROADCAST=192.168.29.255 GATEWAY=192.168.29.1 ONBOOT=yes |
|
You can manually set the gateway via the
To set it permanently you need to adjust a config file |
route cmd
/etc/sysconfig/network.routes |
|
In order for Linux to use DNS to translate between IP addresses adn host-name you must specify at least one DNS server in the __________ config file
|
/etc/resolv.conf
|
|
in Ubuntu, you would edit __________________ for the network configuration
|
/etc/network/interfaces
|
|
program to display current ip config
|
ifconfig
+ you can set them with the same command ifconfig eth0 up 192.168.29.39 netmask 255.255.255.0 |
|
set up a route for traffic beyond your current network cmd
|
# route add default gw 192.168.29.1
|
|
view interface configuration cmd (for interface eth0)
|
ifconfig eth0
|
|
route cmd output
|
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.29.0 * 255.255.255.0 U 0 0 0 eth0 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default 192.168.29.1 0.0.0.0 UG 0 0 0 eth0 last line shows the default route, which describes what to do with everything that doesn’t match any other entry in the routing table11 |
|
simplifi ed version of the route syntax is as follows:
|
route {add | del} [-net | -host] target [netmask nm] [gw gw]. [reject] [[dev] interface]
-net and -host options force route to interpret the target as a network or computer address, respectively reject keyword installs a blocking route, which refuses all traffic destined for the specified network |
|
example, consider a network in which packets destined for the 172.20.0.0/16 subnet should be passed through the 172.21.1.1 router, which isn’t the default gateway system. You can set up this route with the following command:
|
# route add -net 172.20.0.0 netmask 255.255.0.0 gw 172.21.1.1
|
|
If Linux is to act as a router it must accept packets and send them on to the destination network. To enable his feature you must modify
|
/proc/sys/net/ipv4/ip_forward
|
|
Permanently setting ip forwarding requires modifying ________________ config file
|
/etc/sysctl.conf
with net.ipv4.ip_forward = 1 |
|
after this cmd eth0 will be fully configured, including all routing info assuming you've properly configure it by DHCP or editing /etc/netowrk/interface and /etc/sysconfig/network-scripts/ifcfg-eth0
Bring the interface down |
ifup eth0
ifdown eth0 |
|
tool for setting your hostname locally
|
hostname nessus.expample.com
|
|
domain name cd
|
set the domain nae as used by NIS
|
|
dnsdomainname cmd
|
sets the domain name as used by DNS
|
|
Fedora looks at _____________ for hostname config to be used at boot
|
/etc/sysconfig/network
|
|
Most Linux distros use _______________ and __________________ for hostname config to be used at boot
|
/etc/hostname or /etc/HOSTNAME
|
|
Cmd to display your computer’s routing table information
|
route -n
|
|
Bring down the local Ethernet connection by typing
|
ifconfig eth0 down
|
|
in linux ping continues sending packets once every second until its interrupted by what cmd key combination
|
Ctrl + C
|
|
How can you specify ping limit
|
-c
ping -c 4 speaker |
|
$ traceroute -n 10.1.0.43
traceroute to 10.1.0.43 (10.1.0.43), 30 hops max, 52 byte packets what -n does |
The -n option to this command tells it to display target computers’ IP addresses rather
than their hostnames. |
|
tracepath program expl
|
an alternative to traceroute. In basic operation, it’s similar, although it produces one line of output for each test packet and so yields longer outputs than traceroute.
|
|
netstat options
--interface / -i --route / -r |
--interface / -i
obtains info about network interfaces like ifconfig --route / -r obtains routing table info |
|
netstat options
--masquerade / -M --program / -p |
--masquarade / -M
obtain info about connections mediate by the Linux's NAT feature --program / -p attempts to provide info about the programs that are using network connections |
|
netstat options
without any options --all / -a |
netstat without any options returns information about open ports and the system to which they connect
--all / -a causes netstat to display info about the ports that server programs open to listen for network connection usually used with the other options |
|
tcpdump program expl
|
this utility is a packet sniffer, intercepts network packets and log them or display them on the scree
|
|
output of # tcpdump
|
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes 19:31:55.503759 IP speaker.example.com.631 > 192.168.1.255.631: UDP,. length: 139 19:31:55.505400 IP nessus.example.com.33513 > speaker.example.com.domain:. 46276+ PTR? 255.1.168.192.in-addr.arpa. (44) 19:31:55.506086 IP speaker.example.com.domain > nessus.example.com.33513:. 46276 NXDomain* 0/1/0 (110) |
|
tcpdump options
-A -D -n -v -w |
-A - displays packet content in ASCII
-D - list of interfaces tcpdump can listen -n - displays all addresses numerically -v - additional packet info -w file - writes the captured packets to a file |