Cisco 的基本配置实例之六----常排错命令--关闭提示

时间:2022-09-07 09:33:38

TEST#terminal monitor

# 排除网络故障以前,请打开这一命令以便实时的接收到交换机的提示信息。

TEST#

TEST#sh run

#显示所有的配置清单,可将这些配置保存成文本作为交换机的配置备份。

Building configuration...

Current configuration :  bytes

!

version 12.2

no service pad

service timestamps debug uptime

service timestamps log uptime

service password-encryption

service compress-config

!

hostname TEST

!

boot-start-marker

boot system flash cat4000-i9s-mz.-.EWA8.bin

boot system bootflash:cat4000-i9s-mz.-.EWA8.bin

boot-end-marker

!

enable secret  $$c2Ge$eLS42O.0h04yCn1tDZGsB/

enable password  1119130A12010E1E122F39

!

no aaa new-model

ip subnet-zero

ip dhcp excluded-address 192.168.112.200 192.168.112.254

ip dhcp excluded-address 192.168.115.200 192.168.115.254

!

ip dhcp pool Wlan

   network 192.168.112.0 255.255.255.0

   default-router 192.168.112.254

   dns-server 202.102.128.68 202.102.134.68

!

ip dhcp pool Client

   network 192.168.115.0 255.255.255.0

   default-router 192.168.115.254

   dns-server 202.102.134.68 202.102.128.68

!

ip dhcp pool test

   host 192.168.112.98 255.255.255.0

   client-identifier .1b77.2fa0.

   default-router 192.168.112.254

   dns-server 202.102.134.68

!

ip dhcp pool lijing

   host 192.168.112.100 255.255.255.0

   client-identifier 0100.0e35.891b.

   default-router 192.168.112.254

   dns-server 202.102.128.68 202.102.134.68

!

!

no file verify auto

errdisable recovery cause arp-inspection

spanning-tree mode pvst

spanning-tree extend system-id

power redundancy-mode redundant

!

!

!

vlan internal allocation policy ascending

!

interface FastEthernet1

 no ip address

 speed auto

 duplex auto

!

interface GigabitEthernet1/

 switchport access vlan 

!

interface GigabitEthernet1/

!

interface GigabitEthernet1/

!

interface GigabitEthernet1/

!

interface GigabitEthernet1/

!

interface GigabitEthernet1/

!

interface GigabitEthernet1/

!

interface GigabitEthernet1/

!

interface GigabitEthernet1/

!

interface GigabitEthernet1/

!

interface GigabitEthernet1/

!

interface GigabitEthernet1/

!

interface GigabitEthernet1/

 switchport trunk encapsulation dot1q

 switchport mode trunk

!

interface GigabitEthernet1/

!

interface GigabitEthernet1/

 switchport trunk encapsulation dot1q

 switchport mode trunk

!

interface GigabitEthernet1/

!

interface GigabitEthernet1/

!

interface GigabitEthernet1/

!

interface GigabitEthernet1/

!

interface GigabitEthernet1/

!

interface GigabitEthernet3/

 switchport access vlan 

 no cdp enable

!

interface GigabitEthernet3/

 switchport access vlan 

!

interface GigabitEthernet3/

 switchport access vlan 

!

interface GigabitEthernet3/

 switchport access vlan 

!

interface GigabitEthernet3/

 switchport access vlan 

!

interface GigabitEthernet3/

 switchport access vlan 

!

interface GigabitEthernet3/

 switchport access vlan 

!

interface GigabitEthernet3/

 switchport access vlan 

!

interface GigabitEthernet3/

 switchport access vlan 

!

interface GigabitEthernet3/

 switchport access vlan 

!

interface GigabitEthernet3/

 switchport access vlan 

!

interface GigabitEthernet3/

!

interface GigabitEthernet3/

!

interface GigabitEthernet3/

!

interface GigabitEthernet3/

 switchport access vlan 

!

interface GigabitEthernet3/

!

interface GigabitEthernet3/

 switchport trunk encapsulation dot1q

 switchport mode trunk

!

interface GigabitEthernet3/

 switchport access vlan 

 switchport mode access

!

interface GigabitEthernet3/

 switchport access vlan 

 switchport mode access

 no cdp enable

!

interface GigabitEthernet3/

 switchport trunk encapsulation dot1q

 switchport mode trunk

 ip arp inspection trust

!

interface GigabitEthernet3/

 switchport trunk encapsulation dot1q

 switchport mode trunk

!

interface GigabitEthernet3/

 switchport trunk encapsulation dot1q

 switchport mode trunk

