Sie sind auf Seite 1von 18

Module 3

Configuring a Router

© 2004, Cisco Systems, Inc. All rights reserved. 1


Router Configuration Tasks
www.pnj.ac.id
• Name a router
• Set passwords
• Examine show commands
• Configure a serial interface
• Configure an Ethernet interface
• Execute changes to a router
• Save changes to a router
• Configure an interface description
• Configure a message-of-the-day banner
• Configure host tables
• Understand the importance of backups and documentation

© 2004, Cisco Systems, Inc. All rights reserved. 2


Router Modes
www.pnj.ac.id

• All configuration changes are made


from Global Config mode
• Ctrl-Z or end
returns to Privileged EXEC mode
• exit
Go back one step

© 2004, Cisco Systems, Inc. All rights reserved. 3


Configure Hostname
• Required if name resolution is to be used www.pnj.ac.id

• Not essential for the functioning of our routers but is important

© 2004, Cisco Systems, Inc. All rights reserved. 4


Configuring passwords
www.pnj.ac.id

• An important feature
security
telnet (vty) will not work without a
password set

• Line console 0
sets login password for User EXEC mode

• Enable password xxx


sets login password for Privileged EXEC
mode

• Enable secret
sets encrypted password for Privileged
EXEC mode
(strong encryption)

© 2004, Cisco Systems, Inc. All rights reserved. 5


Show Commands • show history - Displays a history of
• show interfaces – Displays statistics for commands that have been www.pnj.ac.id
entered
all interfaces on a router.

Router#show interfaces serial 0/1 • show flash - Displays information about


flash memory and what IOS files are
stored there
• show controllers serial - Displays
information that is specific to the
interface hardware. This command • show version - Displays information
must also include the port or slot/port about the currently loaded software
number of the serial interface. version along with hardware and
device information
Router#show controllers serial 0/1
• show arp - Displays the ARP table of
the router
• show clock - Shows the time set in the
router
• show protocols - Displays the global and
interface-specific status of any
• show hosts - Displays a cached list of configured Layer 3 protocols
host names and addresses

• show startup-config - Displays the saved


• show users - Displays all users who are configuration located in NVRAM
connected to the router

• show running-config
© 2004, Cisco Systems, Inc. All rights reserved. 6
Configuring an interface
www.pnj.ac.id

© 2004, Cisco Systems, Inc. All rights reserved. 7


Configuring an Ethernet Interface
www.pnj.ac.id

© 2004, Cisco Systems, Inc. All rights reserved. 8


Configuring a Serial Interface
Fast Ethernet Interface www.pnj.ac.id

Router(config)# interface fastethernet 0/0


Router(config-if)# ip address 190.100.11.1 255.255.255.0
Router(config-if)# no shutdown

Serial Interface (DCE) (no clock for DTE)

Router(config)# interface serial 0/0


Router(config-if)# ip address 190.100.10.2 255.255.255.0
Router(config-if)# clock rate 56000
Router(config-if)# no shutdown
© 2004, Cisco Systems, Inc. All rights reserved. 9
Configuring Interface Descriptions
www.pnj.ac.id

An interface description should identify important


information such as a router, a circuit number, or a
specific network segment.

© 2004, Cisco Systems, Inc. All rights reserved. 10


The Login Banner
www.pnj.ac.id
• The Banner is seen when someone attempts to login
• Important to let user know it is a private system

© 2004, Cisco Systems, Inc. All rights reserved. 11


Login Banner MOTD
www.pnj.ac.id
• Configured from Global Config mode
• Use the Banner MOTD command

• Use delimiters (#) to indicate start and end of message

© 2004, Cisco Systems, Inc. All rights reserved. 12


Host Name Resolution
www.pnj.ac.id
• Two Choices

DNS
Dynamic
(not available in our lab)

Hosts Table
Static entries
Used in our lab situation
© 2004, Cisco Systems, Inc. All rights reserved. 13
Configuring Hosts Tables
www.pnj.ac.id
• The Host table contains:
Name
IP address of each router in the network
• The host name in a command will be resolved to an IP
address if the name is found in the table
i.e. ping Auckland
is translated to ping 172.16.32.1 (if the hosts below
entered)
• Host tables only apply to the the local router

© 2004, Cisco Systems, Inc. All rights reserved. 14


The copy running-config tftp
Command
www.pnj.ac.id
Backing up Configuration Files

© 2004, Cisco Systems, Inc. All rights reserved. 15


The copy tftp running-config Command
www.pnj.ac.id
Restoring Configuration Files from a TFTP Server

© 2004, Cisco Systems, Inc. All rights reserved. 16


Changing Router Configuration
www.pnj.ac.id

© 2004, Cisco Systems, Inc. All rights reserved. 17


Configuration Standards
www.pnj.ac.id

• Configuration Standards may specify:

How the files are stored


Where the files are stored
Naming conventions
Who has access
Coding standards – e.g. comments, sections, etc
Interface descriptions

© 2004, Cisco Systems, Inc. All rights reserved. 18

Das könnte Ihnen auch gefallen