Command Line Interface Guide
Page 3
Contents 1 Command Groups 55 Introduction 55 Command Groups 55 Layer 2 Commands 61 2 Using the CLI 135 135 Introduction 135 Entering and Editing CLI Commands 135 CLI Command Modes 141 3 Layer 2 Commands 187 Introduction 187 4 AAA Commands 188 aaa authentication enable 190 aaa authentication login 191 aaa authorization network default radius 193 Contents 3
Contents 1 Command Groups 55 Introduction 55 Command Groups 55 Layer 2 Commands 61 2 Using the CLI 135 135 Introduction 135 Entering and Editing CLI Commands 135 CLI Command Modes 141 3 Layer 2 Commands 187 Introduction 187 4 AAA Commands 188 aaa authentication enable 190 aaa authentication login 191 aaa authorization network default radius 193 Contents 3
Command Line Interface Guide
Page 4
enable authentication 194 enable password 194 ip http authentication 195 ip https authentication 196 login authentication 197 password (Line Configuration 198 password (User EXEC 199 show authentication methods 200 show users accounts 201 show users login-history 202 username 203 5 ACL Commands 205 deny | permit 207 ip access-group 209 no ip access-group 209 mac access-group 210 mac access-list extended 211 mac access-list extended rename 212 show ip access-lists 213 show mac access-list 214 4 Contents
enable authentication 194 enable password 194 ip http authentication 195 ip https authentication 196 login authentication 197 password (Line Configuration 198 password (User EXEC 199 show authentication methods 200 show users accounts 201 show users login-history 202 username 203 5 ACL Commands 205 deny | permit 207 ip access-group 209 no ip access-group 209 mac access-group 210 mac access-list extended 211 mac access-list extended rename 212 show ip access-lists 213 show mac access-list 214 4 Contents
Command Line Interface Guide
Page 5
6 Address Table Commands 217 bridge aging-time 219 bridge multicast address 219 bridge multicast filtering 221 bridge multicast forbidden address 222 bridge multicast forbidden forward-unregistered . . . 223 bridge ...-table static 229 show bridge multicast address-table 230 show bridge multicast filtering 232 show ports security 232 show ports security addresses 234 7 CDP Interoperability Commands 237 clear isdp table 238 Contents 5
6 Address Table Commands 217 bridge aging-time 219 bridge multicast address 219 bridge multicast filtering 221 bridge multicast forbidden address 222 bridge multicast forbidden forward-unregistered . . . 223 bridge ...-table static 229 show bridge multicast address-table 230 show bridge multicast filtering 232 show ports security 232 show ports security addresses 234 7 CDP Interoperability Commands 237 clear isdp table 238 Contents 5
Command Line Interface Guide
Page 6
isdp advertise-v2 239 isdp enable 239 isdp holdtime 240 isdp timer 241 show isdp 241 show isdp entry 243 show isdp interface 244 show isdp neighbors 246 show isdp traffic 248 8 DHCP Layer 2 Relay Commands 251 dhcp l2relay (Interface Configuration 252 dhcp l2relay circuit-id 253 dhcp l2relay remote-id 254 dhcp l2relay trust 254 dhcp l2relay vlan 255 9 DHCP Snooping Commands 257 ip dhcp snooping 258 ip dhcp snooping binding 259 ip dhcp snooping database 260 ip dhcp snooping database write-delay 261 6 Contents
isdp advertise-v2 239 isdp enable 239 isdp holdtime 240 isdp timer 241 show isdp 241 show isdp entry 243 show isdp interface 244 show isdp neighbors 246 show isdp traffic 248 8 DHCP Layer 2 Relay Commands 251 dhcp l2relay (Interface Configuration 252 dhcp l2relay circuit-id 253 dhcp l2relay remote-id 254 dhcp l2relay trust 254 dhcp l2relay vlan 255 9 DHCP Snooping Commands 257 ip dhcp snooping 258 ip dhcp snooping binding 259 ip dhcp snooping database 260 ip dhcp snooping database write-delay 261 6 Contents
Command Line Interface Guide
Page 7
... snooping binding 266 show ip dhcp snooping database 267 show ip dhcp snooping interfaces 267 show ip dhcp snooping statistics 269 10 Dynamic ARP Inspection Commands . . 271 clear counters ip arp inspection 272 ip arp inspection filter 273 ip arp inspection limit 274 ip arp inspection trust 275 ip arp inspection...
... snooping binding 266 show ip dhcp snooping database 267 show ip dhcp snooping interfaces 267 show ip dhcp snooping statistics 269 10 Dynamic ARP Inspection Commands . . 271 clear counters ip arp inspection 272 ip arp inspection filter 273 ip arp inspection limit 274 ip arp inspection trust 275 ip arp inspection...
Command Line Interface Guide
Page 9
... gvrp registration-forbid 323 gvrp vlan-creation-forbid 324 show gvrp configuration 325 show gvrp error-statistics 326 show gvrp statistics 328 13 IGMP Snooping Commands 331 ip igmp snooping (interface 332 ip igmp snooping host-time-out 333 ip igmp snooping leave-time-out 334 ip igmp snooping mrouter-time...
... gvrp registration-forbid 323 gvrp vlan-creation-forbid 324 show gvrp configuration 325 show gvrp error-statistics 326 show gvrp statistics 328 13 IGMP Snooping Commands 331 ip igmp snooping (interface 332 ip igmp snooping host-time-out 333 ip igmp snooping leave-time-out 334 ip igmp snooping mrouter-time...
Command Line Interface Guide
Page 10
ip igmp snooping maxresponse 341 ip igmp snooping mcrtrexpiretime 342 14 IGMP Snooping Querier Commands . . . 345 ip igmp snooping querier election participate . . . . 347 ip igmp snooping querier query-interval 348 ip igmp snooping querier timer expiry 349 ip igmp snooping querier version 349 show igmp snooping querier 350 15 IP Addressing Commands 353 ip address 354 ip address dhcp 355 ip address vlan 356 ip default-gateway 357 ip domain-lookup 358 ip domain-name 358 ip host 359 ip name-server 360 ipv6 address 361 ipv6 enable 362 ipv6 gateway 363 10 Contents
ip igmp snooping maxresponse 341 ip igmp snooping mcrtrexpiretime 342 14 IGMP Snooping Querier Commands . . . 345 ip igmp snooping querier election participate . . . . 347 ip igmp snooping querier query-interval 348 ip igmp snooping querier timer expiry 349 ip igmp snooping querier version 349 show igmp snooping querier 350 15 IP Addressing Commands 353 ip address 354 ip address dhcp 355 ip address vlan 356 ip default-gateway 357 ip domain-lookup 358 ip domain-name 358 ip host 359 ip name-server 360 ipv6 address 361 ipv6 enable 362 ipv6 gateway 363 10 Contents
Command Line Interface Guide
Page 11
... ipv6 access-list 372 ipv6 access-list rename 373 ipv6 traffic-filter 373 show ipv6 access-lists 375 17 IPv6 MLD Snooping Querier Commands 379 ipv6 mld snooping querier (VLAN mode 380 ipv6 mld snooping querier address 381 ipv6 mld snooping querier election participate. . . . . 382 ipv6 mld snooping querier ...query-interval 382 ipv6 mld snooping querier timer expiry 383 show ipv6 mld snooping querier 384 18 LACP Commands 387 lacp system-priority 388 lacp timeout 389 Contents 11
... ipv6 access-list 372 ipv6 access-list rename 373 ipv6 traffic-filter 373 show ipv6 access-lists 375 17 IPv6 MLD Snooping Querier Commands 379 ipv6 mld snooping querier (VLAN mode 380 ipv6 mld snooping querier address 381 ipv6 mld snooping querier election participate. . . . . 382 ipv6 mld snooping querier ...query-interval 382 ipv6 mld snooping querier timer expiry 383 show ipv6 mld snooping querier 384 18 LACP Commands 387 lacp system-priority 388 lacp timeout 389 Contents 11
Command Line Interface Guide
Page 13
lldp receive 412 lldp timers 412 lldp transmit 413 lldp transmit-mgmt 414 lldp transmit-tlv 415 show lldp 416 show lldp interface 417 show lldp local-device 418 show lldp med 419 show lldp med interface 420 show lldp med local-device 422 show lldp med remote-device 424 show lldp remote-device 427 show lldp statistics 429 21 Port Channel Commands 433 interface port-channel 434 interface range port-channel 435 hashing-mode 436 no hashing-mode 437 show interfaces port-channel 438 show statistics port-channel 439 Contents 13
lldp receive 412 lldp timers 412 lldp transmit 413 lldp transmit-mgmt 414 lldp transmit-tlv 415 show lldp 416 show lldp interface 417 show lldp local-device 418 show lldp med 419 show lldp med interface 420 show lldp med local-device 422 show lldp med remote-device 424 show lldp remote-device 427 show lldp statistics 429 21 Port Channel Commands 433 interface port-channel 434 interface range port-channel 435 hashing-mode 436 no hashing-mode 437 show interfaces port-channel 438 show statistics port-channel 439 Contents 13
Command Line Interface Guide
Page 17
radius-server host 507 radius-server key 508 radius-server retransmit 509 radius-server source-ip 509 radius-server timeout 510 retransmit 511 show radius-servers 512 show radius-servers statistics 514 source-ip 518 timeout 519 usage 520 25 Spanning Tree Commands 521 exit (mst 523 instance (mst 524 name (mst 525 revision (mst 526 show spanning-tree 526 show spanning-tree summary 539 spanning-tree 540 spanning-tree auto-portfast 541 spanning-tree bpdu flooding 542 Contents 17
radius-server host 507 radius-server key 508 radius-server retransmit 509 radius-server source-ip 509 radius-server timeout 510 retransmit 511 show radius-servers 512 show radius-servers statistics 514 source-ip 518 timeout 519 usage 520 25 Spanning Tree Commands 521 exit (mst 523 instance (mst 524 name (mst 525 revision (mst 526 show spanning-tree 526 show spanning-tree summary 539 spanning-tree 540 spanning-tree auto-portfast 541 spanning-tree bpdu flooding 542 Contents 17
Command Line Interface Guide
Page 19
26 Switchport Voice Commands 561 switchport voice detect auto 564 27 TACACS+ Commands 565 port 566 priority 567 show tacacs 568 tacacs-server host 569 tacacs-server key 569 tacacs-server timeout 570 timeout 571 28 VLAN Commands 573 interface vlan 575 interface range vlan 576 mode dvlan-tunnel 577 name 578 protocol group 579 protocol vlan group 580 protocol vlan group all 581 show dvlan-tunnel 582 show dvlan-tunnel interface 582 Contents 19
26 Switchport Voice Commands 561 switchport voice detect auto 564 27 TACACS+ Commands 565 port 566 priority 567 show tacacs 568 tacacs-server host 569 tacacs-server key 569 tacacs-server timeout 570 timeout 571 28 VLAN Commands 573 interface vlan 575 interface range vlan 576 mode dvlan-tunnel 577 name 578 protocol group 579 protocol vlan group 580 protocol vlan group all 581 show dvlan-tunnel 582 show dvlan-tunnel interface 582 Contents 19
Command Line Interface Guide
Page 22
dot1x timeout supp-timeout 628 dot1x timeout tx-period 629 show dot1x 630 show dot1x clients 633 show dot1x ethernet 635 show dot1x statistics 637 show dot1x users 639 dot1x guest-vlan 640 dot1x unauth-vlan 641 show dot1x advanced 641 radius-server attribute 4 644 31 Layer 3 Commands 645 Introduction 645 32 ARP Commands 646 arp cachesize 647 arp dynamicrenew 648 arp purge 649 arp resptime 650 arp retries 651 arp timeout 652 22 Contents
dot1x timeout supp-timeout 628 dot1x timeout tx-period 629 show dot1x 630 show dot1x clients 633 show dot1x ethernet 635 show dot1x statistics 637 show dot1x users 639 dot1x guest-vlan 640 dot1x unauth-vlan 641 show dot1x advanced 641 radius-server attribute 4 644 31 Layer 3 Commands 645 Introduction 645 32 ARP Commands 646 arp cachesize 647 arp dynamicrenew 648 arp purge 649 arp resptime 650 arp retries 651 arp timeout 652 22 Contents
Command Line Interface Guide
Page 23
clear arp-cache 652 clear arp-cache management 653 ip proxy-arp 654 show arp 654 33 DHCP and BOOTP Relay Commands . . . 657 bootpdhcprelay maxhopcount 659 bootpdhcprelay minwaittime 659 bootpdhcprelay cidridoptmode 660 show bootpdhcprelay 661 34 DHCPv6 Commands 663 dns-server 664 domain-name 665 ipv6 dhcp pool 666 ipv6 dhcp relay 667 ipv6 dhcp relay-agent-info-opt 668 ipv6 dhcp relay-agent-info-remote-id-subopt. . . . . . 669 ipv6 dhcp server 669 prefix-delegation 670 service dhcpv6 671 show ipv6 dhcp 672 Contents 23
clear arp-cache 652 clear arp-cache management 653 ip proxy-arp 654 show arp 654 33 DHCP and BOOTP Relay Commands . . . 657 bootpdhcprelay maxhopcount 659 bootpdhcprelay minwaittime 659 bootpdhcprelay cidridoptmode 660 show bootpdhcprelay 661 34 DHCPv6 Commands 663 dns-server 664 domain-name 665 ipv6 dhcp pool 666 ipv6 dhcp relay 667 ipv6 dhcp relay-agent-info-opt 668 ipv6 dhcp relay-agent-info-remote-id-subopt. . . . . . 669 ipv6 dhcp server 669 prefix-delegation 670 service dhcpv6 671 show ipv6 dhcp 672 Contents 23
Command Line Interface Guide
Page 24
show ipv6 dhcp binding 673 show ipv6 dhcp interface 674 show ipv6 dhcp pool 676 show ipv6 dhcp statistics 676 35 DVMRP Commands 679 ip dvmrp metric 680 ip dvmrp trapflags 681 show ip dvmrp 682 show ip dvmrp interface 683 show ip dvmrp neighbor 683 show ip dvmrp nexthop 684 show ip dvmrp prune 685 show ip dvmrp route 685 36 IGMP Commands 687 ip igmp last-member-query-count 688 ip igmp last-member-query-interval 689 ip igmp query-interval 690 ip igmp query-max-response-time 691 ip igmp robustness 692 ip igmp startup-query-count 692 24 Contents
show ipv6 dhcp binding 673 show ipv6 dhcp interface 674 show ipv6 dhcp pool 676 show ipv6 dhcp statistics 676 35 DVMRP Commands 679 ip dvmrp metric 680 ip dvmrp trapflags 681 show ip dvmrp 682 show ip dvmrp interface 683 show ip dvmrp neighbor 683 show ip dvmrp nexthop 684 show ip dvmrp prune 685 show ip dvmrp route 685 36 IGMP Commands 687 ip igmp last-member-query-count 688 ip igmp last-member-query-interval 689 ip igmp query-interval 690 ip igmp query-max-response-time 691 ip igmp robustness 692 ip igmp startup-query-count 692 24 Contents
Command Line Interface Guide
Page 26
39 IP Routing Commands 719 ip address 720 ip mtu 721 ip netdirbcast 722 ip route 723 ip route default 724 ip route distance 725 ip routing 726 routing 727 show ip brief 728 show ip interface 728 show ip protocols 731 show ip route 732 show ip route preferences 734 show ip route summary 735 show ip stats 736 vlan routing 738 40 IPv6 MLD Snooping Commands 739 ipv6 mld snooping groupmembership-interval . . . . 741 ipv6 mld snooping maxresponse 741 26 Contents
39 IP Routing Commands 719 ip address 720 ip mtu 721 ip netdirbcast 722 ip route 723 ip route default 724 ip route distance 725 ip routing 726 routing 727 show ip brief 728 show ip interface 728 show ip protocols 731 show ip route 732 show ip route preferences 734 show ip route summary 735 show ip stats 736 vlan routing 738 40 IPv6 MLD Snooping Commands 739 ipv6 mld snooping groupmembership-interval . . . . 741 ipv6 mld snooping maxresponse 741 26 Contents
Command Line Interface Guide
Page 27
... 743 ipv6 mld snooping (Interface 744 ipv6 mld snooping (VLAN 744 show ipv6 mld snooping 745 show ipv6 mld snooping groups 747 41 IPv6 Multicast Commands 749 ipv6 pimsm (VLAN Interface config 750 ipv6 pimsm bsr-border 751 ipv6 pimsm bsr-candidate 752 ipv6 pimsm dr-priority 753 ipv6 pimsm hello...
... 743 ipv6 mld snooping (Interface 744 ipv6 mld snooping (VLAN 744 show ipv6 mld snooping 745 show ipv6 mld snooping groups 747 41 IPv6 Multicast Commands 749 ipv6 pimsm (VLAN Interface config 750 ipv6 pimsm bsr-border 751 ipv6 pimsm bsr-candidate 752 ipv6 pimsm dr-priority 753 ipv6 pimsm hello...
Command Line Interface Guide
Page 28
show ipv6 pimsm neighbor 762 show ipv6 pimsm rphash 763 show ipv6 pimsm rp mapping 763 42 IPv6 Routing Commands 765 clear ipv6 statistics 767 ipv6 address 768 ipv6 enable 769 ipv6 forwarding 770 ipv6 host 771 ipv6 mld last-member-query-count 772 ipv6 mld last-member-query-interval 772 ipv6 mld-proxy 773 ipv6 mld-proxy reset-status 774 ipv6 mld-proxy unsolicit-rprt-interval 774 ipv6 mld query-interval 775 ipv6 mld query-max-response-time 776 ipv6 mld router 777 ipv6 mtu 777 ipv6 nd dad attempts 778 ipv6 nd managed-config-flag 779 ipv6 nd ns-interval 780 28 Contents
show ipv6 pimsm neighbor 762 show ipv6 pimsm rphash 763 show ipv6 pimsm rp mapping 763 42 IPv6 Routing Commands 765 clear ipv6 statistics 767 ipv6 address 768 ipv6 enable 769 ipv6 forwarding 770 ipv6 host 771 ipv6 mld last-member-query-count 772 ipv6 mld last-member-query-interval 772 ipv6 mld-proxy 773 ipv6 mld-proxy reset-status 774 ipv6 mld-proxy unsolicit-rprt-interval 774 ipv6 mld query-interval 775 ipv6 mld query-max-response-time 776 ipv6 mld router 777 ipv6 mtu 777 ipv6 nd dad attempts 778 ipv6 nd managed-config-flag 779 ipv6 nd ns-interval 780 28 Contents
Command Line Interface Guide
Page 30
show ipv6 mld traffic 808 show ipv6 neighbors 809 show ipv6 pimdm 810 show ipv6 pimdm interface 811 show ipv6 pimdm neighbor 812 show ipv6 route 813 show ipv6 route preferences 814 show ipv6 route summary 815 show ipv6 traffic 816 show ipv6 vlan 820 traceroute ipv6 821 43 Loopback Interface Commands 823 show interfaces loopback 824 44 Multicast Commands 827 ip mroute 829 ip multicast 830 ip multicast ttl-threshold 831 ip pimsm 832 ip pimsm bsr-border 833 ip pimsm bsr-candidate 833 30 Contents
show ipv6 mld traffic 808 show ipv6 neighbors 809 show ipv6 pimdm 810 show ipv6 pimdm interface 811 show ipv6 pimdm neighbor 812 show ipv6 route 813 show ipv6 route preferences 814 show ipv6 route summary 815 show ipv6 traffic 816 show ipv6 vlan 820 traceroute ipv6 821 43 Loopback Interface Commands 823 show interfaces loopback 824 44 Multicast Commands 827 ip mroute 829 ip multicast 830 ip multicast ttl-threshold 831 ip pimsm 832 ip pimsm bsr-border 833 ip pimsm bsr-candidate 833 30 Contents
Command Line Interface Guide
Page 35
46 OSPFv3 Commands 931 area nssa 934 area nssa default-info-originate 935 area nssa no-redistribute 936 area nssa no-summary 937 area nssa translator-role 938 area nssa translator-stab-intv 939 area range 940 area stub 941 area stub no-summary 942 area virtual-link 942 area virtual-link dead-interval 943 area virtual-link hello-interval 944 area virtual-link retransmit-interval 945 area virtual-link transmit-delay 946 default-information originate 947 default-metric 948 distance ospf 948 enable 949 exit-overflow-interval 950 external-lsdb-limit 951 Contents 35
46 OSPFv3 Commands 931 area nssa 934 area nssa default-info-originate 935 area nssa no-redistribute 936 area nssa no-summary 937 area nssa translator-role 938 area nssa translator-stab-intv 939 area range 940 area stub 941 area stub no-summary 942 area virtual-link 942 area virtual-link dead-interval 943 area virtual-link hello-interval 944 area virtual-link retransmit-interval 945 area virtual-link transmit-delay 946 default-information originate 947 default-metric 948 distance ospf 948 enable 949 exit-overflow-interval 950 external-lsdb-limit 951 Contents 35
Command Line Interface Guide
Page 37
... show ipv6 ospf virtual-link 990 show ipv6 ospf virtual-link brief 992 47 PIM-DM Commands 993 show ip pimdm 994 show ip pimdm interface 995 show ip pimdm neighbor 996 48 PIM-SM Commands 997 ip pimsm spt-threshold 998 ip pim-trapflags 999 show ip pimsm 1000 Contents 37
... show ipv6 ospf virtual-link 990 show ipv6 ospf virtual-link brief 992 47 PIM-DM Commands 993 show ip pimdm 994 show ip pimdm interface 995 show ip pimdm neighbor 996 48 PIM-SM Commands 997 ip pimsm spt-threshold 998 ip pim-trapflags 999 show ip pimsm 1000 Contents 37