This activity is ungraded.
Getting help: If you have trouble with these activities, please ask questions in the “Troubleshooting” forum in General Class Discussions.
Review: This simulation mimics what I demonstrated in this video:
Pinging Without an ACLSystem: For these activities, you’ll use Packet Tracer, a network simulation program from Cisco. See the first activity in this unit for download and installation instructions.
Time: This activity should take you 30 to 60 minutes to complete.
Note: Hit Enter after each command.
Configuring the First Router
Click on the router closer to the PC with the IP address of 10.1.0.1.Select the CLI tab.Enter no and hit Enter at the prompt. You’ll see a prompt of Router>.Enter enable to go from User Exec Mode (where you’re restricted) to Privileged Exec Mode.Notice that the > changed to a #.Enter configure terminal to go to Global Configuration Mode.Enter hostname R1 to change the prompt.Enter interface f0/1 to go to interface configuration mode.Enter ip address 10.1.0.99 255.255.0.0 to assign an IP address to this interface.Enter no shutdown to bring the interface up from its default shutdown state.After a few seconds, you’ll see two green dots on the cable connecting the router to the switch, indicating a live connection between the devices.Enter interface f0/0 to configure the other router interface.Enter ip address 10.2.0.98 255.255.0.0 to assign an IP address to this interface.Enter no shutdown to bring the interface up from its default shutdown state.Configuring the Second Router
Click on the router closer to the PC with the IP address of 10.3.0.1.Select the CLI tab.Enter no and hit Enter at the prompt. You’ll see a prompt of Router>.Enter enable to go from User Exec Mode (where you’re restricted) to Privileged Exec Mode.Notice that the > changed to a #.Enter configure terminal to go to Global Configuration Mode.Enter hostname R2 to change the prompt.Enter interface f0/1 to go to interface configuration mode.Enter ip address 10.3.0.98 255.255.0.0 to assign an IP address to this interface.Enter no shutdown to bring the interface up from its default shutdown state.After a few seconds, you’ll see two green dots on the cable connecting the router to the switch, indicating a live connection between the devices.Enter interface f0/0 to configure the other router interface.Enter ip address 10.2.0.99 255.255.0.0 to assign an IP address to this interface.Enter no shutdown to bring the interface up from its default shutdown state.After a few seconds, you’ll see two green dots on the cable connecting the two routers.Now, our entire topology is live and connected! However, at this point, the routing tables on each router are incomplete. R1 doesn’t yet know about the 10.3.0.0/16 network, and R2 doesn’t yet know about the 10.1.0.0/16 network.
Open a Command Prompt on one PC by clicking on it, then the Desktop tab, and then Command Prompt.From here, have the PC ping its gateway.Repeat the ping process for the second PC.You should see ICMP Echo Replies from each gateway to each PC.Configuring a Routing Protocol
Click Router 1, and then the CLI tab. If you’ve timed out of the session, click Enter and enter enable to go back to Privileged Exec mode.Enter show ip route to see this router’s routing table.Notice this router only knows about its directly connected networks, 10.1.0.0/16 and 10.2.0.0/16, but not the 10.3.0.0/16 network.Repeat this process on Router 2, and notice that this router only knows about directly connected networks, 10.2.0.0/16 and 10.3.0.0/16, but not the 10.1.0.0/16 networkIf 10.1.0.1 pings 10.3.0.1 (or vice versa) the ping will fail, because each PC’s router does not know about the other network on the other far side. Try it and see.Let’s fix this, by configuring the OSPF (Open Shortest Path First) routing protocol.
On each router, from Privileged Exec Mode, go to Global Configuration Mode, by typing configure terminal.Enter router ospf 1 to enable ospf with a process ID of 1.Enter network 10.0.0.0 0.255.255.255 area 0 to enable OSPF on all interfaces that have a first octet of 10, regardless of the last three octets.You’ll notice a wildcard mask is used after 10.0.0.0 to instruct the router that we only care about first octets matching the pattern of 10 (with 0s in the wildcard mask), and don’t care about the other three octets (with 255s in the wildcard mask).
Although OSPF domains can be subdivided into different areas, there must be an area 0 that all routers must be a part of (with the exception of virtual links).
Enter end to go back down to Privileged Exec Mode. After a few seconds, you’ll notice a message like this:01:19:15: %OSPF-5-ADJCHG: Process 1, Nbr 10.3.0.98 on FastEthernet0/0 from LOADING to FULL, Loading DoneEnter show ip route on each router, and notice that OSPF has converged, and now each router has informed the other about the network each was missing knowledge about.From each PC, ping the other PC. You should have full connectivity on all devices at this point.From 10.1.0.1, enter tracert 10.3.0.1. From 10.3.0.1, enter tracert 10.1.0.1. Notice the paths the packets are taking to get to the other side.You will continue to work in Packet Tracer in the next activity. If you take a break now, you can save your work by clicking File and then Save. Reopen the .pkt file from the Cisco Packet Tracer 7.1 directory (inside of c:\users\{username}) when you’re ready to continue.
After you've finished, answer the Check Your Work questions.
转载于:https://www.cnblogs.com/sec875/articles/10028694.html
相关资源:JAVA上百实例源码以及开源项目