Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Basic configuration for router in the stick

Router setup

Router # delete nvram

Router # delete vlan.dat

Router # sh vlan

Router # conf t

Router (config) # hostname R1

R1 (config) # no ip domain-lookup

R1 (config)# enable secret class

R1(config)# line con 0

R1(config –line)# password cisco

R1(config-line)# login

R1(config-line)# logging synchronous

R1(config –line)# exec-timeout 0 0

R1(config-line)# exit

R1(config)# line vty 0 15

R1(config-line)# password cisco

R1(config-line)# login

R1(config –line)# logging syn

R1(config-line)# exit

R1(config) # banner motd #

R1(config)# service password-encryption

R1(config)# do sh ip int brief


R1(config)# int fa0/0

R1(config-if)# no shut

R1(config-if)# int fa0/0.10

R1(config-subif)# encapsulation dot1q 10

R1(config-subif)# ip add 172.17.10.1 255.255.255.0

R1(config-subif)# int fa0/0.20

R1(config-subif)# encapsulation dot 1q 20

R1(config-subif)# ip add 172.17.20.1 255.255.255.0

R1(config)# do sh ip int brief

############################################################

Switches configuration

S1 (config)# ip default gateway 172.17.99.1

Setup access mode for end devices

S1(onfig)# int fa0/6

S1(config-if)# switchport mode acces

S1(config) # no shut

Setup vlan

S1(config)# vlan 10

S1(config-vlan)# name vlan10

Setup access mode for end devices and assign vlan

S1(onfig)# int fa0/6

S1(config-if)# switchport mode access

S1(config-if)# switchport access vlan 10

S1(config) # no shut

Set trunk ports

S1(config) # int range fa0/1-5

S1(config-if –range)# switchport mode trunk


For non 2960 – need # switchport trunk encapsulation dot1q

S1(config-if-range)# switchport native vlan 99

S1(config-if-range)# no shut

Setup vtp

S1(config)# do sh vtp status

S1(config)# vtp mode sever - or client

S1(config)# vtp domain Lab6

S1(config)# vtp password cisco

You might also like