Command for basic configuration of Cisco2950 vswitch
1. Configure the IP address
To be able to be managed by a network management switch, a management IP address must be assigned to it. By default, VLAN 1 of a CISCO switch is managed.
VLAN, Which is configured with an IP address for the VLAN, and the switch can be managed by the network. The command is as follows:
A. Go to global mode: Switch # configure terminal
B. Enter VLAN 1 interface mode: Switch (config) # interface vlan 1
C. Configuration Management ip address: Switch (config-if) # ip address [A. B .C.D] [mask]
If the current VLAN is not a management VLAN, you only need to replace the vlan number in the command section B above with the number in the management VLAN.
2. Enable the SNMP protocol
A. Go to global mode: Switch # configure terminal
B. Configure the read-only Community. The default value of the product's read-only Community is public.
Switch (config) # snmp-server community public ro
C. Configure writable Community. The default product writable Community name is private.
Switch (config) # snmp-server community private rw
3. Change the SNMP Community password.
A. Group devices and enable various Supported SNMP versions
Switch (config) # snmp-server group qycx123 v1
Switch (config) # snmp-server group qycx 123 v2c
Switch (config) # snmp-server group qycx123 v3 noauth
B. Configure read-only and writable community respectively, for example:
Switch (config) # snmp-server community qycx123 ro
Switch (config) # snmp-server community qycx123 rw
4. Save vswitch configurations
Switch # copy run start
Common commands
1. Set the vswitch Password
A. Change the remote TELNNET Password
Switch # configure terminal
Switch (config) # line vty 0 4
Switch (config-line) # password qycx123
Switch (config-line) # login
Switch (config-line) # exit
B. Change the password when entering the global configuration mode.
Switch # configure terminal
Switch (config) # enable secret qycx123
2. Create and divide VLANs
A. Create a VLAN
Switch # vlan database
Switchvlan) # vlan 99 name office
(Create vlan 99 and name it office)
B. Divide ports into VLANs
Switch (config) # interface fastEthernet 0/8
Switch (config-if) # switchport mode access
Switch (config-if) # switchport access vlan 99
(Divide the 8-day fast Ethernet port into vlan 99)
3. Common Debugging commands
A. display all the configuration commands: Switch # show run
B. Display All interface statuses: Switch # show ip int brief
C. Display All VLAN information: Switch # show vlan brief
This article from the "Lee _ Tony" blog, please be sure to keep this source http://tonyping.blog.51cto.com/7725720/1271669