!

interface GigabitEthernet3/

 switchport trunk encapsulation dot1q

 switchport mode trunk

!

interface GigabitEthernet3/

 switchport trunk encapsulation dot1q

 switchport mode trunk

!

interface Vlan1

 ip address 192.168.113.254 255.255.255.0

 ip helper-address 192.168.100.100

 no ip redirects

!

interface Vlan2

 ip address 172.16.0.2 255.255.255.252

 ip helper-address 192.168.100.100

 no ip redirects

 no ip unreachables

!

interface Vlan10

 ip address 192.168.101.254 255.255.255.0

 ip helper-address 192.168.100.100

 no ip redirects

!

interface Vlan20

 ip address 192.168.102.254 255.255.255.0

 ip helper-address 192.168.100.100

 no ip redirects

!

interface Vlan30

 ip address 192.168.103.254 255.255.255.0

 ip helper-address 192.168.100.100

 no ip redirects

!

interface Vlan40

 ip address 192.168.104.254 255.255.255.0

 ip helper-address 192.168.100.100

 no ip redirects

!

interface Vlan50

 ip address 192.168.105.254 255.255.255.0

 ip helper-address 192.168.100.100

 no ip redirects

!

interface Vlan60

 ip address 192.168.106.254 255.255.255.0

 ip helper-address 192.168.100.100

 no ip redirects

!

interface Vlan70

 ip address 192.168.107.254 255.255.255.0

 ip helper-address 192.168.100.100

 no ip redirects

!

interface Vlan80

 ip address 192.168.108.254 255.255.255.0

 ip helper-address 192.168.100.100

 no ip redirects

!

interface Vlan100

 ip address 192.168.110.254 255.255.255.0

 ip helper-address 192.168.100.100

 no ip redirects

!

interface Vlan110

 ip address 192.168.111.254 255.255.255.0

 ip helper-address 192.168.100.100

!

interface Vlan120

 ip address 192.168.112.254 255.255.255.0

 ip access-group  in

 ip helper-address 192.168.100.100

!

interface Vlan150

 ip address 192.168.100.254 255.255.255.0

 ip helper-address 192.168.100.100

 no ip redirects

!

interface Vlan160

 ip address 192.168.115.254 255.255.255.0

 ip access-group  in

 ip access-group  out

 ip helper-address 192.168.100.100

 no ip redirects

!

ip route 0.0.0.0 0.0.0.0 172.16.0.1

ip http server

!

!

access-list  deny   ip 192.168.115.0 0.0.0.255 192.168.101.0 0.0.0.255

access-list  deny   ip 192.168.115.0 0.0.0.255 192.168.102.0 0.0.0.255

access-list  deny   ip 192.168.115.0 0.0.0.255 192.168.103.0 0.0.0.255

access-list  deny   ip 192.168.115.0 0.0.0.255 192.168.104.0 0.0.0.255

access-list  deny   ip 192.168.115.0 0.0.0.255 192.168.105.0 0.0.0.255

access-list  deny   ip 192.168.115.0 0.0.0.255 192.168.106.0 0.0.0.255

access-list  deny   ip 192.168.115.0 0.0.0.255 192.168.107.0 0.0.0.255

access-list  deny   ip 192.168.115.0 0.0.0.255 192.168.108.0 0.0.0.255

access-list  deny   ip 192.168.115.0 0.0.0.255 192.168.110.0 0.0.0.255

access-list  deny   ip 192.168.115.0 0.0.0.255 192.168.111.0 0.0.0.255

access-list  deny   ip 192.168.115.0 0.0.0.255 192.168.112.0 0.0.0.255

access-list  deny   ip 192.168.115.0 0.0.0.255 192.168.113.0 0.0.0.255

access-list  deny   ip 192.168.115.0 0.0.0.255 192.168.100.0 0.0.0.255

access-list  permit ip any any

access-list  deny   ip 192.168.112.0 0.0.0.255 192.168.101.0 0.0.0.255

access-list  deny   ip 192.168.112.0 0.0.0.255 192.168.102.0 0.0.0.255

access-list  deny   ip 192.168.112.0 0.0.0.255 192.168.103.0 0.0.0.255

access-list  deny   ip 192.168.112.0 0.0.0.255 192.168.104.0 0.0.0.255

access-list  deny   ip 192.168.112.0 0.0.0.255 192.168.105.0 0.0.0.255

access-list  deny   ip 192.168.112.0 0.0.0.255 192.168.106.0 0.0.0.255

access-list  deny   ip 192.168.112.0 0.0.0.255 192.168.107.0 0.0.0.255

