0% found this document useful (0 votes)
114 views

Basic Router Configuration

Uploaded by

ko kyaw
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
114 views

Basic Router Configuration

Uploaded by

ko kyaw
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Configuring Basic Router Parameter

Basic Router Configuration Command Syntax


Naming the router Router (config)#hostname <name>
Setting Passwords Router (config)#enable secret <password>
Router(config)#line console 0
Router(config-line)#password <password>
Router(config-line)#login

Router(config)#line vty 0 4
Router(config-line)#password <password>
Router(config-line)#login

Configuring a message-of-the-day Router(config)#banner motd #<message>#


banner
Configuring an interface Router(config)#interface <type> <number>
Router(config-if)#ip address <address> <mask>
Router(config-if)#description <description>
Saving changes on a router Router#copy running-config startup-config
Examining the output of show Router#show running-config
commands Router#show ip route
Router#show ip interface brief
Router#show interfaces
Configure the router
a. Console into the router and enable privileged EXEC mode.
Router>
Router>enable
Router#
b. Enter configuration mode.
Router#configure terminal
Router(config)#
c. Identified the hostname in router.
Router(config)#hostname R1
R1(config)#
d. Disable DNS lookup to prevent the router from attempting to
translate incorrectly entered commands as though they were host names.
R1(config)#no ip domain-lookup
e. Assign class as the privileged EXEC encrypted password.
R1(config)#enable secret class
R1(config)#
f. Assign cisco as the console password and enable login.
R1(config)#line console 0
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#
g. Assign cisco as the vty password and enable login.
R1(config-line)#exit
R1(config)#line vty 0 4
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#
h. Encrypt the plain text passwords.
R1(config-line)#exit
R1(config)#service password-encryption
R1(config)#
i. Create a banner that will warn anyone accessing the device that
unauthorized access is prohibited.
R1(config)#banner motd #UNAUTHORIZED ACCESS IS PROHIBITED!!!#
j. Configure and activate the interfaces on each router using the
information contained in the Addressing Table.
R1(config)#interface gigabitEthernet 0/0
R1(config-if)#ip address 192.168.0.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#interface gigabitEthernet 0/1
R1(config-if)#ip address 192.168.10.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#
k. Check running configuration file.
R1#show running-config
l. Save the running configuration to the startup configuration file.
R1# copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
R1#

Configure basic switch settings including hostname, local


passwords, MOTD banner, management address, and Telnet access.
a. Assuming the switch had no configuration file stored in NVRAM, verify
you are at privileged EXEC mode. Enter enable if the prompt has changed
back to Switch>.
Switch>enable
Switch#
b. Enter global configuration mode.
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
The prompt changed again to reflect global configuration mode.
c. Assign the switch hostname.
Switch(config)# hostname S1
S1(config)#
d. Configure password encryption.
S1(config)#service password-encryption
S1(config)#
e. Assign class as the secret password for privileged EXEC mode access.
S1(config)# enable secret class
S1(config)#
f. Prevent unwanted DNS lookups.
S1(config)# no ip domain-lookup
S1(config)#
g. Configure a MOTD banner.
S1(config)# banner motd #
Enter Text message. End with the character ‘#’.
Unauthorized access is strictly prohibited. #

You might also like