Elective 1: Midterm Flashcards
PURPOSE:
* Allow you to connect with remote devices, perform basic tests, temporary change terminal setting, list system information
PROMPT:
* ___
✧ User EXEC
Switch >
COMMAND TO ENTER:
* Default mode after booting. Login with password, if configured.
✧ User EXEC
PURPOSE:
* Allow you to set operating parameters. It also includes high level testing and list commands like show, copy, debug.
PROMPT:
___
✧ Privileged EXEC
* Switch #
COMMAND TO ENTER:
* Use enable command from user exec mode
✧ Privileged EXEC
COMMAND TO ENTER:
* Use configure terminal command from privileged exec mode
✧ Global Configuration
PURPOSE:
* Contain commands those affect the entire system
PROMPT:
* ___
✧ Global Configuration
Switch (config)#
Default mode after booting
Switch >
Note: This command allows you to enter into privileged exec mode / enable mode, where you can configure a range of commands.
Switch > enable
Note: This command allows you to enter into Global Configuration Mode, where you configure a wide range of commands which effect the entire system.
Switch #
Switch # configure terminal
_ is a special character which is uses before starting and ending of a message.
#
Setting a Banner
When someone connects to the Switch , the MOTD ( Message of the Day ) banner appears before the login prompt.
GIFT > enable
GIFT # configure terminal
GIFT ( config ) # banner motd # WELCOME TO GIFT #
GIFT ( config ) # exit
GIFT >
Changing Hostname
Switch > enable
Switch # configure terminal
Switch (config ) # hostname GIFT
GIFT ( config ) # exit
GIFT #
Some Basic Switch Commands
- ?
- Enable
- Configure Terminal
- Tab
- Show Version
- Show-Mac-Table
- Show IP Interfaces Brief
- Show Vlan
- Show running configuration
Use to show commands in any mode
COMMAND: __
?
Switch > ?
Use to enter into privileged mode
COMMAND: __
Enable
Switch > enable
Use to enter into Global confi. Mode
COMMAND:
_
Configure Terminal
Switch # Configure Terminal
Use to complete the command
COMMAND: _
Tab
Switch # confi term
Use to show the Hardware Information
COMMAND: _
Show Version
Switch # show version
Use to show the MAC Address Table
COMMAND:
_
Show-Mac-Table
Switch # show mac-address-
table
Use to show the information about IP interfaces
COMMAND: _
Show IP Interfaces Brief
Switch # show ip interface
brief
Use to show information about VLANs
COMMAND: _
Show Vlan
Switch # show vlan
Use to show information about running configuration
COMMAND: _
Show running configuration
Switch # show running-config
_ is use to save current configuration into NVRAM - Non-volatile
Write Command
Line Console Password
GIFT > enable
GIFT # configure terminal
GIFT (config) # line console 0
GIFT (config-line) # password TEST123
GIFT (config-line) # login
GIFT (config-line) # exit
GIFT (config ) # exit
GIFT # exit
GIFT > enable
Note: _ is used for checking enable password.
Login command
Password for Privileged Mode
GIFT > enable
GIFT # configure terminal
GIFT (config) # enable password TEST123
GIFT (config ) # exit
GIFT #
Removing Line Console Password
GIFT > enable
GIFT # configure terminal
GIFT (config) # line console 0
GIFT (config-line) # no login
GIFT (config-line) # no password
GIFT (config-line) # end
GIFT #
Removing Password for Privileged Exec Mode
GIFT > enable
GIFT # configure terminal
GIFT (config) # no enable password
GIFT (config-line) # end
GIFT #
_ is the address of device in network.
_ allows us to set IP address on interface level.
_ is used to manage that particular interface.
To _ we have to assign IP address to VLAN1( Default VLAN of switch). Also set default gateway IP address from global configuration mode.
IP address
Switch
IP address assigned on interface
manage entire switch
Basic Steps to Configure a Router
- Configure hostname
- Configure passwords
* Enable / enable secret
* Console (con 0)
* Virtual terminal (vty) - Configure interfaces
- Configure routing protocol
- Configure hostname table
Configuring the Router Hostname
Router#config t
Router(config)#hostname Router_A
Router_A(config)#exit / end
Router_A#
Password Configuration
- Passwords are set for:
- privileged EXEC mode
- line passwords
- Setting Passwords are set for:
- privileged EXEC mode
- Enable password
- privileged EXEC mode
Router(config)#enable password cisco
- Enable secret password
Router(config)#enable secret class
show commands
- show interfaces
- show controllers serial
- show clock
- show hosts
- show users
- show history
- show flash
- show version
- show ARP
- show protocol
- show startup-configuration
- show running-configuration
- line passwords
- console interface
- Router(config)#line console 0
*Router(config-line)#password cisco
*Router(config-line)#login
- VTY (virtual terminals)
- Router(config)#line vty 0 4
*Router(config-line)#password cisco
*Router(config-line)#login
stats on the router interfaces
show interfaces
hardware info re: serial interfaces
show controllers serial
Shows the wall-time clock in the router
show clock
Displays a cached list of host names and addresses
show hosts