You are on page 1of 2

User exec mode:

Router> User exec mode:


Switch>
Privileged exec mode
Router> enable Privileged exec mode
Router# Switch> enable
Switch#
Global Configuration mode
Router# cofigure terminal Global Configuration mode
Router (config)# Switch# configure terminal
Switch (config)#
Hostname Configuration
Router (config)# hostname name Hostname Configuration
Switch(config)# hostname name
Interface configuration
Router(config)# interface name number Banner Configuration
Router(config-if)# ip address ip network-mask Switch(config)# banner motd # banner message #
Router(config-if)# no shutdown
Router(config-if)# description description Enable Password Configuration
Router(config-if)# clock rate number Switch(config)# enable password parola
Switch(config)# enable secret parola
Banner Configuration
Router(config)# banner motd # banner message # Management Interface Configuration
Switch (config)# interface vlan 1
Enable Password Configuration Switch (config-if)# ip address ip network-mask
Router(config)# enable password parola Switch (config-if)# no shutdown
Router(config)# enable secret parola Switch (config-if)# description Management Interface

Vty Lines Configuration (activate the telnet access) To access the switchs management interface from other networks
Router(config)# line vty 0 4 Switch (config)# ip default-gateway ip
Router(config-line)# password parola
Router(config-line)# login Vty Lines Configuration (activate the telnet access)
Router(config-line)# logging synchronous Switch(config)# line vty 0 4
Switch(config-line)# password parola
Console Line Configuration (secure console access) Switch(config-line)# login
Router(config)# line console 0 Switch(config-line)# logging synchronous
Router(config-line)# password parola
Router(config-line)# login Console Line Configuration (secure console access)
Router(config-line)# logging synchronous Switch(config)# line console 0
Switch(config-line)# password parola
Routes Configuration Switch(config-line)# login
Router (config)# ip route retea_destinatie masca_destinatie Switch(config-line)# logging synchronous
[ interfata_iesire | ip_next_hop ]
USEFUL SHOW COMMANDS
USEFUL SHOW COMMANDS
R# show running-config
R# show startup-config S# show running-config
R# show ip interface brief S# show startup-config
R# show interface name number S# copy running-config startup-config
R# show controllers serial number S# show ip interface brief
R# show ip route S# show vlan brief
R# ping ip S# show mac-address-table
R# traceroute ip
R# show flash TIPS
R# show processes
R# show version ctrl + a = te duce la inceputul liniei de comanda
R# show arp ctrl + e = te duce la finalul liniei de comanda

NEVER FORGET
R# copy running-config startup-config

You might also like