Chapter 4 Initial Configuration

Performing the Initial Configuration on the Router

 

Command or Action

Purpose

Step 5

 

 

ip default-network network-number

Selects a network as a candidate route for computing the

 

or

gateway of last resort.

 

ip route dest-prefix mask next-hop-ip-address

Creates a static route to network 0.0.0.0 0.0.0.0 for

 

 

 

Example:

computing the gateway of last resort.

 

 

 

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

Returns to privileged EXEC mode.

 

Example:

 

 

Router(config)# end

 

Step 7

 

 

show ip route

Displays the current routing table information.

 

 

Verify that the gateway of last resort is set.

 

Example:

 

 

Router# show ip route

 

 

 

 

Configuration 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: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP

 

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

 

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

 

E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS

 

summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * -

 

candidate default,

 

 

U - per-user static route o - ODR, P - periodic downloaded static route, H - NHRP,

 

l - LISP a - application route + - replicated route, % - next hop override

 

Gateway of last resort is not set 40.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C

 

40.0.0.0/24 is directly connected, Loopback1 L 40.0.0.1/32 is directly connected,

 

Loopback1 Router#

 

 

 

Hardware Installation Guide for the Cisco 4451-X Integrated Services Router

 

 

 

 

 

 

OL-27644-01

 

 

4-15

 

 

 

 

 

Page 98
Image 98
Cisco Systems ISR4451XK9 manual Configuration Examples