How to Perform a Basic Software Configuration Using the Cisco IOS CLI
SUMMARY STEPS
1.
2.
3.
4.
5.
6.
7.
DETAILED STEPS
Command or Action
Step 1
enable
Example:
Router> enable
Step 2
configure terminal
Example:
Router# configure terminal
Step 3
ip routing
Example:
Router(config)# ip routing
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
Basic Software Configuration Using the Cisco IOS Command-Line Interface
10
enable
configure terminal
ip routing
ip route dest-prefix mask next-hop-ip-address [admin-distance] [permanent]
ip default-network network-number
or
ip route dest-prefix mask next-hop-ip-address
end
show ip route
Purpose
Enables privileged EXEC mode.
•
Enter your password if prompted.
Enters global configuration mode.
Enables IP routing.
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.
OL-5593-01