Li-Wei
Console Port (Serial RS232, USB)
VTY (Telnet, SSH)
HTTP, HTTPS
Switch>Switch>enable
Switch#Switch#configure terminal
Switch(config)#exit
Switch#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(config)#?
Configure commands:
aaa Authentication, Authorization and Accounting.
access-list Add an access list entry
access-session Access Sesion Global Configuration Commands
alias Create command alias
ancp Configure ANCP
archive Archive the configuration
arp Set a static ARP entry
...
FastEthernet0/1 or Fa0/1GigabitEthernet1/0/2 or Gi1/0/2TenGigabitEthernet1/0/3 or Te1/0/3Port-channel1 or Po1Vlan543 or Vl543Output Modifier: |
<command> | include <expr>
output lines that include <expr>
<command> | exclude <expr>
output lines without <expr>
<command> | begin <expr>
Switch#show arp | include 140.112.30.34
Internet 140.112.30.34 102 98f2.b3ee.bb4e ARPA Vlan30Note: spaces around "|" cannot be omitted!
show running-config : running configuration
show interfaces : detail of all interfaces
show interfaces Fa0/1 : detail 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 infomation
show ?
Switch#configure terminal
Switch(config)#hostname <name>
enable password / enable secret
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/ASHbnPQTLzT8H10
service password-encryption
Switch(config)#enable password PASSWORD
Switch(config)#service password-encryption
Switch(config)#do show running-config | include enable
enable password 7 08116D7D3A2E2A2536
no <command>
: set hostname
: set enable password
: enable password encryption feature
: negates a command
Switch(config)#interface FastEthernet0/1
Switch(config-if)#Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 543Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk allowed vlan 543,544Switch(config-if)#ip address 192.168.252.254 255.255.255.0Switch(config-if)#channel-group 1 mode activeSwitch(config)#interface Port-channel 1
Switch(config-if)#Switch(config)#line vty 0 4
Switch(config-line)#Switch(config-line)#loginSwitch(config-line)#password PASSWORDSwitch#copy running-config startup-configSwitch#write memoryMethod 1:
Method 2:
Cisco Packet Tracer
Note: use "Check results" on the "PT Activity" window to check your goals.
trunk VLAN 100, 200