Showing posts with label netstat. Show all posts
Showing posts with label netstat. Show all posts

Sunday, May 14, 2017

netstat and arp questions with answers

 1. What command can you issue from the command line to view the status of the system’s ports?
 A. netstat -p
 B. netstat -o
 C. netstat -a
 D. netstat –y
2. Which of the following tools can you use to perform manual DNS lookups on a Linux system? (Choose two.)
 A. dig
 B. nslookup
 C. tracert
 D. dnslookup
3. Which of the following commands generates a “Request Timed Out” error message?
 A. ping
 B. netstat
 C. ipconfig
 D. nbtstat
4. Which of the following commands would you use to add a static entry to the ARP table of a Windows system?
 A. arp -a IP Address MAC Address
 B. arp -s MAC Address IP Address
 C. arp -s IP Address MAC Address
 D. arp -i IP Address MAC Address
5. Which command created the following output?
Server:  nen.bx.ttfc.net
Address:  209.55.4.155

Name:    examcram.com
Address:  63.240.93.157
 A. nbtstat
 B. ipconfig
 C. tracert
 D. nslookup

 Answers1. C. Administrators can quickly determine the status of common ports by issuing the netstat -a command from the command line. This command output lists the ports used by the system and whether they are open and listening.
2. A, B. Both the dig and nslookup commands can be used to perform manual DNS lookups on a Linux system. You cannot perform a manual lookup with the tracert command. There is no such command as dnslookup.
3. A. The ping command generates a “Request Timed Out” error when it cannot receive a reply from the destination system. None of the other commands listed produce this output.
4. C. The command arp -s IP Address MAC Address would correctly add a static entry to the ARP table. None of the other answers are valid ARP switches.
5. D. The output was produced by the nslookup command. The other commands listed produce different output.

Monday, April 24, 2017

netstat,

Troubleshooting Tools
You’ve already learned about four very important TCP/IP utilities—ping, ipconfig, ifconfig,
and nslookup. The following sections present additional TCP/IP commands that can help
you discover information about your node and network.
netstat The netstat utility displays TCP/IP statistics and details about TCP/IP components
and connections on a host. Information that can be obtained from the netstat command
includes the port on which a particular TCP/IP service is running, regardless of whether a
remote node is logged on to a host; which network connections are currently established for a
client; how many messages have been handled by a network interface since it was activated;
and how many data errors have occurred on a particular network interface. As you can imag-
ine, with so much information available, the netstat utility makes a powerful diagnostic tool.
For example, suppose you are a network administrator in charge of maintaining file, print, and
Web servers for an organization. You discover that your Web server, which has multiple pro-
cessors, sufficient hard disk space, and multiple NICs, is suddenly taking twice as long to
respond to HTTP requests. Of course, you would want to check the server’s memory resources
as well as its Web server software to determine that nothing is wrong with either of those. In
addition, you can use the netstat utility to determine the characteristics of the traffic going
into and out of each NIC. You may discover that one network card is consistently handling
80 percent of the traffic, even though you had configured the server to share traffic equally
between the two. This fact may lead you to run hardware diagnostics on the NIC, and perhaps
discover that its onboard processor has failed, making it much slower than the other NIC. The
netstat command provides a quick way to view traffic statistics, without having to run a
more complex traffic analysis program, such as Wireshark.
Like other TCP/IP commands, netstat can be used with a number of different parameters.
Table 3-9 shows some of these options.

CompTIA  Network+ Guide to Networks, Seventh Edition
Jill West, Tamara Dean, Jean Andrews


Thursday, March 30, 2017

netstat - portas e tabelas do router



netstat - ano 
para saber quais portas estão sendo estabelecidas 




netstat -r 
Mostrar as tabelas do router