Rout Conf
Rout Conf
This module provides configuration procedures for Cisco routers. It also includes configuration examples
and verification steps whenever possible.
Default Configuration
When you boot up your Cisco router for the first time, you notice some basic configuration has already been
performed. Use the show running-config command to view the initial configuration, as shown in the
following example.
Router# show running-config
Building configuration...
Current configuration : 723 bytes
!
version 12.4
no service
pad
service timestamps debug datetime
msec service timestamps log datetime
msec no service password-encryption
!
hostname Router
!
boot-start-
marker boot-
end-marker
!
ip forward-protocol nd
exception data-corruption buffer
truncate scheduler allocate 20000 1000
end
SUMMARY STEPS
1. configure terminal
2. hostname name
3. enable secret password
4. no ip domain-lookup
DETAILED STEPS
Example:
Router(config)# hostname Router
Router(config)#
Interface Ports
Configuring Fast Ethernet Interfaces
To manually define onboard Fast Ethernet (fa) interfaces, follow these steps, beginning
in global configuration mode.
SUMMARY STEPS
1. interface fastethernet slot/port
2. ip address ip-address mask
3. no shutdown
4. exit
DETAILED STEPS
Step 1 interface fastethernet slot/port Enters the configuration mode for a Fast
Ethernet interface on the router.
Example:
Router(config)# interface fastethernet 0/1
Router(config-if)#
Example:
Router(config-if)# ip address 192.168.12.2
255.255.255.0
Router(config-if)#
Step 3 no shutdown
SUMMARY STEPS
1. interface type number
2. ip address ip-address mask
3. exit
DETAILED STEPS
Command Purpose
Step 1 interface type number Enters configuration mode for the loopback
interface.
Example:
Router(config)# interface Loopback 0
Router(config-if)#
Step 2 ip address ip-address mask Sets the IP address and subnet mask for the
loopback interface.
Note: The TTY lines are asynchronous lines used for inbound or outbound modem and terminal connections
and can be seen in a router or access server configuration as line x. The specific line numbers are a function
of the hardware built into or installed on the router or access server. In Cisco ISR G2 series routers, the TTY
lines are incremented by 1 and start with line number3 instead of line number 2 in Cisco ISR G1 series
routers. In ISR G2 series routers, line number 2 cannot be accessed since it has been used for the second core
feature.TTY lines are not static and line numbers can be changed in future when more features are added
similar to the second core.
SUMMARY STEPS
1. line [aux | console | tty | vty] line-number
2. password password
3. login
4. exec-timeout minutes [seconds]
5. line [aux | console | tty | vty] line-number
6. password password
7. login
8. end
DETAILED STEPS
Command Purpose
Step 4 exec-timeout minutes [seconds] Sets the interval that the EXEC command
interpreter waits until user input is detected.
The
default is 10 minutes. Optionally, add
Example: seconds to
Router(config-line)# exec-timeout 5 30 the interval value.
Router(config-line)# This example shows a timeout of 5 minutes
and
30 seconds. Entering a timeout of 0 0
specifies
never to time out.
Example
The following configuration shows the command-line access commands.
You do not need to input the commands marked “default.” These commands appear
automatically in the configuration file generated when you use the show running-config
command.
!
line con 0 exec-
timeout 10 0
password
4youreyesonly login
Static routes provide fixed routing paths through the network. They are manually
configured on the router. If the network topology changes, the static route must be
updated with a new route. Static routes are private routes unless they are redistributed by
a routing protocol.
To configure static routes, follow these steps, beginning in global configuration mode.
SUMMARY STEPS
1. ip route prefix mask {ip-address | interface-type interface-number [ip-address]}
2. end
DETAILED STEPS
Verifying Configuration
To verify that you have properly configured static routing, enter the show ip route
command and look for static routes signified by the “S.”
You should see verification output similar to the following:
Router# show ip route
Codes: 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
In dynamic routing, the network protocol adjusts the path automatically, based on
network traffic or topology. Changes in dynamic routes are shared with other routers
in the network.
The Cisco routers can use IP routing protocols, such as Routing Information Protocol
(RIP) or Enhanced Interior Gateway Routing Protocol (EIGRP), to learn routes
dynamically. You can configure either of these routing protocols on your router.
To configure the RIP routing protocol on the router, follow these steps, beginning in
global configuration mode.
SUMMARY STEPS
1. router rip
2. version {1 | 2}
3. network ip-address
4. no auto-summary
5. end
DETAILED STEPS
Command Task
Example:
Router(config-router)# version 2
Router(config-router)#
Example
To verify that you have properly configured RIP, enter the show ip route command
and look for RIP routes signified by “R.” You should see a verification output like the
example shown below.
Router# show ip route
Codes: 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
To configure Enhanced Interior Gateway Routing Protocol GRP (EGRP), follow these
steps, beginning in global configuration mode.
SUMMARY STEPS
1. router eigrp as-number
2. network ip-address
3. end
DETAILED STEPS
Command Purpose
Example
The following configuration example shows the EIGRP routing protocol enabled
in IP networks 192.145.1.0 and 10.10.12.115. The EIGRP autonomous system
number is 109.
To see this configuration use the show running-config command, beginning in privileged EXEC mode.
Router# show running-config
...
!
router eigrp 109
network
192.145.1.0
network 10.10.12.115
!
...