Switching command Overview

Source: Internet
Author: User
Tags http authentication command access

1. Set the host name/system name on the IOS-based switch:
Switch (config) # hostname
Set the host name/system name on the CLI-based switch:
Switch (enable) set system name-string

2. Set the logon password on the IOS-based switch:
Switch (config) # enable password level 1 password
Set the logon password on the CLI-based switch:
Switch (enable) set password
Switch (enable) set enalbepass

3. Set remote access on the IOS-based switch:
Switch (config) # interface vlan 1
Switch (config-if) # ip address ip-address netmask
Switch (config-if) # ip default-gateway ip-address
Set remote access on a CLI-based switch:
Switch (enable) set interface sc0 ip-address netmask broadcast-address
Switch (enable) set interface sc0 vlan
Switch (enable) set ip route default gateway

4. Enable and browse CDP information on an IOS-based switch:
Switch (config-if) # cdp enable
Switch (config-if) # no cdp enable
To view CDP announcement information for Cisco adjacent devices:
Switch # show cdp interface [type modle/port]
Switch # show cdp neighbors [type module/port] [detail]
Enable and browse CDP information on a CLI-based switch:
Switch (enable) set cdp {enable | disable} module/port
To view CDP announcement information for Cisco adjacent devices:
Switch (enable) show cdp neighbors [module/port] [vlan | duplex | capabilities | detail]

5. Description of the port of the IOS-based switch:
Switch (config-if) # description-string
Description of the port of the CLI-based switch:
Switch (enable) set port name module/number description-string

6. Set the port speed on the IOS-based switch:
Switch (config-if) # speed {10 | 100 | auto}
Set the port speed on the CLI-based switch:
Switch (enable) set port speed moudle/number {10 | 100 | auto}
Switch (enable) set port speed moudle/number {4 | 16 | auto}

7. Set the Ethernet link mode on the IOS-based switch:
Switch (config-if) # duplex {auto | full | half}
Set the Ethernet link mode on a CLI-based switch:
Switch (enable) set port duplex module/number {full | half}

8. Configure the static VLAN on the IOS-based switch:
Switch # vlan database
Switch (vlan) # vlan-num name vla
Switch (vlan) # exit
Switch # configure teriminal
Switch (config) # interface module/number
Switch (config-if) # switchport mode access
Switch (config-if) # switchport access vlan-num
Switch (config-if) # end
Configure static VLAN on a CLI-based switch:
Switch (enable) set vlan-num [name]
Switch (enable) set vlan-num mod-num/port-list

9. Configure VLAN trunk lines on IOS-based switches:
Switch (config) # interface mod/port
Switch (config-if) # switchport mode trunk
Switch (config-if) # switchport trunk encapsulation {isl | dotlq}
Switch (config-if) # switchport trunk allowed vlan remove vlan-list
Switch (config-if) # switchport trunk allowed vlan add vlan-list
Configure VLAN trunk lines on a CLI-based switch:
Switch (enable) set trunk module/port [on | off | desirable | auto | nonegotiate]
Vlan-range [isl | dotlq | dotl0 | lane | negotiate]

10. Configure The VTP management domain on the IOS-based switch:
Switch # vlan database
Switch (vlan) # vtp domain-name
Configure the VTP management domain on a CLI-based switch:
Switch (enable) set vtp [domain-name]

11. Configure The VTP mode on the IOS-based switch:
Switch # vlan database
Switch (vlan) # vtp domain-name
Switch (vlan) # vtp {sever | cilent | transparent}
Switch (vlan) # vtp password
Configure the VTP mode on a CLI-based switch:
Switch (enable) set vtp [domain-name] [mode {sever | cilent | transparent}] [password]

12. Configure The VTP version on the IOS-based switch:
Switch # vlan database
Switch (vlan) # vtp v2-mode
Configure the VTP version on the CLI-based switch:
Switch (enable) set vtp v2 enable

13. Enable VTP tailoring on IOS-based switches:
Switch # vlan database
Switch (vlan) # vtp pruning
Start VTP tailoring on the cl I-based switch:
Switch (enable) set vtp pruning enable

14. Configure the Ethernet channel on the IOS-based switch:
Switch (config-if) # port group-number [distribution {source | destination}]
Configure the Ethernet channel on a CLI-based switch:
Switch (enable) set port channel moudle/port-range mode {on | off | desirable | auto}

15. Adjust the root path cost on the IOS-based switch:
Switch (config-if) # spanning-tree [vlan-list] cost
Adjust the root path cost on a CLI-based switch:
Switch (enable) set spantree portcost moudle/port cost
Switch (enable) set spantree portvlancost moudle/port [cost] [vlan-list]

