Configuration Example: Basic Router Configuration


Figure 6-1 shows the network topology for the configuration that follows, which shows a basic router configuration using the commands covered in this chapter.

Figure 6-1. Network Topology for Basic Router Configuration


Boston Router

Router>en

Enters privileged mode

Router#clock set 18:30:00 15 Nov 2004

Sets local time on router

Router#config t

Enters global config mode

Router(config)#hostname Boston

Sets router name to Boston

Boston(config)#no ip domain-lookup

Turns off name resolution on unrecognized commands (spelling mistakes)

Boston(config)#banner motd #

Creates an MOTD banner

This is the Boston Router.

 

Authorized Access Only

 

#

 

Boston(config)#clock timezone EST 5

Sets time zone to Eastern Standard Time (5 from UTC)

Boston(config)#enable secret cisco

Enables secret password set to cisco

Boston(config)#service password-encryption

Passwords will be given weak encryption

Boston(config)#line con 0

Enters line console mode

Boston(config-line)#logging sync

Commands will not be interrupted by unsolicited messages

Boston(config-line)#password class

Sets password to class

Boston(config-line)#login

Enables password checking at login

Boston(config-line)#line vty 0 4

Moves to virtual Telnet lines 0 through 4

Boston(config-line)#password class

Sets password to class

Boston(config-line)#login

Enables password checking at login

Boston(config-line)#line aux 0

Moves to line auxiliary mode

Boston(config-line)#password class

Sets password to class

Boston(config-line)#login

Enables password checking at login

Boston(config-line)#exit

Moves back to global config mode

Boston(config)#no service password-encryption

Turns off password encryption

Boston(config)#int fa 0/0

Moves to Fast Ethernet 0/0 mode

Boston(config-if)#desc Engineering LAN

Sets locally significant description of the interface

Boston(config-if)#ip address 172.16.10.1 255.255.255.0

Assigns IP address and subnet mask to the interface

Boston(config-if)#no shut

Turns on the interface

Boston(config-if)#int s0/0

Moves directly to Serial 0/0 mode

Boston(config-if)#desc Link to Buffalo Router

Sets locally significant description of the interface

Boston(config-if)#ip address 172.16.20.1 255.255.255.0

Assigns IP address and subnet mask to the interface

Boston(config-if)#clock rate 56000

Sets a clock rate for serial transmission. DCE cable must be plugged into this interface

Boston(config-if)#no shut

Turns on the interface

Boston(config-if)#exit

Moves back to global config mode

Boston(config)#ip host buffalo 172.16.20.2

Sets a local host name resolution to IP address 172.16.20.2

Boston(config)#exit

Moves back to privileged mode

Boston#copy run start

Saves running-config to NVRAM





CCNA Self-Study(c) CCNA Portable Command Guide
CCNA Portable Command Guide
ISBN: 1587201585
EAN: 2147483647
Year: 2006
Pages: 261
Authors: Scott Empson

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net