Troubleshooting Cmd Tools with Switches/Options Flashcards

1
Q

Ifconfig

A

Displays basic TCP/IP information and network information, including MAC address of the NIC

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

ifconfig -a

A

Displays TCP/IP information associated with every interface on a Linux device; can be used with other parameters (see Figure 3-26)

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

ifconfig down

A

Marks the interface, or network connection, as unavailable to the network

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

ifconfig up

A

Reinitializes the interface after it has been taken down (via the ifconfig
down command), so that it is once again available to the network

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

man ifconfig

A

Displays the manual pages, called man pages, for the ifconfig command, which tells you how to use the command and about command parameters (similar to the ipconfig /? command in Windows)

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

dig google.com

A

Performs a DNS lookup on a domain name

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

dig @8.8.8.8 google.com

A

Specifies a name server in the google.com domain

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

dig @8.8.8.8 google.com MX

A

Requests a list of all A records in the google.com domain on a specific name server

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

dig google.com ANY

A

Requests a list of all record types in the google.com domain

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

dig –x 74.125.21.102

A

Performs a reverse lookup on a Google I P address

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

man dig

A

Displays the man page for the dig command

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

Netstat

A

Lists all active TCP/IP connections on the local machine, including the Transport layer protocol used, messages sent, and received, IP address, and state of those connections

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

netstat -n

A

Lists current connections, including IP addresses and ports

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

netstat -f

A

Lists current connections, including IP addresses, ports, and FQDNs

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

netstat -a

A

Lists all current TCP connections and all listening TCP and UDP ports

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

netstat -e

A

Displays statistics about messages sent over a network interface, including errors and discards

17
Q

netstat -s

A

Displays statistics about each message transmitted by a host, separated according to protocol type (TCP, UDP, IP, or ICMP)

18
Q

netstat -r

A

Displays routing table information

19
Q

netstat -o

A

Lists the PID (process identifier) for each process using a connection and information about the connection

20
Q

netstat -b

A

Lists the name of each process using a connection and information about that connection

21
Q

pathping -n google.com

A

Instructs the command to not resolve IP addresses to host names

22
Q

pathping -h 12 google.com

A

Specifies the maximum number of hops these messages should take when attempting to reach a host

23
Q

pathping -p 2000 google.com

A

Identifies the wait time between pings

24
Q

pathping -q 4 google.com

A

Limits the number of queries per hop; must be followed by a variable to indicate the number of queries allowed

25
Q

tcpdump not port 22 or

tcpdump no port 23

A

Filters out SSH or Telnet packets, which is helpful when running tcpdump on a remotely access network device

26
Q

tcpdump -n

A

Instructs the command to not resolve IP addresses to host names

27
Q

tcpdump –c 50

A

Limits the number of captured packets to 50

28
Q

tcpdump -i any

A

Listens to all network interfaces on a device

29
Q

tcpdump -D

A

Lists all interfaces available for capture

30
Q

tcpdump port http

A

Filters out all traffic except HTTP

31
Q

tcpdump -w capture.cap

A

Saves the file output to a file named capture.cap

32
Q

tcpdump -r capture.cap

A

Reads the file capture.cap and outputs the data in the terminal window

33
Q

Unused physical and virtual ports on switches and other network devices should be disabled

A

Use the shutdown command on Cisco, Huawei, and Arista routers and switches; Use the no shutdown command to enable them again

34
Q

Another Cisco command (also used on Arista devices) to secure switch access ports

A

Switchport port-security (or just port-security on Huawei switches); Essentially a MAC filtering functions that also protects against MAC flooding

35
Q

Switchport security on a Juniper switch

A

The mac-limit command restricts the number of MAC addresses allowed in the MAC address table; Allowed MAC addresses are configured with the allowed-mac command

36
Q

Newer versions of Linux

A

/var/log/messages

37
Q

Older versions of UNIX

A

/var/log/syslog

38
Q

Solaris versions of UNIX

A

var/adm/messages