Cisco switcher command

1, the basic configuration switcher

Switch>
Switch> enable # to enter privileged mode

Switch # configure terminal # enter the global configuration mode

Switch (config) #hostname Cisco # modify Switch Name

Cisco (config) #enable password admin123 # Set the switch to enter the password

# Configure port

Cisco (config) #interface fastEthernet 0/1 # 1 entry port

Cisco (config-if) #speed 100 # 100M port speed settings

Cisco (config-if) # duplex full # Set the port full-duplex

Cisco (config-if) # spanning-tree portfast # Set the port fast convergence

Cisco (config-if) #switch mode access # Set port access mode (access primary connection terminal, connected Trunk switch, router level associated equipment)

Cisco (config-if) #switch access vlan 10 # Set the port VLAN 10

Cisco (config-if) #des This is description # description of increased port

Cisco (config-if) # exit # exit port 1

Cisco(config)#interface vlan 1     #配置 vlan1

 

# Configure Remote Management ip

Cisco (config-if) #ip address 192.168.1.1 255.255.255.0 # Configure Remote Management IP
the Cisco (config-IF) # # open the shutdown NO vlan1 remote connection
Cisco (config-if) # exit # exit vlan 1

# Configure Telnet
Cisco (config) # line vty 0 4 # Set the remote login password (set 0-4 only several vlan login password required)

Cisco(config-line)#password 123456

Cisco (config-line) #login # enable login

Cisco(config-line)#exit

 

Cisco # show running-config # View the configuration (look at the privileged mode only)

Cisco # write # to write switch (save)

Cisco # erase startup-config # Clear configuration

Cisco # reload # restart the switch

Guess you like

Origin www.cnblogs.com/BackingStar/p/11203065.html