0% found this document useful (0 votes)
16 views11 pages

Rout Conf

This document outlines the basic configuration procedures for Cisco routers, including default settings, global parameters, interface configurations, command-line access, static and dynamic routing. It provides step-by-step instructions and examples for configuring various aspects of the router, such as Fast Ethernet interfaces and routing protocols like RIP and EIGRP. Additionally, it includes verification steps to ensure proper configuration.

Uploaded by

geletom93
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views11 pages

Rout Conf

This document outlines the basic configuration procedures for Cisco routers, including default settings, global parameters, interface configurations, command-line access, static and dynamic routing. It provides step-by-step instructions and examples for configuring various aspects of the router, such as Fast Ethernet interfaces and routing protocols like RIP and EIGRP. Additionally, it includes verification steps to ensure proper configuration.

Uploaded by

geletom93
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Basic Router Configuration

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

Configuring Global Parameters


To configure the global parameters for your router, follow these steps.

SUMMARY STEPS
1. configure terminal
2. hostname name
3. enable secret password
4. no ip domain-lookup

DETAILED STEPS

COMPILED BY: AYENEW Y. IBRAHIM 1


Command Purpose
Step 1 configure terminal Enters global configuration mode, when
Example: using the console port.
Router> enable Use the following to connect to the router
Router# configure terminal with a remote terminal:
Router(config)# telnet router name or address
Login: login id
Password: *********
Router> enable
Step 2 hostname name Specifies the name for the router.

Example:
Router(config)# hostname Router
Router(config)#

Step 3 enable secret password Specifies an encrypted password to prevent


unauthorized access to the router.
Example:
Router(config)# enable secret cr1ny5ho
Router(config)#

Disables the router from translating


Step 4 no ip domain-lookup unfamiliar
words (typos) into IP addresses.
Example:
Router(config)# no ip domain-lookup
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

COMPILED BY: AYENEW Y. IBRAHIM 2


Command Purpose

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)#

Sets the IP address and subnet mask for


Step 2 ip address ip-address mask the specified fa interface.

Example:
Router(config-if)# ip address 192.168.12.2
255.255.255.0
Router(config-if)#

Step 3 no shutdown

Example: Enables the fa interface, changing its


state from administratively down to
Router(config-if)# no shutdown administratively up
Router(config-if)#

Step 4 exit Exits configuration mode for the GE


interface and returns to global
configuration mode.
Example:
Router(config-if)# exit
Router(config)#

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.

COMPILED BY: AYENEW Y. IBRAHIM 3


Example:
Router(config-if)# ip address 10.108.1.1
255.255.255.0
Router(config-if)#

Step 3 exit Exits configuration mode for the loopback


interface and returns to global configuration
Example: mode.
Router(config-if)# exit
Router(config)#

Configuring Command-Line Access


To configure parameters to control access to the router, follow these steps, beginning in global
configuration mode.

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

Enters line configuration mode, and


Step 1 line [aux | console | tty | vty] line-number specifies the
type of line.
Example: This example specifies a console terminal

COMPILED BY: AYENEW Y. IBRAHIM 4


for
Router(config)# line console 0 access.
Router(config-line)#

Step 2 password password Specifies a unique password for the console


terminal line.
Example:
Router(config-line)# password 5dr4Hepw3
Router(config-line)#

Enables password checking at terminal


Step 3 login session
login.
Example:
Router(config-line)# login
Router(config-line)#

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.

Specifies a virtual terminal for remote


Step 5 line [aux | console | tty | vty] line-number console
access.
Example:
Router(config-line)# line vty 0 4
Router(config-line)#

Step 6 password password Specifies a unique password for the virtual


terminal line.
Example:
Router(config-line)# password aldf2ad1
Router(config-line)#

Enables password checking at the virtual


Step 7 login terminal
session login.
Example:
Router(config-line)# login
Router(config-line)#

COMPILED BY: AYENEW Y. IBRAHIM 5


Exits line configuration mode, and returns
Step 8 end to
privileged EXEC mode.
Example:
Router(config-line)# end
Router#

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

transport input none


(default) stopbits 1 (default)
line vty 0 4
password
secret login
!

Configuring Static Routes

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

COMPILED BY: AYENEW Y. IBRAHIM 6


Command Purpose

ip route prefix mask {ip-address | interface-


Step 1 type Specifies the static route for the IP packets.
interface-number [ip-address]}
For details about this command and about
additional parameters that can be set, see
Cisco
Example:
IOS IP Command Reference, Volume 2 of 4:
Router(config)# ip route 192.168.1.0 Routing Protocols, Release 12.3
255.255.0.
0 10.10.10.2
Router(config)#

Step 2 end Exits router configuration mode, and enters


privileged EXEC mode.
Example:
Router(config)# end
Router#

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

Gateway of last resort is not set

10.0.0.0/24 is subnetted, 1 subnets


C 10.108.1.0 is directly connected, Loopback0 S*
0.0.0.0/0 is directly connected, FastEthernet0

COMPILED BY: AYENEW Y. IBRAHIM 7


Configuring Dynamic Routes

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.

Configuring Routing Information Protocol

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

Enters router configuration mode, and


Step 1 router rip enables RIP
on the router.
Example:
Router> configure terminal
Router(config)# router rip
Router(config-router)#

Step 2 version {1 | 2} Specifies use of RIP version 1 or 2.

Example:
Router(config-router)# version 2
Router(config-router)#

Specifies a list of networks on which RIP is


Step 3 network ip-address to be
applied, using the address of the network of
each
Example: directly connected network.

COMPILED BY: AYENEW Y. IBRAHIM 8


Router(config-router)# network
192.168.1.1
Router(config-router)# network 10.10.7.1
Router(config-router)#

Disables automatic summarization of subnet


Step 4 no auto-summary routes
into network-level routes. This allows
subprefix
routing information to pass across classful
Example: network
Router(config-router)# no auto-summary boundaries.
Router(config-router)#

Step 5 end Exits router configuration mode, and enters


privileged EXEC mode.
Example:
Router(config-router)# end
Router#

Example

The following configuration example shows RIP version 2 enabled in IP network


10.0.0.0 and 192.168.1.0.
To see this configuration, use the show running-config command from privileged EXEC
mode.
!
Router# show running-
config router rip
version 2
network
10.0.0.0
network
192.168.1.0 no
auto-summary
!
Verifying Configuration

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

COMPILED BY: AYENEW Y. IBRAHIM 9


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

Gateway of last resort is not set

10.0.0.0/24 is subnetted, 1 subnets


C 10.108.1.0 is directly connected, Loopback0
R 3.0.0.0/8 [120/1] via 2.2.2.1, 00:00:02, Ethernet0/0

Configuring Enhanced Interior Gateway Routing Protocol

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

Enters router configuration mode, and


Step 1 router eigrp as-number enables
EIGRP on the router. The autonomous-
system
number identifies the route to other EIGRP
Example: routers
Router(config)# router eigrp 109 and is used to tag the EIGRP information.
Router(config)#

Specifies a list of networks on which EIGRP


Step 2 network ip-address is to
be applied, using the IP address of the
network of
Example: directly connected networks.
Router(config)# network 192.145.1.0
Router(config)# network 10.10.12.115
Router(config)#
Step 3

COMPILED BY: AYENEW Y. IBRAHIM 10


end Exits router configuration mode, and enters
privileged EXEC mode.
Example:
Router(config-router)# end
Router#

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
!
...

COMPILED BY: AYENEW Y. IBRAHIM 11

You might also like