2013年10月28日星期一

The common command of cisco switch

The common command of cisco switch
Switch state:
Switch:; ROM, router Rommon>
Hostname>;  user mode
Hostname#;  privileged mode
Hostname (config) #;  global configuration mode
Hostname (config-if) #;  interface state

Switch password settings:
Switch>enable;  enter privilege mode
Switch#config terminal;  enter global configuration mode
Switch (config) #hostname <hostname>;  host name set switch
Switch (config) #enable secret XXX  privileges for XXX encryption of the password;
Switch (config) #enable password XXX  privileges; non password for XXX
Switch (config) #line console 0;  in the control stage (Rs232) initialization
Switch (config-line) #line vty 04;  virtual TTY enter virtual terminal
Switch (config-line) #login;  allowed to log on
Switch (config-line) #password XX;  set password XX
Switch#exit;  return command

VLAN switch setting:
Switch#vlan database  into the VLAN settings;
Switch (VLAN) #vlan 2;  built the VLAN 2
Switch (VLAN) #no VLAN 2  delete VLAN 2;
Switch (config) #int f0/1  into the port 1;
Switch (config-if) #switchport access VLAN 2;  the current port 1 addition to VLAN 2
Switch (config-if) #switchport mode trunk  set to the trunk;
Switch (config-if) #switchport trunk allowed VLAN 1,2;  setting allows VLAN
Switch (config-if) #switchport trunk encap dot1q;  set the VLAN relay

Set the IP address switch:
Switch (config) #interface VLAN 1;  into the VLAN 1
Switch (config-if) #ip address <IP> <mask>;  add remote login IP
Switch (config) #ip default-gateway <IP>;  add a default gateway

Switch show commands:
Switch#write   write preservation;
Switch#show VTP;  see the VTP configuration information
Switch#show run;  see the current configuration information
Switch#show VLAN;  see the VLAN
Switch#show interface  display all the port information;
Switch#show int f0/0;  display port 0 of the information
Cisco WS-C2960S-24TS-L is the most used switch of the cisco swtich, more information on 3anetwork.com.

Catalyst 2960 and 2960-S switches are the leading fixed-configuration Layer 2 edge access switches, 2960 is FE access switch while 2960-S most ports are GE. The Catalyst 2960-S Series Switches are stackable switches and support POE+ function. 3Anetwork.com keeps stock for most 2960 and 2960-S LAN base switches. Among all Cisco Catalyst 2960 switches, WS-C2960-24TT-L and WS-C2960-24TC-L are best selling models. Among all Cisco Catalyst 2960S switches, WS-C2960S-24TS-L and WS-C2960S-48TS-L are best selling models. 3Anetwork.com offers best Cisco 2960 Price, Cisco 2960S (2960-S) Price, ship to worldwide.

没有评论:

发表评论