access-list  deny   ip 192.168.112.0 0.0.0.255 192.168.108.0 0.0.0.255

access-list  deny   ip 192.168.112.0 0.0.0.255 192.168.110.0 0.0.0.255

access-list  deny   ip 192.168.112.0 0.0.0.255 192.168.111.0 0.0.0.255

access-list  deny   ip 192.168.112.0 0.0.0.255 192.168.113.0 0.0.0.255

access-list  permit ip host 192.168.112.100 host 192.168.100.103

access-list  permit ip host 192.168.112.98 192.168.100.0 0.0.0.255

access-list  deny   ip 192.168.112.0 0.0.0.255 192.168.100.0 0.0.0.255

access-list  permit ip any any

!

snmp-server community pjoe RW

snmp-server enable traps snmp authentication linkdown linkup coldstart warmstart

snmp-server enable traps tty

snmp-server enable traps vtp

snmp-server enable traps vlancreate

snmp-server enable traps vlandelete

snmp-server enable traps stpx

snmp-server enable traps rf

snmp-server enable traps port-security

snmp-server enable traps config

snmp-server enable traps entity

snmp-server enable traps cpu threshold

snmp-server enable traps copy-config

snmp-server enable traps fru-ctrl

snmp-server enable traps flash insertion removal

snmp-server enable traps syslog

snmp-server enable traps bridge

snmp-server enable traps envmon fan shutdown supply temperature status

snmp-server enable traps hsrp

snmp-server enable traps bgp

snmp-server enable traps ospf state-change

snmp-server enable traps ospf errors

snmp-server enable traps ospf retransmit

snmp-server enable traps ospf lsa

snmp-server enable traps ospf cisco-specific state-change

snmp-server enable traps ospf cisco-specific errors

snmp-server enable traps ospf cisco-specific retransmit

snmp-server enable traps ospf cisco-specific lsa

snmp-server enable traps pim neighbor-change rp-mapping-change invalid-pim-message

snmp-server enable traps ipmulticast

snmp-server enable traps msdp

snmp-server enable traps rtr

snmp-server enable traps vlan-membership

snmp-server host 192.168.100.105 pjoe

!

!

line con 

 password  0014190901480E1419245E

 stopbits 

line vty  

 password  03145104031C245E580C0B

 login

!

!

end

TEST#

TEST#sh ip int b    #显示所有端口的状态

Interface              IP-Address      OK? Method Status                Protocol

FastEthernet1          unassigned      YES NVRAM  down                  down   

Vlan1                  192.168.113.254 YES NVRAM  up                    up     

Vlan2                  172.16.0.2      YES NVRAM  up                    up     

Vlan10                 192.168.101.254 YES NVRAM  up                    up     

Vlan20                 192.168.102.254 YES NVRAM  up                    up     

Vlan30                 192.168.103.254 YES NVRAM  up                    up     

Vlan40                 192.168.104.254 YES NVRAM  up                    up     

Vlan50                 192.168.105.254 YES NVRAM  up                    up     

Vlan60                 192.168.106.254 YES NVRAM  up                    up     

Vlan70                 192.168.107.254 YES NVRAM  up                    up     

Vlan80                 192.168.108.254 YES NVRAM  up                    up     

Vlan100                192.168.110.254 YES NVRAM  up                    up     

Vlan110                192.168.111.254 YES NVRAM  up                    up     

Vlan120                192.168.112.254 YES NVRAM  up                    up     

Vlan150                192.168.100.254 YES NVRAM  up                    up     

Vlan160                192.168.115.254 YES NVRAM  up                    up     

GigabitEthernet1/     unassigned      YES unset  up                    up     

GigabitEthernet1/     unassigned      YES unset  down                  down   

GigabitEthernet1/     unassigned      YES unset  down                  down   

GigabitEthernet1/     unassigned      YES unset  down                  down   

GigabitEthernet1/     unassigned      YES unset  down                  down   

GigabitEthernet1/     unassigned      YES unset  down                  down   

GigabitEthernet1/     unassigned      YES unset  down                  down   

GigabitEthernet1/     unassigned      YES unset  down                  down   

GigabitEthernet1/     unassigned      YES unset  down                  down   

GigabitEthernet1/    unassigned      YES unset  down                  down   

GigabitEthernet1/    unassigned      YES unset  down                  down   

GigabitEthernet1/    unassigned      YES unset  down                  down   

GigabitEthernet1/    unassigned      YES unset  down                  down   

GigabitEthernet1/    unassigned      YES unset  down                  down   

