Replacing the Default Secure-site Certificate 3-59
Configuring the Secure Shell 3-60
Generating the Host Key Pair 3-61
Configuring the SSH Server 3-63
Configuring Port Security 3-65
Configuring 802.1X Port Authentication 3-67
Displaying 802.1X Global Settings 3-68
Configuring 802.1X Global Settings 3-69
vi
Contents
Configuring Port Settings for 802.1X 3-69
Displaying 802.1X Statistics 3-72
Filtering IP Addresses for Management Access 3-74
Access Control Lists 3-76
Configuring Access Control Lists 3-76
Setting the ACL Name and Type 3-77
Configuring a Standard IP ACL 3-77
Configuring an Extended IP ACL 3-78
Configuring a MAC ACL 3-81
Configuring ACL Masks 3-83
Specifying the Mask Type 3-83
Configuring an IP ACL Mask 3-84
Configuring a MAC ACL Mask 3-86
Binding a Port to an Access Control List 3-87
Port Configuration 3-88
Displaying Connection Status 3-88
Configuring Interface Connections 3-91
Creating Trunk Groups 3-93
Statically Configuring a Trunk 3-94
Enabling LACP on Selected Ports 3-95
Configuring LACP Parameters 3-97
Displaying LACP Port Counters 3-100
Displaying LACP Settings and Status for the Local Side 3-101
Displaying LACP Settings and Status for the Remote Side 3-103
Setting Broadcast Storm Thresholds 3-104
Configuring Port Mirroring 3-106
Configuring Rate Limits 3-107
Showing Port Statistics 3-108
Address Table Settings 3-112
Setting Static Addresses 3-112
Displaying the Address Table 3-113
Changing the Aging Time 3-115
Spanning Tree Algorithm Configuration 3-115
Displaying Global Settings 3-116
Configuring Global Settings 3-119
Displaying Interface Settings 3-123
Configuring Interface Settings 3-126
Configuring Multiple Spanning Trees 3-128
Displaying Interface Settings for MSTP 3-132
Configuring Interface Settings for MSTP 3-133
VLAN Configuration 3-135
IEEE 802.1Q VLANs 3-135
Enabling or Disabling GVRP (Global Setting) 3-138
Displaying Basic VLAN Information 3-138
Displaying Current VLANs 3-139
vii
Contents
Creating VLANs 3-140
Adding Static Members to VLANs (VLAN Index) 3-141
Adding Static Members to VLANs (Port Index) 3-143
Configuring VLAN Behavior for Interfaces 3-144
Configuring Private VLANs 3-146
Enabling Private VLANs 3-146
Configuring Uplink and Downlink Ports 3-147
Configuring Protocol-Based VLANs 3-147
Configuring Protocol Groups 3-148
Mapping Protocols to VLANs 3-149
Class of Service Configuration 3-150
Layer 2 Queue Settings 3-150
Setting the Default Priority for Interfaces 3-150
Mapping CoS Values to Egress Queues 3-152
Selecting the Queue Mode 3-154
Setting the Service Weight for Traffic Classes 3-154
Layer 3/4 Priority Settings 3-156
Mapping Layer 3/4 Priorities to CoS Values 3-156
Selecting IP Precedence/DSCP Priority 3-156
Mapping IP Precedence 3-157
Mapping DSCP Priority 3-158
Mapping IP Port Priority 3-160
Quality of Service 3-161
Configuring Quality of Service Parameters 3-162
Configuring a Class Map 3-162
Creating QoS Policies 3-165
Attaching a Policy Map to Ingress Queues 3-168
Multicast Filtering 3-169
IGMP Protocol 3-169
Layer 2 IGMP (Snooping and Query) 3-170
Configuring IGMP Snooping and Query Parameters 3-171
Displaying Interfaces Attached to a Multicast Router 3-173
Specifying Static Interfaces for a Multicast Router 3-174
Displaying Port Members of Multicast Services 3-175
Assigning Ports to Multicast Services 3-176
Layer 3 IGMP (Query used with Multicast Routing) 3-177
Configuring IGMP Interface Parameters 3-177
Displaying Multicast Group Information 3-180
Configuring Domain Name Service 3-181
Configuring General DNS Server Parameters 3-181
Configuring Static DNS Host to Address Entries 3-183
Displaying the DNS Cache 3-185
Dynamic Host Configuration Protocol 3-186
Configuring DHCP Relay Service 3-186
Configuring the DHCP Server 3-188
viii
Contents
Enabling the Server, Setting Excluded Addresses 3-188
Configuring Address Pools 3-190
Displaying Address Bindings 3-194
Configuring Router Redundancy 3-195
Virtual Router Redundancy Protocol 3-196
Configuring VRRP Groups 3-196
Displaying VRRP Global Statistics 3-201
Displaying VRRP Group Statistics 3-202
IP Routing 3-204
Overview 3-204
Initial Configuration 3-204
IP Switching 3-205
Routing Path Management 3-206
Routing Protocols 3-206
Basic IP Interface Configuration 3-207
Configuring IP Routing Interfaces 3-208
Address Resolution Protocol 3-210
Proxy ARP 3-210
Basic ARP Configuration 3-211
Configuring Static ARP Addresses 3-212
Displaying Dynamically Learned ARP Entries 3-213
Displaying Local ARP Entries 3-214
Displaying ARP Statistics 3-215
Displaying Statistics for IP Protocols 3-216
IP Statistics 3-216
ICMP Statistics 3-218
UDP Statistics 3-220
TCP Statistics 3-221
Configuring Static Routes 3-222
Displaying the Routing Table 3-223
Configuring the Routing Information Protocol 3-224
Configuring General Protocol Settings 3-225
Specifying Network Interfaces for RIP 3-227
Configuring Network Interfaces for RIP 3-228
Displaying RIP Information and Statistics 3-231
Configuring the Open Shortest Path First Protocol 3-234
Configuring General Protocol Settings 3-235
Configuring OSPF Areas 3-238
Configuring Area Ranges (Route Summarization for ABRs) 3-241
Configuring OSPF Interfaces 3-243
Configuring Virtual Links 3-247
Configuring Network Area Addresses 3-249
Configuring Summary Addresses (for External AS Routes) 3-252
Redistributing External Routes 3-253
Configuring NSSA Settings 3-254
ix
Contents
Displaying Link State Database Information 3-256
Displaying Information on Border Routers 3-258
Displaying Information on Neighbor Routers 3-259
Multicast Routing 3-260
Configuring Global Settings for Multicast Routing 3-260
Displaying the Multicast Routing Table 3-261
Configuring DVMRP 3-264
Configuring Global DVMRP Settings 3-264
Configuring DVMRP Interface Settings 3-267
Displaying Neighbor Information 3-269
Displaying the Routing Table 3-270
Configuring PIM-DM 3-271
Configuring Global PIM-DM Settings 3-271
Configuring PIM-DM Interface Settings 3-272
Displaying Interface Information 3-275
Displaying Neighbor Information 3-275
Chapter 4: Command Line Interface 4-1
Using the Command Line Interface 4-1
Accessing the CLI 4-1
Console Connection 4-1
Telnet Connection 4-1
Entering Commands 4-3
Keywords and Arguments 4-3
Minimum Abbreviation 4-3
Command Completion 4-3
Getting Help on Commands 4-3
Showing Commands 4-4
Partial Keyword Lookup 4-5
Negating the Effect of Commands 4-5
Using Command History 4-5
Understanding Command Modes 4-6
Exec Commands 4-6
Configuration Commands 4-7
Command Line Processing 4-9
databits 4-17
parity 4-17
speed 4-18
stopbits 4-18
disconnect 4-19
show line 4-19
General Commands 4-20
enable 4-20
disable 4-21
configure 4-22
show history 4-22
reload 4-23
end 4-23
exit 4-24
quit 4-24
System Management Commands 4-25
Device Designation Commands 4-25
prompt 4-25
hostname 4-26
switch renumber 4-26
User Access Commands 4-27
username 4-27
enable password 4-28
IP Filter Commands 4-29
management 4-29
show management 4-30
Web Server Commands 4-31
ip http port 4-31
ip http server 4-31
ip http secure-server 4-32
ip http secure-port 4-33
Telnet Server Commands 4-34
ip telnet server 4-34
Secure Shell Commands 4-34
ip ssh server 4-37
ip ssh timeout 4-37
ip ssh authentication-retries 4-38
ip ssh server-key size 4-38
delete public-key 4-39
ip ssh crypto host-key generate 4-39
ip ssh crypto zeroize 4-40
ip ssh save host-key 4-41
show ip ssh 4-41
show ssh 4-41
show public-key 4-42
xi
Contents
Event Logging Commands 4-43
logging on 4-43
logging history 4-44
logging host 4-45
logging facility 4-45
logging trap 4-46
clear log 4-47
show logging 4-47
show log 4-49
SMTP Alert Commands 4-49
logging sendmail host 4-50
logging sendmail level 4-50
logging sendmail source-email 4-51
logging sendmail destination-email 4-51
logging sendmail 4-52
show logging sendmail 4-52
Time Commands 4-53
sntp client 4-53
sntp server 4-54
sntp poll 4-55
show sntp 4-55
clock timezone 4-56
calendar set 4-56
show calendar 4-57
System Status Commands 4-57
show startup-config 4-57
show running-config 4-59
show system 4-61
show users 4-62
show version 4-62
Frame Size Commands 4-63
jumbo frame 4-63
Flash/File Commands 4-64
copy 4-64
delete 4-67
dir 4-67
whichboot 4-68
boot system 4-69
access-list ip 4-89
permit, deny (Standard ACL) 4-90
permit, deny (Extended ACL) 4-91
show ip access-list 4-93
access-list ip mask-precedence 4-93
mask (IP ACL) 4-94
show access-list ip mask-precedence 4-97
ip access-group 4-98
show ip access-group 4-98
MAC ACLs 4-99
access-list mac 4-99
permit, deny (MAC ACL) 4-100
show mac access-list 4-101
access-list mac mask-precedence 4-102
mask (MAC ACL) 4-102
show access-list mac mask-precedence 4-104
mac access-group 4-105
show mac access-group 4-105
ACL Information 4-106
show access-list 4-106
xiii
Contents
show access-group 4-106
SNMP Commands 4-107
snmp-server 4-107
show snmp 4-108
snmp-server community 4-109
snmp-server contact 4-109
snmp-server location 4-110
snmp-server host 4-110
snmp-server enable traps 4-112
snmp-server engine-id 4-113
show snmp engine-id 4-114
snmp-server view 4-115
show snmp view 4-116
snmp-server group 4-116
show snmp group 4-118
snmp-server user 4-119
show snmp user 4-120
DHCP Commands 4-121
DHCP Client 4-121
ip dhcp client-identifier 4-121
ip dhcp restart client 4-122
DHCP Relay 4-123
ip dhcp restart relay 4-123
ip dhcp relay server 4-124
DHCP Server 4-124
service dhcp 4-125
ip dhcp excluded-address 4-125
ip dhcp pool 4-126
network 4-127
default-router 4-127
domain-name 4-128
dns-server 4-128
next-server 4-129
bootfile 4-129
netbios-name-server 4-130
netbios-node-type 4-131
lease 4-131
host 4-132
client-identifier 4-133
hardware-address 4-134
clear ip dhcp binding 4-134
show ip dhcp binding 4-135
DNS Commands 4-136
ip host 4-136
clear host 4-137
xiv
Contents
ip domain-name 4-137
ip domain-list 4-138
ip name-server 4-139
ip domain-lookup 4-140
show hosts 4-141
show dns 4-141
show dns cache 4-142
clear dns cache 4-142
Interface Commands 4-143
interface 4-143
description 4-144
speed-duplex 4-144
negotiation 4-145
capabilities 4-146
media-type 4-148
shutdown 4-148
switchport broadcast packet-rate 4-149
clear counters 4-149
show interfaces status 4-150
show interfaces counters 4-151
show interfaces switchport 4-152
protocol-vlan protocol-group (Configuring Groups) 4-199
protocol-vlan protocol-group (Configuring Interfaces) 4-199
show protocol-vlan protocol-group 4-200
show interfaces protocol-vlan protocol-group 4-201
GVRP and Bridge Extension Commands 4-202
bridge-ext gvrp 4-202
xvi
Contents
show bridge-ext 4-202
switchport gvrp 4-203
show gvrp configuration 4-203
garp timer 4-204
show garp timer 4-205
Priority Commands 4-206
Priority Commands (Layer 2) 4-206
queue mode 4-206
switchport priority default 4-207
queue bandwidth 4-208
queue cos-map 4-209
show queue mode 4-210
show queue bandwidth 4-210
show queue cos-map 4-210
Priority Commands (Layer 3 and 4) 4-211
map ip port (Global Configuration) 4-211
map ip port (Interface Configuration) 4-212
map ip precedence (Global Configuration) 4-212
map ip precedence (Interface Configuration) 4-213
map ip dscp (Global Configuration) 4-214
map ip dscp (Interface Configuration) 4-214
show map ip port 4-215
show map ip precedence 4-216
show map ip dscp 4-217
Quality of Service Commands 4-218
class-map 4-219
match 4-220
policy-map 4-221
class 4-222
set 4-223
police 4-223
service-policy 4-224
show class-map 4-225
show policy-map 4-225
show policy-map interface 4-226
Multicast Filtering Commands 4-226
IGMP Snooping Commands 4-227
ip igmp snooping 4-227
ip igmp snooping vlan static 4-227
ip igmp snooping version 4-228
show ip igmp snooping 4-228
show mac-address-table multicast 4-229
IGMP Query Commands (Layer 2) 4-230
ip igmp snooping querier 4-230
ip igmp snooping query-count 4-230
xvii
Contents
ip igmp snooping query-interval 4-231
ip igmp snooping query-max-response-time 4-231
ip igmp snooping router-port-expire-time 4-232
Static Multicast Routing Commands 4-233
ip igmp snooping vlan mrouter 4-233
show ip igmp snooping mrouter 4-234
IGMP Commands (Layer 3) 4-234
ip igmp 4-235
ip igmp robustval 4-235
ip igmp query-interval 4-236
ip igmp max-resp-interval 4-237
ip igmp last-memb-query-interval 4-237
ip igmp version 4-238
show ip igmp interface 4-239
clear ip igmp group 4-239
show ip igmp groups 4-240
IP Interface Commands 4-241
Basic IP Configuration 4-241
ip address 4-242
ip default-gateway 4-243
show ip interface 4-244
show ip redirects 4-244
ping 4-245
Address Resolution Protocol (ARP) 4-246
arp 4-246
arp-timeout 4-247
clear arp-cache 4-247
show arp 4-247
ip proxy-arp 4-248
IP Routing Commands 4-249
Global Routing Configuration 4-249
ip routing 4-249
ip route 4-250
clear ip route 4-251
show ip route 4-251
show ip host-route 4-252
show ip traffic 4-253
Routing Information Protocol (RIP) 4-254
router rip 4-254
timers basic 4-255
network 4-256
neighbor 4-256
version 4-257
ip rip receive version 4-258
ip rip send version 4-259
xviii
Contents
ip split-horizon 4-260
ip rip authentication key 4-260
ip rip authentication mode 4-261
show rip globals 4-262
show ip rip 4-262
Open Shortest Path First (OSPF) 4-264
router ospf 4-265
router-id 4-265
compatible rfc1583 4-266
default-information originate 4-267
timers spf 4-268
area range 4-268
area default-cost 4-269
summary-address 4-270
redistribute 4-270
network area 4-271
area stub 4-272
area nssa 4-273
area virtual-link 4-274
ip ospf authentication 4-276
ip ospf authentication-key 4-277
ip ospf message-digest-key 4-278
ip ospf cost 4-279
ip ospf dead-interval 4-279
ip ospf hello-interval 4-280
ip ospf priority 4-280
ip ospf retransmit-interval 4-281
ip ospf transmit-delay 4-282
show ip ospf 4-282
show ip ospf border-routers 4-283
show ip ospf database 4-284
show ip ospf interface 4-292
show ip ospf neighbor 4-293
show ip ospf summary-address 4-294
show ip ospf virtual-links 4-294
Multicast Routing Commands 4-295
Static Multicast Routing Commands 4-295
ip igmp snooping vlan mrouter 4-295
show ip igmp snooping mrouter 4-296
General Multicast Routing Commands 4-297
ip multicast-routing 4-297
show ip mroute 4-297
DVMRP Multicast Routing Commands 4-299
router dvmrp 4-299
probe-interval 4-300
xix
Contents
nbr-timeout 4-301
report-interval 4-301
flash-update-interval 4-302
prune-lifetime 4-302
default-gateway 4-303
ip dvmrp 4-303
ip dvmrp metric 4-304
clear ip dvmrp route 4-305
show router dvmrp 4-305
show ip dvmrp route 4-306
show ip dvmrp neighbor 4-307
show ip dvmrp interface 4-307
PIM-DM Multicast Routing Commands 4-308
router pim 4-308
ip pim dense-mode 4-309
ip pim hello-interval 4-310
ip pim hello-holdtime 4-310
ip pim trigger-hello-interval 4-311
ip pim join-prune-holdtime 4-311
ip pim graft-retry-interval 4-312
ip pim max-graft-retries 4-312
show router pim 4-313
show ip pim interface 4-313
show ip pim neighbor 4-314
Router Redundancy Commands 4-314
Virtual Router Redundancy Protocol Commands 4-315
vrrp ip 4-315
vrrp authentication 4-316
vrrp priority 4-317
vrrp timers advertise 4-318
vrrp preempt 4-318
show vrrp 4-319
show vrrp interface 4-321
show vrrp router counters 4-322
show vrrp interface counters 4-322
clear vrrp router counters 4-323
clear vrrp interface counters 4-323
xx
Contents
Appendix A: Software Specifications A-1
Software Features A-1
Management Features A-2
Standards A-2
Management Information Bases A-3
Appendix B: Troubleshooting B-1
Problems Accessing the Management Interface B-1
Using System Logs B-2