Cisco Switch Basics
a) Used when setting up the switch for the first time
b) Used when applying changes to the switch that will result in disconnection of the Internet
Most often used method after setting up the switch
Allow Web GUI to be used, but rarely used
Switch>Switch> enable
Switch#Switch# configure terminal
Switch(config)#Switch# show ru<TAB>
Switch# show running-configSwitch#show r?
radius redundancy region registry
reload rep resource rhosts
rib rif rmon rom-monitor
romvar route-map route-tag rpl
running-config
Switch# sh runSwitch# show running-configSwitch> enaSwitch> enableSwitch# conf tSwitch# configure terminal<command> | include <expr><command> | exclude <expr>output lines that contain <expr>
output lines without <expr>
FastEthernet0/1 or Fa0/1
GigabitEthernet1/0/2 or Gi1/0/2
Port-channel1 or Po1
Vlan543 or Vl543
show running-config : running configuration
show interfaces : details of all interfaces
show interfaces Fa0/1 : details of a specified interface
show interfaces status : interface status
show vlan : VLANs in VLAN database
show mac address-table : MAC address/port mapping
show arp : ARP table
show version : hardware/software information
show ?
Switch# conf tenter configuration mode
Switch(config)# hostname NASA
NASA(config)#Switch(config)# enable password PASSWORD
Switch(config)# enable secret 0 PASSWORD
Switch(config)# do show running-config | include enable
enable password PASSWORD
enable secret 5 $1$mERr$cP1uxB/ASHbnPQTLzT8H10Switch(config)#enable password PASSWORD
Switch(config)#service password-encryption
Switch(config)#do show running-config | include enable
enable password 7 08116D7D3A2E2A2536Switch(config)# int fa0/1
Switch(config-if)#Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 777Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport allowed vlan 777-888,999A switch port is either a access port or a trunk port
Switch(config)# vlan 777
Switch(config-vlan)# show ?Switch(config)# int vlan 777
Switch(config-if)# show ?Switch(config-if)# ip address 192.168.77.1 255.255.255.0| VLAN | VLAN interface |
|---|---|
| virtual LAN | a virtual interface in VLAN |
| allow multiple LANs to exist on a single switch | can be used for inter-vlan routing |
| a network | an interface |
Switch(config)# int port-channel 1
Switch(config-if)#Switch(config)# int range fa0/1-2
Switch(config-if)# channel-group 1 mode active
Switch(config-if)# exitWill a port channel form?
LACP
PAgP
| active | passive | |
| active | Yes | Yes |
| passive | Yes | No |
| desirable | auto | |
| desirable | Yes | Yes |
| auto | Yes | No |
Switch(config)# line vty 0 4
Switch(config-line)#Switch(config-line)# loginSwitch(config-line)# password PASSWORDSwitch# copy running-config startup-configSwitch# write memorySwitch# wrThree methods to choose from
Remember to save config before exiting!!
Switch(config)# no shutdownAfter configuring an interface, if the config does not take effect, check if the interface is shut down
trunk VLAN 100,200
Click "CLI" on switch windows to configure settings.
Use "Check results" on the "PT Activity" window to check your goals.