Pages

Commands for Cisco switches, 2960-2950

This small command guide includes some basic settings that are made in access layer switches in a LAN network that implements vlan. Find information on configuring VLANs, trunking, configure basic interfaces, setting passwords to the terminals, remote access to devices among others.

Basic Configuration of a Cisco 2960 Switch

Computer name

Switch# enable
Switch# configure terminal
Switch(config)# hostname Sw1_Central


User Configuration, and enable password

Sw#1_Centra# configure terminal
Sw#1_Central(config)# username admin pasword cisco
Sw#1_Central(config)# enable secret cisco ( EYE, this password is not recommended )

Note: If you want the user to have administrative privileges from the start, the command is as follows: "username admin privilege 15 pasword cisco"


IP Configuration management

Sw#1_Central# configure terminal
Sw#1_Central(config)# interface vlan 1
Sw#1_Central(config-if)# ip address 192.168.50.20 255.255.255.0
Sw#1_Central(config-if)# no shutdown


Creating VLANs

Sw # 1_Central # configure terminal
Sw # 1_Central (config-if) # vlan 200
Sw # 1_Central (config-vlan) # name Test


Configuring Trunk Ports

Sw # 1_Central # configure terminal
Sw # 1_Central (config) # interface g0 / 1
Sw # 1_Central (config-if) # switchport mode trunk
Sw # 1_Central (config-if # switchport trunk allowed vlan add all
Sw # 1_Central (config-if)) # description <>


Configuring Interfaces

Sw # 1_Central # configure terminal
Sw # 1_Central (config) # interface f0 / 1
Sw # 1_Central (config-if) # switchport mode access
Sw # 1_Central (config-if) # switchport access vlan 2 {2-1001} (if you assign a vlan)
Sw # 1_Central (config-if) # speed 100 {10, 100, auto}
Sw # 1_Central (config-if) # duplex full {full, half or auto}
Sw # 1_Central (config-if)) # description <>


Setting up a range of interfaces

Sw # 1_Central # configure terminal
Sw # 1_Central (config) # interface range f0 / 1 - 10 (make config 1 to 10)
Sw # 1_Central (config-if) # switchport mode access
Sw # 1_Central (config-if) # switchport access vlan 2 {2-1001} (if you assign a vlan)



SNMP agent configuration

Sw # 1_Central # configure terminal
Sw # 1_Central (config) # snmp-server community public RO (not recommended for public)


Configuring remote access to the switch via telnet

Sw # 1_Central # configure terminal
Sw # 1_Central (config) # line vty 0 4
Sw # 1_Central (config-line) # login local


Setting Passwords to Console

Sw # 1_Central # configure terminal
Sw # 1_Central (config) # line console 0
Sw # 1_Central (config-line) # password password

0 Comments:

Post a Comment