C H A B O T O L L E G E

advertisement
Student Name: ___________________________
CHABOT COLLEGE
CISCO NETWORKING ACADEMY II
6A – STATIC ROUTES / DEFAULT ROUTE
Router Configuration: NAT, with default route deleted
One router required.
Estimated time: 35 min.
VTY Password: cisco
Enable Secret: chabot
Objectives:
 Configure & test static routes on a router.
 Configure a default route on a router.
Background:
Static routes are useful for security, for bandwidth conservation (usually with stub networks), for automatic
backup to dynamic routes, and as a means to define a default route.
By default, static routes have an administrative distance of 1. Therefore, the IOS considers them more
trustworthy than dynamic routes, especially those learned by RIP, which has an administrative distance of 120.
Static routes can be assigned a distance other than the default of 1 by using an "argument" to the ip route
command.
Default routes provide a standard path for packets with a destination network that is outside our lab's net. For
this lab, hayward's E1 leads to another router that is our "default gateway" to the outside. All packets to be
sent to the outside should be sent toward that gateway, which is also known as the "gateway of last resort".
The map below depicts the configuration:
Classroom & Internet
NAT
192.168.0.1 /24
(Gateway of last resort)
DNS
10.1.0.1 /16
S0 (DCE)
192.168.0.2 /24
E1
Hayward
10.2.0.1 /16
S0 (DCE)
E0
192.168.2.1 /24
Win 98
192.168.2.10 /24
1
10.2.0.2 /16
S1
Oakland
E0
192.168.3.1 /24
192.168.3.0 Net
192.168.2.0 Net
Win 98
192.168.1.10 /24
10.2.0.0 Net
10.1.0.2 /16
S1
192.168.1.0 Net
E0
192.168.1.1 /24
10.1.0.0 Net
Fremont
Win 98
192.168.3.10 /24
Student Name: ___________________________
PREPARATION
Step 1 - Log on to the router.
Connect to the router's console and login.
a. List your router's hostname here: __________________________________
Step 2 – If directed, load the standard configuration for your router.
If your instructor directs you to load the standard configuration,
erase start, reload, and then cancel the system configuration dialog with control-C.
Then use Hyperterminal's send text file feature to load the standard configuration file.
Save your config with copy run start
Note: fremont and oakland must communicate through hayward, so you must work together as a team!
Step 3 – Delete the default route on hayward:
ip route 0.0.0.0 0.0.0.0 192.168.0.1
On hayward, you must delete this static route:
Step 4 – Check your routing table:
show ip route
What directly connected networks show in the routing table? ______________________________
______________________________
______________________________
Does the table show any static routes? ________________
If so, delete them using the no command.
CONFIGURE STATIC ROUTES & DEFAULT ROUTES
Step 1 – Create static routes.
Study the network map.
Your task is to create a static route to each network on the map that is not directly connected to your router.
Your router already knows how to reach directly connected networks!
Here's an example for a static route to 192.168.1.0 that can be reached through the "next hop" interface on the
route to this net.
ip route 192.168.1.0 255.255.255.0 10.2.0.1
(Instead, you could use the command format that specifies your local router's interface to go out toward the
destination network, but the routing table will be easier to understand if you use the "next hop" method.)
Now, proceed: In global configuration mode, enter an ip route command for each network that is not directly
connected to your router. (If you are on fremont or oakland, be sure to include the 192.168.0.0 LAN!)
Of course, you'll need to study the map in order to identify the next hop addresses and plan your commands.
Test your work: show ip route again
For each network that is not directly connected, the RIP routes should now be replaced by static routes.
Does every LAN on the map have a static route in your table? ____________________
If not, add or fix as necessary.
Test your work: ping an E0 interface on each router (other than yours).
Successful? ____________________
If not, study your routing table and your running config.
Troubleshoot and fix as necessary.
2
Student Name: ___________________________
Step 2 – Experiment with administrative distance.
Change the administrative distance for one static route that you entered. (You select the route.) To do this,
1) delete that static route, (use the no command)
2) enter the route again, and at the end, include the number 121 as the administrative distance.
Here's an administrative distance added to the example shown in Step1:
no ip route 192.168.1.0 255.255.255.0 10.2.0.1 (deletes the static route)
ip route 192.168.1.0 255.255.255.0 10.2.0.1 121 (enters it again, with distance of 121)
Test your work: show run Is your static route listed in the running config? ____________________
show ip route again
What happened to the static route you just entered? _______________________________________
Explain how administrative distance caused this change: _____________________________________
_____________________________________________________________________________
Step 3 – Determine if a default route (gateway of last resort) has been configured.
Study your routing table as you answer these two questions:
A line at the top of the table begins with "Gateway of last resort…."
Copy that line below, completely and accurately:
_____________________________________________________________________________
What will your router do with a packet destined for 209.129.156.3? _______________________
Step 4 – Create a default route.
hayward routers: do not perform this step until your team has completed step 3!
For this lab, hayward's E1 leads to another router that is our "default gateway" to the outside. All packets to be
sent to the outside should be sent toward that gateway, which is also known as the "gateway of last resort".
Here is the preferred method to accomplish that goal:
Static route to 0.0.0.0: This method is not in the curriculum, but is presented in Cisco documentation.
Create a static route to this "wildcard" "pseudo" IP address and subnet mask: 0.0.0.0 0.0.0.0
The route should point from your router to the gateway address or to the "next hop" toward the gateway address.
Examples:
If you are on hayward, the route should point to the NAT gateway at 192.168.0.1:
ip route 0.0.0.0 0.0.0.0 192.168.0.1
If oakland is your home router, the route should point to the "next hop" toward that gateway:
ip route 0.0.0.0 0.0.0.0 10.2.0.1
Now consult the map on page 1 to plan your static route.
Write the static route command here___________________________________________________
Now enter that command in global configuration mode.
Test your work: show ip route again
Find the new entry that appears in the table.
Copy that entry below, completely and accurately:
_____________________________________________________________________________
A line at the top of the table begins with "Gateway of last resort…."
Copy that line below, completely and accurately:
_____________________________________________________________________________
3
Student Name: ___________________________
Ping 172.28.118.10 (our lab server).
To reach this server, your packets must use the default route to the gateway of last resort.
Successful? ___________
hayward router: leave your default route to network 0.0.0.0 in place.
fremont and oakland routers: delete the default route using a no command.
The above example could be deleted by:
no ip route 0.0.0.0 0.0.0.0 10.2.0.1
show ip route again. Notice that RIP redistributes the default route to network 0.0.0.0 from hayward to the
other routers. As a result, if you are running RIP, you only need to enter the default route to hayward. RIP
will spread it to the other routers automatically!
Test your work: Examine your routing table.
Find the first entry that contains an asterisk (*).
Copy that line below, completely and accurately:
_____________________________________________________________________________
What does the asterisk mean,
according to the legend above the table?______________________________________________
A line at the top of the table begins with "Gateway of last resort…."
Copy that line below, completely and accurately:
_____________________________________________________________________________
Ping 172.28.118.10 (our lab server).
To reach this server, your packets must use the default route to the gateway of last resort.
Successful? ___________
DEMONSTRATE
Step 1 – Demonstrate your completed configuration to the instructor:
Call your instructor to your console, and then demonstrate the following steps in order:

