Summary of the regular commands for Cisco switches

Source: Internet
Author: User
Tags config switches

1. Set host name/system name on iOS based switch:

Switch (config) # hostname hostname

To set the hostname/system name on a CLI-based switch:

Switch (enable) set system name name-string

2. Set the login password on the iOS based switch:

Switch (config) # Enable password Level 1 password

To set the logon password on a CLI-based switch:

Switch (enable) Set password

Switch (enable) Set Enalbepass

3. Set up remote access on iOS-based switches:

Switch (config) # interface VLAN 1

Switch (config-if) # IP address ip-address netmask

Switch (config-if) # IP Default-gateway ip-address

To set up 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 iOS-based switches:

Switch (CONFIG-IF) # CDP Enable

Switch (CONFIG-IF) # no CDP enable

To view CDP notification information for Cisco neighboring devices:

switch# Show CDP interface [type Modle/port]

switch# Show CDP neighbors [type module/port] [detail]

To enable and browse CDP information on a CLI-based switch:

Switch (enable) set CDP {enable|disable} module/port

To view CDP notification information for Cisco neighboring devices:

Switch (enable) show CDP Neighbors[module/port] [Vlan|duplex|capabilities|detail]

5. Port description for iOS based switches:

Switch (config-if) # description description-string

Port description 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}

To set the port speed on a 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 up the Ethernet link mode on the iOS based switch:

Switch (config-if) # Duplex {Auto|full|half}

To set the link mode for Ethernet on a CLI-based switch:

Switch (enable) set port duplex module/number {Full|half}

8. Configure a static VLAN on an iOS-based switch:

switch# VLAN Database

Switch (VLAN) # VLAN Vlan-num name VLA

Switch (VLAN) # exit

switch# Configure Teriminal

Switch (config) # interface interface Module/number

Switch (config-if) # switchport mode access

Switch (config-if) # switchport access VLAN Vlan-num

Switch (config-if) # End

To configure a static VLAN on a CLI-based switch:

Switch (enable) set VLAN Vlan-num [name name]

Switch (enable) Set VLAN Vlan-num mod-num/port-list

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.