GigabitEthernet1/    unassigned      YES unset  up                    up     

GigabitEthernet1/    unassigned      YES unset  down                  down   

GigabitEthernet1/    unassigned      YES unset  down                  down   

GigabitEthernet1/    unassigned      YES unset  down                  down   

GigabitEthernet1/    unassigned      YES unset  down                  down   

GigabitEthernet1/    unassigned      YES unset  down                  down   

GigabitEthernet3/     unassigned      YES unset  up                    up     

GigabitEthernet3/     unassigned      YES unset  up                    up     

GigabitEthernet3/     unassigned      YES unset  up                    up     

GigabitEthernet3/     unassigned      YES unset  up                    up      

GigabitEthernet3/     unassigned      YES unset  up                    up     

GigabitEthernet3/     unassigned      YES unset  up                    up     

GigabitEthernet3/     unassigned      YES unset  up                    up     

GigabitEthernet3/     unassigned      YES unset  up                    up     

GigabitEthernet3/     unassigned      YES unset  down                  down   

GigabitEthernet3/    unassigned      YES unset  down                  down   

GigabitEthernet3/    unassigned      YES unset  down                  down   

GigabitEthernet3/    unassigned      YES unset  down                  down   

GigabitEthernet3/    unassigned      YES unset  down                  down   

GigabitEthernet3/    unassigned      YES unset  down                  down   

GigabitEthernet3/    unassigned      YES unset  down                  down   

GigabitEthernet3/    unassigned      YES unset  down                  down   

GigabitEthernet3/    unassigned      YES unset  up                    up     

GigabitEthernet3/    unassigned      YES unset  up                    up     

GigabitEthernet3/    unassigned      YES unset  up                    up     

GigabitEthernet3/    unassigned      YES unset  up                    up     

GigabitEthernet3/    unassigned      YES unset  up                    up     

GigabitEthernet3/    unassigned      YES unset  up                    up     

GigabitEthernet3/    unassigned      YES unset  up                    up      

GigabitEthernet3/    unassigned      YES unset  up                    up  

TEST#

TEST#

TEST#sh vlan # 显示所有的vlan信息

VLAN Name                             Status    Ports

---- -------------------------------- --------- -------------------------------

    default                           active    Gi1/, Gi1/, Gi1/, Gi1/, Gi1/, Gi1/, Gi1/, Gi1/, Gi1/, Gi1/, Gi1/,Gi1/, Gi1/, Gi1/, Gi1/, Gi1/, Gi1/, Gi1/, Gi3/, Gi3/, Gi3/,Gi3/

    firewall                           active    Gi1/

   Engineering                      active    Gi3/, Gi3/

   Procurement                      active    Gi3/

   QAQC                         active   

   Operation                              active   

   Yard                            active    Gi3/

   BM                             active   

   HRAD                           active   

   Facility                          active   

  Finance                        active   

  GO                               active   

  Wlan                          active   

  Server                           active    Gi3/, Gi3/, Gi3/, Gi3/, Gi3/, Gi3/, Gi3/, Gi3/

  Client                           active    Gi3/, Gi3/

 fddi-default                       act/unsup

 token-ring-default                  act/unsup

 fddinet-default                     act/unsup

 trnet-default                       act/unsup

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2

---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

    enet         -      -      -        -    -                

    enet         -      -      -        -    -                

   enet         -      -      -        -    -                

   enet         -      -      -        -    -                

   enet         -      -      -        -    -                

   enet         -      -      -        -    -                

   enet         -      -      -        -    -                

   enet         -      -      -        -    -                

   enet         -      -      -        -    -                

   enet         -      -      -        -    -                

  enet         -      -      -        -    -                

  enet         -      -      -        -    -                

  enet         -      -      -        -    -                

  enet         -      -      -        -    -                

  enet         -      -      -        -    -                

  fddi         -      -      -        -    -                

TEST#

TEST#sh vtp sta            # 显示vtp协议的相关配置

VTP Version                       : 

Configuration Revision                : 

Maximum VLANs supported locally    : 

Number of existing VLANs           : 

VTP Operating Mode              : Server

VTP Domain Name                  : pjoe

VTP Pruning Mode                : Disabled

VTP V2 Mode                     : Disabled

VTP Traps Generation                : Enabled

MD5 digest                      : 0xEC 0x30 0xEF 0x6F 0xA5 0x9A 0x39 0x7B

Configuration last modified by 192.168.113.254 at -- ::

Local updater ID is 192.168.113.254 on interface Vl1 (lowest numbered VLAN interface found)

TEST#