Show the ip routing table.
It should contain static routes to networks not directly connected to you.

From your router, ping a PC on a remote LAN
You should receive successful replies, showing that your static routes work.

From your router, ping 209.129.156.3 (a host that is outside our network)
You should receive successful replies, showing that your default route works.
COMMAND REFERENCE RESEARCH / REFLECTION (Return to your curriculum PC)
Step 1 – At your curriculum PC, complete the Command Reference table below:
At www.cisco.com, follow these links to the IOS command master index and lookup each of the commands below:






Products and Services >>> IOS Software
Cisco IOS Software Releases
Cisco IOS Software Releases 12.0 Mainline
Technical Documenetation (left side menu)
Master Indices (left side menu)
Cisco IOS Command Reference Master Index
4
Student Name: ___________________________
Command Reference
Command
ip route
Mode
Description / Purpose
ip default-network
Step 2 – Review the curriculum and lectures as needed to complete these reflection questions:
Define "administrative distance": _______________________________________________________________
What is the default administrative distance for static routes? ____________
Write a complete example of an ip route command that specifies an administrative distance of 125:
______________________________________________________________________________
List several benefits of static routing.
_________________________________________________________________
_________________________________________________________________
List several benefits of dynamic routing:
_________________________________________________________________
_________________________________________________________________
END | THREE-HOLE PUNCH | STAPLE | SUBMIT
5
Download