Analyze the configuration password settings of the switch based on IOS

Source: Internet
Author: User



This article analyzes how to configure the password for a switch based on IOS and how to configure the password for a switch. There are many methods on the network. The following is a common password for the setting method, which is helpful to the majority of enthusiasts, are common methods. Take the opportunity to provide it to you.

1. Set the host name/system name on the password for configuring the  switch based on IOS:
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 configuration password:
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 password for configuring the  switch based on IOS:
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 the configuration password of the  switch based on IOS:
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. The port description for configuring the password for the switch based on IOS:
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 password of the  switch based on IOS:
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 password for configuring the  switch based on IOS:
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 password of the switch based on IOS:
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 the VLAN trunk line on the password of the  switch based on IOS:
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 configuration password of the switch based on IOS:
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 password of the switch based on IOS:
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 password of the switch based on IOS:
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 the password for configuring the  switch based on IOS:
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 password of the  switch based on IOS:
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 configuration password of the  switch based on IOS:
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]




Related Article

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.