CATALYST Switch commands

Source: Internet
Author: User

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) # des cription-string
Description of the port of the CLI-based switch:
Switch (enable) set port name module/number des cription-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 vlan

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.