16. Adjust the port ID on the IOS-based switch:
Switch (config-if) # spanning-tree [vlan-list] port-priority
Adjust the port ID on the CLI-based switch:
Switch (enable) set spantree portpri {mldule/port} priority
Switch (enable) set spantree portvlanpri {module/port} priority [vlans]

17. Modify the STP clock on the IOS-based switch:
Switch (config) # spanning-tree [vlan-list] hello-time seconds
Switch (config) # spanning-tree [vlan-list] forward-time seconds
'Switch (config) # spanning-tree [vlan-list] max-age seconds
Modify the STP clock on a CLI-based switch:
Switch (enable) set spantree hello interval [vlan]
Switch (enable) set spantree fwddelay delay [vlan]
Switch (enable) set spantree maxage agingtiame [vlan]

18. enable or disable the Port Fast feature on the IOS-based switch Port:
Switch (config-if) # spanning-tree portfast
Enable or disable the Port Fast feature on the CLI-based Switch Port:
Switch (enable) set spantree portfast {module/port} {enable | disable}

19. enable or disable UplinkFast features on IOS-based switch ports:
Switch (config) # spanning-tree uplinkfast [max-update-rate pkts-per-second]
Enable or disable UplinkFast features on CLI-based switch ports:
Switch (enable) set spantree uplinkfast {enable | disable} [rate update-rate] [all-protocols off | on]

[1] [2] [3] [4] Next page

Article entry: csh responsible editor: csh

20. to configure a switch as a command switch for a cluster, first assign an IP address to the management interface, and then run the following command: switch (config) # cluster enable cluster-name

21. To delete a VLAN from a relay link, run the following command:
Switch (enable) clear trunk module/port vlan-range

22. Use show vtp domain to display the VTP Parameters of the management domain.

23. Use show vtp statistics to display the VTP Parameters of the management domain.

24. The command to define TrBRF on a Catalyst Switch is as follows:
Switch (enable) set vlan-name [name] type trbrf bridge-num [stp {ieee | ibm}]

25. The command to define TrCRF on a Catalyst Switch is as follows:
Switch (enable) set vlan-num [name] type trcrf
{Ring hex-ring-num | decring decimal-ring-num} parent vlan-num

26. After creating a TrBRF VLAN, you can allocate a switch port to it. For Ethernet Switching, you can use the following command to allocate a port to the VLAN:
Switch (enable) set vlan-num mod-num/port-num

27. Run the show spantree command to display the STP status of a switch port.

28. To configure an elan les and BUS, run the following command:
ATM (config) # interface atm number. subint multioint

Who created the human world? It is our labor masses.
All belongs to the workers. How can we tolerate parasites!
The most hateful snakes and beasts eat our flesh and blood. Once they are wiped out, the bright red sun shines all over the world!

ATM (config-subif) # lane serber-bus ethernet elan-name

29. Configure LECS:
ATM (config) # lane database-name
ATM (lane-config-databade) # name elan1-name server-atm-address les1-nsap-address
ATM (lane-config-databade) # name elan2-name server-atm-address les2-nsap-address
ATM (lane-config-databade) # name...

30. After the database is created, the LECS must be started on the main interface. The command is as follows:
ATM (config) # interface atm number
ATM (config-if) # lane config database-name
ATM (config-if) # lane config auto-config-atm-address

31. Configure each LEC to a different ATM Sub-interface. The command is as follows:
ATM (config) # interface atm number. subint multipoint
ATM (config) # lane client ethernet vlan-num elan-num

32. Use show lane server to display the LES status.

33. Use show lane bus to display the status of the bus.

34. Use show lane database to display the content of the LECS database.

35. Use show lane client to display the LEC status.

36. Use show module to display the list of installed modules.

37. Establish a connection with a VLAN using a physical interface:
Router # configure terminal
Router (config) # interface media module/port
Router (config-if) # description-string
Router (config-if) # ip address ip-addr subnet-mask
Router (config-if) # no shutdown

38. Use a relay link to establish a connection with a VLAN:
Router (config) # interface module/port. subinterface
Router (config-ig) # encapsulation [isl | dotlq] vlan-number
Router (config-if) # ip address ip-address subnet-mask