TEST#

TEST#sh int gi1/2         # 显示具体物理接口的信息

GigabitEthernet1/ is down, line protocol is down (notconnect)

  Hardware is GigabitEthernetPort, address is 001a.6db4.a3c1 (bia 001a.6db4.a3c1)

  MTU  bytes, BW  Kbit, DLY  usec,

     reliability /, txload /, rxload /

  Encapsulation ARPA, loopback not set

  Keepalive set ( sec)

  Auto-duplex, Auto-speed, link type is auto, media type is //-TX

  input flow-control is off, output flow-control is off

  ARP type: ARPA, ARP Timeout ::

  Last input never, output never, output hang never

  Last clearing of "show interface" counters never

  Input queue: /// (size/max/drops/flushes); Total output drops: 

  Queueing strategy: fifo

  Output queue: / (size/max)

   minute input rate  bits/sec,  packets/sec

   minute output rate  bits/sec,  packets/sec

      packets input,  bytes,  no buffer

     Received  broadcasts ( multicast)

      runts,  giants,  throttles

      input errors,  CRC,  frame,  overrun,  ignored

      input packets with dribble condition detected

      packets output,  bytes,  underruns

      output errors,  collisions,  interface resets

      babbles,  late collision,  deferred

      lost carrier,  no carrier

      output buffer failures,  output buffers swapped out

  

TEST#

TEST#

TEST#sh ip route   # 显示这台交换机的所有路由信息

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

       N1 - OSPF NSSA external type , N2 - OSPF NSSA external type 

       E1 - OSPF external type , E2 - OSPF external type , E - EGP

       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-, L2 - IS-IS level-

       ia - IS-IS inter area, * - candidate default, U - per-user static route

       o - ODR, P - periodic downloaded static route

Gateway of last resort is 172.16.0.1 to network 0.0.0.0

C    192.168.106.0/ is directly connected, Vlan60

C    192.168.107.0/ is directly connected, Vlan70

C    192.168.104.0/ is directly connected, Vlan40

C    192.168.105.0/ is directly connected, Vlan50

C    192.168.110.0/ is directly connected, Vlan100

C    192.168.111.0/ is directly connected, Vlan110

C    192.168.108.0/ is directly connected, Vlan80

     172.16.0.0/ is subnetted,  subnets

C       172.16.0.0 is directly connected, Vlan2

C    192.168.115.0/ is directly connected, Vlan160

C    192.168.113.0/ is directly connected, Vlan1

C    192.168.112.0/ is directly connected, Vlan120

C    192.168.102.0/ is directly connected, Vlan20

C    192.168.103.0/ is directly connected, Vlan30

C    192.168.100.0/ is directly connected, Vlan150

C    192.168.101.0/ is directly connected, Vlan10

S*   0.0.0.0/ [/] via 172.16.0.1

  

TEST#

TEST#sh processes cpu  # 显示交换机的cpu利用率。当前是正常的。

