Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
CCNA Exploration 11.docx
Скачиваний:
40
Добавлен:
24.11.2018
Размер:
174.35 Кб
Скачать

11.4.3 Learning About the Nodes on the Network Page 1:

If an appropriate addressing scheme exists, identifying IPv4 addresses for devices in a network should be a simple task. Identifying the physical (MAC) addresses, however, can be a daunting task. You would need access to all of the devices and sufficient time to view the information, one host at a time. Because this is not a practical option in many cases, there is an alternate means of MAC address identification using the arp command.

The arp command provides for the mapping of physical addresses to known IPv4 addresses. A common method for executing the arp command is to execute it from the command prompt. This method involves sending out an ARP request. The device that needs the information sends out a broadcast ARP request to the network, and only the local device that matches the IP address of the request sends back an ARP reply containing its IP-MAC pair.

To execute an arp command, at the command prompt of a host, enter:

C:host1>arp -a

As shown in the figure the arp command lists all devices currently in the ARP cache, which includes the IPv4 address, physical address, and the type of addressing (static/dynamic), for each device.

The cache can be cleared by using the arp -d command, in the event the network administrator wants to repopulate the cache with updated information.

Note: The ARP cache is only populated with information from devices that have been recently accessed. To ensure that the ARP cache is populated, ping a device so that it will have an entry in the ARP table.

Ping Sweep

Another method for collecting MAC addresses is to employ a ping sweep across a range of IP addresses. A ping sweep is a scanning method that can be executed at the command line or by using network administration tools. These tools provide a way to specify a range of hosts to ping with one command.

Using the ping sweep, network data can be generated in two ways. First, many of the ping sweep tools construct a table of responding hosts. These tables often list the hosts by IP address and MAC address. This provides a map of active hosts at the time of the sweep.

As each ping is attempted, an ARP request is made to get the IP address in the ARP cache. This activates each host with recent access and ensures that the ARP table is current. The arpcommand can return the table of MAC addresses, as discussed above, but now there is reasonable confidence that the ARP table is up-to-date.

11.4.3 - Learning About the Nodes on the Network The diagram depicts learning about the nodes on the network using the arp command from a host command prompt. The arp -a output from a host displays the IP and MAC address pairing according to what the host knows.  Network topology:  Five hosts, A, B, C, D, and E, are connected to a switch that is connected to a router.  Host A: 10.0.0.1/24  Host B: 10.0.0.2/24  Host C: 10.0.0.3/24  Host D: 10.0.0.4/24  Host E: 10.0.0.5/24  Router: 10.0.0.254/24  C:\ >arp -a displays the following information regarding the  network devices it knows about:  Internet Address: 10.0.0.2  Physical Address: 00-08-a3-b6-ce-04  Type: dynamic  Internet Address: 10.0.0.3  Physical Address: 00-0d-56-09-fb-d1  Type: dynamic  Internet Address: 10.0.0.4  Physical Address: 00-12-3f-d4-6d-1b  Type: dynamic  Internet Address: 10.0.0.254  Physical Address: 00-10-7b-e7-fa-ef  Type: dynamic

Page 2:

Switch Connections

One additional tool that can be helpful is a mapping of how hosts are connected to a switch. This mapping can be obtained by issuing the show mac-address-table command.

Using a command line from a switch, enter the show command with the mac-address-table argument:

Sw1-2950#show mac-address-table

See the figure for sample output.

This table in the figure lists the MAC address of the hosts that are connected to this switch. Like other output in the command window, this information can be copied and pasted into a file. Data can also be pasted into a spreadsheet for easier manipulation later.

An analysis of this table also reveals that the Fa0/23 interface is either a shared segment or is connected to another switch. Several MAC addresses are representing multiple nodes. This is an indication that a port is connected to another intermediary device such as a hub, wireless access point, or another switch.

Additional commands and tools for data gathering presented in later courses.

11.4.3 - Learning About the Nodes on the Network The diagram depicts MAC addresses connected to switch ports as displayed using the show mac-address-table command. Note that multiple MAC addresses are associated with port FA0/23.  Sw1-2950#show mac-address-table  Mac Address Table  V LAN: All  Mac Address: 0014.a8a8.8780  Type: STATIC  Ports: CPU  V LAN: All  Mac Address: 0010.0ccc.cccc  Type: STATIC  Ports: CPU  V LAN: All  Mac Address: 0100.0ccc.cccd  Type: STATIC  Ports: CPU  V LAN: All  Mac Address: 0100.0cdd.dddd  Type: STATIC  Ports: CPU  V LAN: 1  Mac Address: 0001.e640.3b4b  Type: DYNAMIC  Ports: FA0/23  V LAN: 1  Mac Address: 0002.fde1.6acb  Type: DYNAMIC  Ports: FA0/14  V LAN: 1  Mac Address: 0006.5b88.dfc4  Type: DYNAMIC  Ports: GI0/2  V LAN: 1  Mac Address: 0006.5bdd.6fee  Type: DYNAMIC  Ports: FA0/23  V LAN: 1  Mac Address: 0006.5bdd.7035  Type: DYNAMIC  Ports: FA0/23  Output omitted

Page 3:

Documenting Network Performance

Use 100 successive pings to the same remote host. Paste these entries into an Excel spreadsheet and create a chart showing the mean, median, mode, and the number and percentage of dropped packets. Hint: Dropped packets have a consistently large value assigned to them.

Conduct this test for 3 samples spread out over a 24-hour period and repeated every day for 5 days at approximately the same time.

To get a better picture of network performance, try increasing the packet size by 100 bytes at a time for 20 pings. Plot the average values for each of the 20 pings to see the effect of the increase in packet size. Also, note any time there is a large change in throughput.

Click the lab icon for more details.

11.4.3 - Learning About the Nodes on the Network Link to Hands-on Lab: Network Latency Documentation with Ping  In this lab you use the ping command to document network latency, compute various statistics on the output of a ping capture, and measure delay effects from larger datagrams.

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]