39. Use LANE to establish a connection with VLAN:
Router (config) # interface atm module/port
Router (config-if) # no ip address
Router (config-if) # atm pvc 1 0 5 qsaal
Router (config-if) # atm pvc 2 0 16 ilni
Router (config-if) # interface atm module/port. subinterface multipoint
Router (config-if) # ip address ip-address subnet-mask
Router (config-if) # lane client ethernet elan-num
Router (config-if) # interface atm module/port. subinterface multipoint
Router (config-if) # ip address ip-address subnet-name
Router (config-if) # lane client ethernet elan-name
Router (config-if )#...

40. to configure dynamic routing on the Route Processor, use the following IOS commands:
Router (config) # ip routing
Router (config) # router ip-routing-protocol
Router (config-router) # network ip-network-number
Router (config-router) # network ip-network-number

41. Configure the default route:
Switch (enable) set ip route default gateway

42. assign a VLANID to a Route Processor. You can use the following command in interface mode:
Router (config) # interface number
Router (config-if) # mls rp vlan-id-num

43. Enable MLSP on the Route Processor:
Router (config) # mls rp ip

44. to place an external Route Processor interface and switch in the same VTP domain:
Router (config) # interface number
Router (config-if) # mls rp vtp-domain-name

45. view the information of the specified VTP domain:
Router # show mls rp vtp-domain vtp domain name

46. To confirm the management interface on the RSM or vro, enter the following command in interface mode:
Router (config-if) # mls rp management-interface

47. Check the configuration of the MLS-RP:
Router # show mls rp

48. Check the MLS configuration on a specific interface:
Router # show mls rp interface number

49. To set the stream mask on the MLS-SE and do not want to set the access list on any Route Processor interface:
Set mls flow [destination | destination-source | full]

50. To make the MLS compatible with the input access list, you can use the following commands in global mode:
Router (config) # mls rp ip input-acl

51. When a switch's layer 3rd switch fails, you can enter the following command in the switch's privileged mode:
Switch (enable) set mls enable

52. To change the value of the aging time, enter the following command in privileged mode:
Switch (enable) set mls agingtime

53. Set quick aging:
Switch (enable) set mls agingtime fast fastagingtime pkt_threshold

54. Determine which MLS-RP and MLS-SE are involved in the MLS, first display the contents in the switch reference list and then confirm:
Switch (enable) show mls include

55. Display MLS cache records:
Switch (enable) show mls entry

56. Run the show in arp command to display the content in the ARP cache.

57. to configure the vro as a member of the HSRP backup group, run the following command in Interface Configuration Mode:

Router (config-if) # standby group-number ip address-address

58. In the interface configuration mode, to allow a vro to resume its forwarding role:
Router (config-if) # standy group-number preempt

59. The access time and retention time parameters are configurable:
Router (config-if) # standy group-number timers hellotime holdtime

60. Configure HSRP tracking:
Router (config-if) # standy group-number track type-number interface-priority

61. to display the HSRP router status:
Router # show standby type-number group brief

62. Run the show ip igmp command to determine the queried server.

Previous Page [1] [2] [3] [4] Next page

Article entry: csh responsible editor: csh

63. Start IP Multicast Route Selection:
Router (config) # ip muticast-routing

64. PIM on the startup interface:
Dalllasr1> (config-if) # ip pim {dense-mode | sparse-dense-mode}

65. Start the PIM in dense mode:
Router # ip multicast-routing
Router # interface type number
Router # ip pim sparse-dense-mode

66. Verify the PIM Configuration:
Dallasr1> # show ip pim interface [type number] [count]

67. Display PIM neighbors:
Dallasr1> # show ip neighbor type number

68. to configure the RP address, the command is as follows:
Dallasr1> # ip pim rp-address ip-address [group-access-list-number] [override]

69. Select a default RP:
Dallasr1> # ip pim rp-address
Advertise the RP and its service group scope:
Dallasr1> # ip pim send-rp-announce type number scope ttl group-list access-list-number
Advertise the RP address for the management range group:
Dallasr1> # ip pim send-rp-announce ethernet0 scope 16 group-list1
Dallasr1> # access-list 1 permit 266.0.0.0 0.20.255.255
Set an RP image Proxy:
Dallasr1> # ip pim send-rp-discovery scope ttl
Verify the image from the group to the RP:
Dallasr1> # show ip pim rp mapping
Dallasr1> # show ip pim rp [group-name | group-address] [mapping]

70. On the router interface, use the command ip multicast ttl-threshold ttl-value to set the TTL threshold:
Dallasr1> (config-if) # ip multicast ttl-threshold ttl-value

71. Use show ip pim neighbor to display the PIM neighbor table.
72. display all records in the multicast communication route table:
Dallasr1> show ip mroute [group-name | group-address] [scoure] [summary] [count] [active kbps]