CPU utilization for five seconds: %/%; one minute: %; five minutes: %

 PID Runtime(ms)   Invoked      uSecs   5Sec   1Min   5Min TTY Process

                              0.00%  0.00%  0.00%    Chunk Manager   

                             0.00%  0.00%  0.00%    Load Meter      

                             0.00%  0.00%  0.00%    SpanTree Helper 

                                  0.00%  0.00%  0.00%    Deferred Events 

                       0.00%  0.11%  0.11%    Check heaps     

                                 0.00%  0.00%  0.00%    Pool Manager    

                                 0.00%  0.00%  0.00%    Timers          

                                  0.00%  0.00%  0.00%    Serial Backgroun

                                  0.00%  0.00%  0.00%    AAA_SERVER_DEADT

                                  0.00%  0.00%  0.00%    AAA high-capacit

                                  0.00%  0.00%  0.00%    Policy Manager  

                               0.00%  0.00%  0.00%    IPC Dynamic Cach

                                  0.00%  0.00%  0.00%    IPC Zone Manager

                           0.00%  0.00%  0.00%    IPC Periodic Tim

                           0.00%  0.00%  0.00%    IPC Deferred Por

                                  0.00%  0.00%  0.00%    IPC Seat Manager

                                  0.00%  0.00%  0.00%    IFS Agent Manage

                       0.00%  0.00%  0.00%    ARP Input       

                             0.00%  0.00%  0.00%    Entity MIB API  

                                  0.00%  0.00%  0.00%    SERIAL A'detect 

                           0.00%  0.00%  0.00%    Dynamic ARP Insp

                           0.00%  0.00%  0.00%    HC Counter Timer

                                  0.00%  0.00%  0.00%    Critical Bkgnd  

                            0.00%  0.00%  0.00%    Net Background   

                                 0.00%  0.00%  0.00%    Logger          

                           0.00%  0.00%  0.00%    TTY Background  

                           0.00%  0.00%  0.00%    Per-Second Jobs 

                     0.00%  0.04%  0.00%    Per-minute Jobs 

                   4.07%  4.33%  4.33%    Cat4k Mgmt HiPri

                 5.91%  8.93%  8.04%    Cat4k Mgmt LoPri

                            0.00%  0.00%  0.00%    Galios Reschedul

                                 0.00%  0.00%  0.00%    IOS ACL Helper  

                                  0.00%  0.00%  0.00%    NAM Manager     

                             0.00%  0.00%  0.00%    rf task         

                                 0.00%  0.00%  0.00%    BACK CHECK      

                        0.00%  0.00%  0.00%    Net Input       

                         0.00%  0.01%  0.00%    Compute load avg

                                  0.00%  0.00%  0.00%    chkpt message ha

                                  0.00%  0.00%  0.00%    cpf_process_msg_

                                  0.00%  0.00%  0.00%    cpf_process_ipcQ

                                 0.00%  0.00%  0.00%    AggMgr Process  

                                  0.00%  0.00%  0.00%    SFF8472         

                                  0.00%  0.00%  0.00%    Collection proce

 PID Runtime(ms)   Invoked      uSecs   5Sec   1Min   5Min TTY Process

                                  0.00%  0.00%  0.00%    CEF switching ba

                                  0.00%  0.00%  0.00%    AAA Dictionary R

                                  0.00%  0.00%  0.00%    AAA Server      

                                  0.00%  0.00%  0.00%    AAA ACCT Proc   

                                  0.00%  0.00%  0.00%    ACCT Periodic Pr

                    0.79%  0.73%  0.73%    Spanning Tree   

                        0.00%  0.01%  0.00%    DTP Protocol    

                              0.00%  0.00%  0.00%    Ethchnl         

                           0.00%  0.00%  0.00%    UDLD            

                               0.00%  0.00%  0.00%    DHCP Snooping   

                               0.00%  0.00%  0.00%    Port-Security   

                    0.23%  0.19%  0.20%    IP Input        

                                  0.00%  0.00%  0.00%    ICMP event handl

                        0.00%  0.02%  0.00%    CDP Protocol    

                                  0.00%  0.00%  0.00%    SNMP Timers     

                            0.00%  0.00%  0.00%    CEF background p

                                  0.00%  0.00%  0.00%    XDR mcast       

                                  0.00%  0.00%  0.00%    IPC LC Message H

                                  0.00%  0.00%  0.00%    XDR RP Ping Back

                               0.00%  0.00%  0.00%    XDR RP backgroun

                                  0.00%  0.00%  0.00%    XDR RP Test Back

                                  0.00%  0.00%  0.00%    IP IRDP         

                         0.07%  0.07%  0.07%    CEF: IPv4 proces

                                 0.00%  0.00%  0.00%    ADJ background  

                             0.00%  0.00%  0.00%    L2MM            

                                  0.00%  0.00%  0.00%    MRD             

                            0.00%  0.00%  0.00%    IGMPSN          

                                  0.00%  0.00%  0.00%    IGMPSN-HA       

                                  0.00%  0.00%  0.00%    Socket Timers   

                                  0.00%  0.00%  0.00%    L2TRACE SERVER  

                            0.00%  0.00%  0.00%    TCP Timer       

                              0.00%  0.00%  0.00%    TCP Protocols   

                       0.00%  0.02%  0.00%    HTTP CORE       

                                 0.00%  0.00%  0.00%    CHKPT EXAMPLE   

                                  0.00%  0.00%  0.00%    CHKPT DevTest   

                                  0.00%  0.00%  0.00%    ATIP_UDP_TSK    

                                  0.00%  0.00%  0.00%    DHCP Snooping HA

                                  0.00%  0.00%  0.00%    Probe Input     

                                  0.00%  0.00%  0.00%    RARP Input      

                        0.00%  0.00%  0.00%    DHCPD Receive   

                              0.00%  0.00%  0.00%    IP Background   

                              0.00%  0.00%  0.00%    IP RIB Update   

                                  0.00%  0.00%  0.00%    COPS            

                               0.00%  0.00%  0.00%    Cluster L2      

                              0.00%  0.00%  0.00%    Cluster RARP    

 PID Runtime(ms)   Invoked      uSecs   5Sec   1Min   5Min TTY Process

                                  0.00%  0.00%  0.00%    LOCAL AAA       

                                  0.00%  0.00%  0.00%    AAA Cached Serve

                                  0.00%  0.00%  0.00%    TPLUS           

                                 0.00%  0.00%  0.00%    RADIUS TEST CMD 

                                    0.00%  0.00%  0.00%    AAA SEND STOP EV

                         0.00%  0.01%  0.00%    PM Callback     

                           0.00%  0.00%  0.00%    VLAN Manager    

                               0.00%  0.00%  0.00%    DHCPD Timer     

                               0.00%  0.00%  0.00%    VTP Trap Process

                                 0.00%  0.00%  0.00%    DHCP Security He

                                 0.00%  0.00%  0.00%    DiagCard1/-    

                                 0.00%  0.00%  0.00%    DiagCard3/-    

                                 0.00%  0.00%  0.00%    Syslog Traps    

                                0.00%  0.00%  0.00%    VTPMIB EDIT BUFF

                                 0.00%  0.00%  0.00%    SPAN switch     

                            0.00%  0.00%  0.00%    IP SNMP         

                                0.00%  0.00%  0.00%    PDU DISPATCHER  

                                 0.00%  0.00%  0.00%    SNMP ENGINE     

                                0.00%  0.00%  0.00%    SNMP ConfCopyPro

                          0.00%  0.00%  0.00%    SNMP Traps      

                         0.00%  0.00%  0.00%    DHCPD Database  

                          0.00%  0.00%  0.00%    System polling  

                         0.39%  0.55%  0.37%    Virtual Exec 

  

