Cisco 1900 series Hardware Installation page 104

Hide thumbs Also See for 1900 series:
Table of Contents

Advertisement

Performing the Initial Configuration on the Router
Command or Action
Step 4
ip route dest-prefix mask next-hop-ip-address
[admin-distance] [permanent]
Example:
Router(config)# ip route 192.168.24.0
255.255.255.0 172.28.99.2
Step 5
ip default-network network-number
or
ip route dest-prefix mask next-hop-ip-address
Example:
Router(config)# ip default-network 192.168.24.0
Example:
Router(config)# ip route 0.0.0.0 0.0.0.0
172.28.99.1
Step 6
end
Example:
Router(config)# end
Step 7
show ip route
Example:
Router# show ip route
Examples
Specifying a Default Route: Example
!
ip routing
!
ip route 192.168.24.0 255.255.255.0 172.28.99.2
!
ip default-network 192.168.24.0
!
Sample Output for the show ip route Command
Router# show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
Gateway of last resort is 172.28.99.2 to network 192.168.24.0
C
S
S*
C
Router#
Cisco 1900 Series Hardware Installation
6-18
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
172.24.0.0 255.255.255.0 is subnetted, 1 subnets
172.24.192.0 is directly connected, FastEthernet0
172.24.0.0 255.255.0.0 [1/0] via 172.28.99.0
192.168.24.0 [1/0] via 172.28.99.2
172.16.0.0 255.255.255.0 is subnetted, 1 subnets
172.16.99.0 is directly connected, FastEthernet1
Purpose
Establishes a static route.
Selects a network as a candidate route for computing the
gateway of last resort.
Creates a static route to network 0.0.0.0 0.0.0.0 for
computing the gateway of last resort.
Returns to privileged EXEC mode.
Displays the current routing table information.
Verify that the gateway of last resort is set.
Chapter 6
Configuring the Router
OL-19084-02

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents