Cisco switch operations: Basic query command

Source: Internet
Author: User
Tags command line config cisco switch

In the complex network environment today, the switch has become indispensable, so the switch manufacturers also develop quickly, here to take Cisco to give us a simple exchange! Cisco: Cisco; A simple introduction: Cisco is the world's leading provider of network solutions. Cisco's name is taken from San Francisco, where it is known as the world's Golden Gate Bridge. It can be said that, relying on its own technology and a deep understanding of the network economic model, Cisco has become one of the successful practitioners of network applications. At the same time, Cisco is committed to countless enterprises to build a smooth network between the "bridge" and with its own sharp insight, rich industry experience, advanced technology, to help enterprises to transform network applications into strategic assets, fully tap the energy of the network, to gain the competitive advantage.

Then let's share some of Cisco's most basic information:

ROM Status: switch:

User Mode:switch>

Privileged mode: switch#

Global configuration mode: Switch (config) #

Interface mode: Switch (config-if) #

This uses Telnet connection to control the switch, under Windows you can use Telnet + remote switch IP directly under the cmd command line, for example: Telnet 10.10.2.253; This command executes if the network is normal, generally into ROM state, In order to be safe and avoid misoperation, the switch needs to enter a username and password, and when you enter the correct username and password you can see the information

elcome to S  
      
User Access verification  
      
Username:cisco  
Password:   
switch>  
switch>  
switch >  
switch>  
switch>  
switch>

At this point we have entered the user mode, in this mode, mainly to see some of the switch configuration information, but to configure the switch is not, so we have to enter the privileged mode (enable),

elcome to S  
      
User Access verification  
      
Username:cisco  
Password:   
switch>en  
Password:   
switch#  
switch#  
switch#

You should have seen, in user mode input enable, and then enter the privileged password can enter the privileged mode, in this mode, relatively can do more things!

A few of the most common commands for viewing information:

1. View port Information

switch#show int statu Port Name Status Vlan Duplex Speed Type FA0/1 Connected 1 a-full a-100 10/100basetx FA0/2 phang.law notconnect 1 A Uto Auto 10/100basetx FA0/3 Aaron.zhou connected 1 a-full a-100 10/100basetx FA0/4 10.1            0.2.166-gaopin notconnect 1 Auto Auto 10/100basetx FA0/5 notconnect 1 Auto Auto 10/100basetx fa0/6 herman.tao notconnect 1 auto auto 10/100basetx fa0/7 te        ST1 notconnect Auto Auto 10/100basetx fa0/8 test2 connected 100                       A-full a-100 10/100basetx FA0/9 connected trunk a-full a-100 10/100basetx FA0/10            Connected trunk a-full a-100 10/100basetx fa0/11 JINGXIANGF0/9 notconnect 1 Auto Auto 10/100bAsetx FA0/12 JINGXIANGF0/10 notconnect 1 Auto auto 10/100basetx FA0/13 not Connect 1 Auto Auto 10/100basetx fa0/14 jiajing notconnect 1 Auto Auto 10/10 0BaseTX fa0/15 10.10.2.153-sw notconnect 1 Auto Auto 10/100basetx fa0/16 Jessica.gao n Otconnect 1 Auto Auto 10/100basetx fa0/17 cody.guo notconnect 1 Auto Auto 10/                       100BaseTX fa0/18 stefan.long notconnect 1 auto Auto 10/100basetx FA0/19 Notconnect 1 Auto Auto 10/100basetx fa0/20 dongdong notconnect 1 Auto Auto 1 0/100basetx fa0/21 notconnect 1 Auto auto 10/100basetx fa0/22 router-10.10.2.1  Notconnect 1 Auto Auto 10/100basetx fa0/23 notconnect 1 Auto Auto  10/100basetx fa0/24                     Notconnect Auto Auto 10/100basetx gi0/1 notconnect 1  
Auto Auto not Present GI0/2 notconnect 1 Auto Auto not Present switch# switch# switch#

2. View ARP Information