TEST#

TEST#reload        # 这条命令可重新启动交换机

TEST#

TEST#sh ver          # 显示当前设备的版本信息

Cisco IOS Software, Catalyst  L3 Switch Software (cat4000-I9S-M), Version 12.2()EWA8, RELEASE SOFTWARE (fc1)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) - by Cisco Systems, Inc.

Compiled Wed -Jan- : by pwade

Image text-base: 0x10000000, data-base: 0x114EECF0

ROM: 12.2(20r)EW1

Dagobah Revision , Swamp Revision 

TEST uptime is  days,  hours,  minutes

System returned to ROM by power-on

System image file is "bootflash:cat4000-i9s-mz.122-25.EWA8.bin"

cisco WS-C4503 (MPC8245) processor (revision ) with 262144K bytes of memory.

Processor board ID FOX104406TX

MPC8245 CPU at 267Mhz, Supervisor II+TS

Last reset from PowerUp

 Virtual Ethernet interfaces

 Gigabit Ethernet interfaces

511K bytes of non-volatile configuration memory.

Configuration register is 0x2102

  

TEST#

switch#write ;保存配置信息
switch#show vtp ;查看vtp配置信息
switch#show run ;查看当前配置信息
switch#show interface ;查看端口信息
switch#show int f0/0 ;查看指定端口信息

switch#show ip int bir 查看端口VLAN IP 开启状态总览
#show int status 查看端口状态总览
#show int trunk #查看trunk 口
switch#show vlan ;查看vlan配置端口分布信息
switch#show interface vlan 11 # 查看VLAN11 详细信息
#show spanning-tree 查看生成树状态
#show spanning-tree mst configuration 查看多生成树状态信息

#show access-list 查看规则状态
#sh int etherchannel sum 查看“端口聚合/链路捆绑
#sh int port-channel 查看“端口聚合/链路捆绑
#show inventory 查看光模块显信
#show history 查看历史输入命令
#show errdisable recovery 查看哪些保护会在超时后可自动恢复
#show errdisable detect查看 err-disabled 状态的原因

关闭提示
Router(config)#no logging console 如果你通过console连接,使用第一条
Router(config)#no logging monitor 如果通过telnet,ssh之类连接就用第二条
rack01r1(config)#no logging buffered 这个是关闭缓存

