User-exec mode:
Limited examination of a switch / router
Prompt is <hostname> + “>”
Switch>
Privilege-exec mode:
Detailed examination of a switch / router
Debugging / Administration / Prerequisite for other config modes
Prompts is <hostname> + “#”
Switch#
Global configuration mode:
Configuration that affects the whole device
Prerequisite for other config modes
Prompt is <hostname> + “(config)#”
Switch(config)#
Interface mode:
Per interface configuration
Prompt is <hostname> + ”(config-if)#”
Switch(config-if)#
Ways to Manage a Cisco Switch:
Console need to end physical connection devices
Cabling the switch using the console, and then run a Terminal
Application on end devices.
Telnet switching and terminal connection needed
In the network.
Before it can be managed in this way, you must first configure a switch.
Aux port modem-exchanger must be connected to the modem and
Modems connected to telephone lines.
Before you might be, you must first configure a switch
Managed in this manner.
Set the device name:
Switch (config) #hostname Switch1-> sets a device identifier
Switch1(config) #
Set the password for the console:
Switch1 (config) # line con 0-> switch to the console management mode
Switch1 (config-line)->#password Cisco sets console password
Switch1 (config-line) will use the #login-> console password
Set the remote login password:
Switch1 (config) # line vty 0 4-> exchanger to Telnet control mode
Switch1 (config-line)->#password Cisco Telnet Password Setup
Switch1 (config-line) Telnet password is used->#login
Set the enable password:
Switch1 (config) #enable password Cisco-> to set enable passwords
Switch1-> (config) #enable secrets the enable password CCNA security
Encrypted password:
Switch1 (config) #service password encryption-> encryption of all passwords
Saving configurations:
Switch #copy <source> <destination>
-> Switch #copy started running to save the configuration
Or
Exchanger #write-> to save the configuration
Setting the IP address of a Switch:
Switch(config)#interface vlan 1
Switch(config-if)#ip address 10.10.10.1 255.255.255.0
Switch(config-if)#no shutdown
NOTE: the ip address assigned in “interface vlan 1” is the address that other devices must use to managed the switch.
Setting the Default Gateway of a Switch:
Switch(config)#ip default-gateway 10.10.10.254
NOTE: the default-gateway address is where the traffic, originated by the switch, will go when communicating to other network.
Configure security authentication:
Switch (config) # create a local account password Cisco-> #username teacher
Switch (config) # line con 0
Switch (config-line) means does not use the console #no login 0-> password
Switch (config-line) #login-> local means using a local account as the console password
Switch (config) # line vty 0 4
Switch (config-line) #no login-> means not using the Telnet password
Switch (config-line) #login-> local means using a local account as the Telnet password
Configuring banners:
Switch (config) #banner motd$ <Message> $-> configuration a message, will anyone connected to this device.
Switch (config) # #banner login $ <Message> $-> configuration via Telnet will be anyone from connecting to this device message.
Authentication configuration:
Switches running-> display the running configuration (new configuration) #show
Switch the display->#show boot startup configuration (save configuration)
Note: display the run/start command will let you see the FF:
Global configuration
Interface configuration
Routing/service configuration
Console and Telnet administration configuration
Common display commands:
Switch the display->#show version of the hardware and software information
-> #Show exchangers IP interface provides a brief summary of display interface
Exchanger #show interface < interface type >< display module/port >-> interface for more information.
Converter #show MAC-> Mac address-table display the contents of the table.
Determined to be directly connected CISCO devices:
#Show{more}-> the Cdp neighbors displayed directly connected Cisco devices
Note: * from the global configuration in the "no CDP run" to disable this feature for the entire switch, type
To disable this function, every interface, interface mode "no CDP enable" type


0 comments:
Post a Comment