Switch#show ARP  
Protocol address age          (min)  hardware Addr   Type   Interface  
Internet  10.10.2.1               0   0090.7f84.5094  ARPA   Vlan1  
Internet  10.10.2.68              0   c03f.d538.c492  arpa   Vlan1  
Internet  10.10.2.138             0   d43d.7e20.109d  arpa   Vlan1  
internet  10.10.2.170             0   3c97.0efd.b361  ARPA   Vlan1  
Internet  10.10.2.201             1   0021.8509.fb82  ARPA   Vlan1  
Internet  10.10.2.220           129   2851.3201.104f  arpa   Vlan1  
Internet  10.10.2.221   2851.3201.2498  arpa   Vlan1  
internet  10.10.2.246             0   0022.4612.3c56  ARPA   Vlan1  
Internet  10.10.2.250             0   000f.e2d3.9d75  ARPA   Vlan1  
Internet  10.10.2.253             -   001F.9E74.CD40  ARPA   Vlan1  
switch#  
switch#  
switch#

3. View Mac Information

Switch#show mac address-table mac Address Table-------------------------------------------Vlan      Mac address Type Ports----------------------------All 0100.0CCC.CCCC STATIC    CPU all 0100.0CCC.CCCD The static CPU all 0180.c200.0000 the static CPU all 0180.c200.0001 Static CPU all 0180.c200.0002 the static CPU all 0180.c200.0003 the static CPU all 0180.C2    00.0004 Static CPU all 0180.c200.0005 the static CPU all 0180.c200.0006 the static CPU all 0180.c200.0007 static CPU All 0180.c200.0008 static CPUs all 0180.c200.0009 static C PU all 0180.c200.000a static CPUs all 0180.c200.000b static CPUs all 0180.c200.000c STA TIC CPU All 0180.c200.000d static CPUs all 0180.c200.000e static CPUs all 0180.c200.0  00f STATIC CPU
 All 0180.c200.0010 static CPUs all ffff.ffff.ffff static CPU 1 0001.6C44.08EC DYNAMIC FA0/3 1 000f.e207.f2e0 Dynamic FA0/3 1 000f.e2d3.9d75 DYNAMIC FA0/3 1 0013.7240  
   .0BFD Dynamic FA0/3 1 0021.8509.fb82 dynamic FA0/3 1 0022.4612.3c56 dynamic FA0/3 1 0025.115a.b932 Dynamic FA0/3 1 0025.11a7.9034 dynamic FA0/3 1 0090.7f84.5094 Dynam IC FA0/3 1 00e0.4c30.fd56 dynamic FA0/3 1 2851.3201.2498 DYNAMIC FA0/1 1 3c97.0e  
   fd.b361 Dynamic FA0/3 1 7427.eace.90dd dynamic FA0/3 1 7427.eace.9259 dynamic FA0/3 1 782b.cb13.621d Dynamic FA0/3 1 8c89.a5e9.8317 dynamic FA0/3 1 8c89.a5e9.85ca DYN Amic FA0/3 1 b051.8e01.704c dynamic FA0/3 1 b051.8e02.08a9 dynamic FA0/3 1 c03f.    d538.c492 DYNAMIC FA0/3 1 c89c.dcb9.7f01 Dynamic FA0/3 1 d43d.7e20.0c0a DYNAMIC FA0/3 1 d43d.7e20.0c0    C Dynamic FA0/3 1 d43d.7e20.109d dynamic FA0/3 1 d4be.d9d5.077d dynamic FA0/3 1     D4BE.D9DB.17A9 Dynamic FA0/3 1 f0de.f1f5.e388 dynamic FA0/3 0025.115a.b92f dynamic FA0/8 Total Mac Addresses for this criterion:48 switch#

This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/Network/jhjs/

4, view the configuration

Switch#show Running-config

There will be a lot of information entered here, in general, Cisco will not output a complete, this time you can use

Switch#terminal length 0

So you can view all the information at once.

5. View the switch process information

Switch#show processes

When you enter a command, you can use the TAB key to complete the completion!

First here, please look forward to the next "configuration 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.