Cisco 的基本配置实例之六----常排错命令--关闭提示的更多相关文章

  1. Cisco 的基本配置实例之五----交换机的路由功能与DHCP 功能

    5.配置交换机的路由功能 说明:只有在三层交换机上才有路由功能,其他的二层接入交换机要想在不同的vlan之间传送数据需要通过trunk口到核心交换机上进行完路由交换后才可以. TEST(config) ...

  2. Cisco 的基本配置实例之四----vlan的规划及配置(接入交换机)

    4.2 接入交换机的相关配置 ## 在此例中,我们联入的是一台接入交换机,此交换机的gi0/1口上联至核心交换机.也就意味着我们需要配置gi0/1为trunk口.具体的配置如下: D-2960-3(c ...

  3. Cisco 的基本配置实例之四----vlan的规划及配置(核心交换机)

    4.vlan的规划及配置 在本节中我们讲解vlan的规划及具体的配置命令.在此例中我们用的是vtp(VLAN Trunking Protocol)server的模式,在这种模式中我们需要配置核心交换机 ...

  4. cisco路由器 三层交换机简单环境配置实例(图)

    出处:http://www.jb51.NET/softjc/56600.html cisco路由器&三层交换机简单环境配置实例 一.网络拓扑图: 二.配置命令: 1.路由器的配置: inter ...

  5. CISCO动态VLAN配置

    一.基于VMPS的动态VLAN配置实例 网络中VLAN实现分为静态 VLAN和动态VLAN.静态VLAN又被称为是基于端口的VLAN.顾名思义,就是明确指定各端口属于哪个VLAN的设定方法,交换机中某 ...

  6. 关于cisco日志的配置

    实例: en conf t clock timezone GMT+8  #设置北京时间 exit clock set HH:MM:SS DAY MONTH YEAR  #设置当前时间 service ...

  7. SVN版本库(访问权限)配置实例笔记

    http://blog.csdn.net/zjianbo/article/details/8578297 SVN版本库(访问权限)配置实例笔记 本系列文章由ex_net(张建波)编写,转载请注明出处. ...

  8. nginx+tomcat+二级域名静态文件分离支持mp4视频播放配置实例

    nginx+tomcat+二级域名静态文件分离支持mp4视频播放配置实例 二级域名配置 在/etc/nginx/conf.d/目录下配置二级域名同名的conf文件,路径改成对应的即可 statics. ...

  9. Keepalived 配置实例

    Keepalived 是一款轻量级HA集群应用,它的设计初衷是为了做LVS集群的HA,即探测LVS健康情况,从而进行主备切换,不仅如此,还能够探测LVS代理的后端主机的健康状况,动态修改LVS转发规则 ...

随机推荐

  1. [SHOI2008]堵塞的交通traffic

    我是萌萌的传送门 这题说白了就是一个支持加边和删边的图连通性维护,不过鉴于图的特殊性,可以直接线段树(听说标算就是这个--). 然而我人比较懒,不想思考怎么线段树,于是乎写了一发分治并查集,1A我真是 ...

  2. Css样式基础

    1.Css的语法 CSS的语法主要由两个部分组成,一个是选择器,一个是属性. 选择器又分为以下几种: 1.元素选择器:即Html标签去掉括号的就是元素 2.类选择器:所谓的类就是说class=“名称” ...

  3. 关于Qt

    什么是Qt Qt是一个针对桌面.嵌入式.移动设备的一个跨平台的应用程序开发框架,支持的平台包括Linux.OS X.Windows.VxWorks.QNX.Android.iOS.BlackBerry ...

  4. 【JMeter】Jmeter引入第三方jar包

    Jmeter做remoteService,里面用到一个实体:clickEntity,是在一个第三方jar包定义的:com.bj58.opt.ad_logparser-0.0.18-SNAPSHOT.j ...

  5. WIN7 如何关闭Aero

    控制面板-性能信息和工具-调整视觉效果-视觉效果 里面选择 调整为最佳性能,这样就关闭了win7的Aero特效

  6. while和for可以相互转换例子

    //while和for循环可以相互转换,以下为简单格式: ;;) A; 等价于 : ) { A; ; } /* Name:while和for可以相互转换例子 Copyright: By.不懂网络 Au ...

  7. STS中Maven配置

    最近接触maven, 配置过程中记录一下. STS是解压版的,启动后,可以看到已经有了Maven插件, , 但是,STS也同时给你了一个Maven,但是通常不建议使用STS自带的maven.使用默认的 ...

  8. thinkphp发送邮件需要开启什么设置

    邮件配置 'THINK_EMAIL' => array( 'SMTP_HOST' => 'smtp.163.com', //SMTP服务器 'SMTP_PORT' => '465', ...

  9. 【Web】Nginx Rewrite规则

    Rewrite介绍 Rewrite主要的功能就是实现URL的重写,Nginx的Rewrite规则采用Pcre,perl兼容正则表达式的语法规则匹配,如果需要Nginx的Rewrite功能,在编译Ngi ...

  10. git clone 问题 fatal: unable to access

    git clone 遇到问题 Cloning into 'warp-ctc'...fatal: unable to access 'https://github.com/SeanNaren/warp- ...