0% found this document useful (0 votes)
71 views1 page

Router and Switch Configuration Guide

Uploaded by

pratik.kotecha
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)
71 views1 page

Router and Switch Configuration Guide

Uploaded by

pratik.kotecha
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/ 1

Configuring the Router’s Name Configuring the Switch’s Name

router>enable switch> enable


router# config t switch# config t
router(config)# hostname NAM witch(config)# hostname NAME
NAME(config)# no ip domain lookup NAME(config)# no ip domain lookup

Configuring the Ethernet Interface(s) on Router only:


NAME# config t
NAME(config)# int interface type & number (fa0/0, fa0/1 - G0/0, G0/1 – G0/0/0, G0/0/1)
NAME(config-if)# description your description of the interface
NAME(config-if)# ip address ip address subnet mask
NAME(config-if)# no shutdown
Configuring the Serial Interface(s)
NAME(config)# int interface type & number (s0/0 , s0/1 - s0/0/0, s0/0/1)
NAME(config-if)# clock rate 56000 (when configuring a DCE serial interface ONLY)
NAME(config-if)# no shutdown
NAME(config-if)# exit
Configuring an IP Address and Default Gateway for VLAN 1 on a Switch only
NAME(config)# interface vlan 1
NAME(config-if)# ip address ip address subnet mask
NAME(config-if)# no shutdown
NAME(config-if)# exit
NAME(config)#ip default-gateway ip address

Configuring STATIC and Default Roues:


Name(config)# ip route [destination network] [Subnet Mask] [next hop IP address or interface]
Name(config)# ip route 0.0.0.0 0.0.0.0 [next hop IP address or exit interface]
Configuring Passwords for Routers & Switches:
Encrypted: (user mode to privilege mode) Configuring SSH:
NAME(config)# ip domain-name cisco.com
NAME# config t NAME(config)# crypto key generate rsa
NAME(config)# enable secret class How many bits in the modulus [512]: 1024
NAME(config)# line vty 0 15
Console:
NAME(config-line)# login local
NAME# config t
NAME(config)# line con 0 NAME(config-line)# transport input ssh
NAME(config-line)# password cisco NAME(config-line)# no password cisco
NAME(config-line)# login
(config-line)#exit Testing ssh connection from the host:
C:\> ssh -l administrator ip address
Virtual Terminal (Telnet):
NAME# config t
NAME(config)# line vty 0 4
NAME(config-line)# password cisco
Banner:
NAME# Config t
NAME(config)# banner motd # your message #
SHOW COMMANDS:
Show: run, show start, interface, ip interface brief, ip route, version, vlan (on switch only)

You might also like