73. Record all IP multicast packets accepted and sent by a vro:
Dallasr1> # debug ip mpacket [detail] [access-list] [group]

74. Configure cgmp on the cisco router:
Dallasr1> (config-if) # ip cgmp

75. configure a multicast router to add it to a specific multicast group:
Dallasr1> (config-if) # ip igmp join-group-address

76. Disable CGMP:
Dallasr1> (config-if) # no ip cgmp

77. Start cgmp on the switch:
Dallasr1> (enable) set cgmp enable

78. Verify the CGMP configuration on the Catalyst Switch:
Catalystla1> (enable) show config
Set prompt extends stla1>
Set interface sc0 192.168.1.1 255.255.255.0
Set cgmp enable

79. CGMP exit settings:
Dallas_SW (enable) set cgmp leave

80. Modify the control port password on the Cisco device:
R1 (config) # line console 0
R1 (config-line) # login
R1 (config-line) # password Lisbon
R1 (config) # enable password Lilbao
R1 (config) # login local
R1 (config) # username student password cisco

81. Set the console and vty port Session Timeout on the Cisco device:
R1 (config) # line console 0
R1 (config-line) # exec-timeout 5 10
R1 (config) # line vty 0 4
R1 (config-line) # exec-timeout 5 2

82. Set the privilege level on a Cisco device:
R1 (config) # privilege configure level 3 username
R1 (config) # privilege configure level 3 copy run start
R1 (config) # privilege configure level 3 ping
R1 (config) # privilege configure level 3 show run
R1 (config) # enable secret level 3 cisco

83. Use the command privilege to define the commands used at this privileged level:
Router (config) # privilege mode level command

84. Set the user privilege level:
Router (config) # enable secret level 3 dallas
Router (config) # enable secret san-fran
Router (config) # username student password cisco

85. flag settings and display:
R1 (config) # banner motd 'unauthorized access will be prosecuted! '

86. Set vty access:
R1 (config) # access-list 1 permit 192.168.2.5
R1 (config) # line vty 0 4
R1 (config) # access-class 1 in

87. Configure HTTP access:
Router3 (config) # access-list 1 permit 192.168.10.7
Router3 (config) # ip http sever
Router3 (config) # ip http access-class 1
Router3 (config) # ip http authentication local
Router3 (config) # username student password cisco

88. To enable HTTP access, type the following command:
Switch (config) # ip http sever

89. Use setCL1 on the set command-based switch to start and verify Port Security:
Switch (enable) set port security mod_num/port_num... Enable mac address
Switch (enable) show port mod_num/port_num
Start and verify port security on the CiscoIOS command-based switch:
Switch (config-if) # port secure [mac-count maximum-MAC-count]
Switch # show mac-address-table security [type module/port]

90. Use the command access-list to create a record in the standard traffic filtering table:
Router (config) # access-list-number {permit | deny} source-address [source-address]

91. Use the command access-list to create a record in the extended traffic filtering table:
Router (config) # access-list-number {permit | deny {protocol | protocol-keyword }}{ source-wildcard | any} {destination-wildcard | any} [protocol- specific options] [log]

92. For in-band route updates, the most basic command format for configuring route updates is:
R1 (config-router) # distribute-list access-list-number | name in [type number]

93. for out-of-band route updates, the most basic command format for configuring route updates is:
R1 (config-router) # distribute-list access-list-number | name out [interface-name] routing-process | autonomous-system-number

94. set snmp Command Options:
Set snmp community {read-only | ready-write | read-write-all} [community_string]

95. set snmp trap Command Format:
Set snmp trap {enable | disable}
[All | moudle | classis | bridge | repeater | auth | vtp | ippermit | vmps | config | entity | stpx]
Set snmp trap rvcr_addr rcvr_community

96. Enable the SNMP chassis trap:
Console> (enable) set snmp trap enable chassis

97. Enable all SNMP chassis traps:
Console> (enable) set snmp trap enable
98. Disable the SNMP chassis trap:

Previous Page [1] [2] [3] [4] Next page

Article entry: csh responsible editor: csh

Console> (enable) set snmp trap disable chassis

99. Add a record to the SNMP Trap receiving table:
Console> (enable) set snmp trap 192.122.173.42 public

100. show snmp output result.

101. output result of the command set snmp rmon enable.

102. Display SPAN information:
Consile> show span

Previous Page [1] [2] [3] [4]

Article entry: csh responsible editor: csh

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.