Switch基本配置

实验目的:
l配置交换机的基本命令
实验说明:
Cisco的交换机配置命令和Router的配置命令基本一致, 故这里不做详细介绍
实验拓扑图:

Switch基本配置

文章插图
 
实验步骤:
1. 了解基本配置
Sw1#configure terminal
Sw1(config)# interface fastethernet0/10
Sw1(config-if)#speed 10
Sw1(config-if)#duplex half
Sw1(config-if)#description test
Sw1(config-if)#end
Sw1#sh int f0/10 status
Port Name Status Vlan Duplex Speed Type
Fa0/10 test notconnect 1 half 10 10/100BaseTX
Sw1#sh int fa0/11
FastEthernet0/11 is up, line protocol is up
Hardware is Fast Ethernet, address is 000d.2960.8bcb (bia 000d.2960.8bcb)
MTU 1500 bytes, BW 100000 Kbit, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s
input flow-control is off, output flow-control is off
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:01, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
5751 packets input, 414216 bytes, 0 no buffer
Received 5680 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 5680 multicast, 0 pause input
0 input packets with dribble condition detected
119 packets output, 12781 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 PAUSE output
0 output buffer failures, 0 output buffers swApped out
 
Sw1#sh int fa0/1 switchport
Name: Fa0/1
Switchport: Enabled
Administrative Mode: dynamic desirable
Operational Mode: down
Administrative Trunking Encapsulation: dot1q
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
 
Protected: false
 
Voice VLAN: none (Inactive)
Appliance trust: none
 
Sw1#sh run int f0/1
Building configuration...
Current configuration : 89 bytes
!
interface FastEthernet0/1
description test
no ip address
duplex half
speed 10
end
 
Sw1#show version
Cisco Internetwork Operating System Software
IOS (tm) C2960 Software (C2960-I6Q4L2-M), Version 12.2(11)EA1, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2007 by cisco Systems, Inc.
Compiled Wed 28-Aug-02 10:25 by antonino
Image text-base: 0x80010000, data-base: 0x80528000
 
ROM: Bootstrap program is CALHOUN boot loader
 
Sw1 uptime is 30 minutes
System returned to ROM by power-on
System image file is "flash:/c2960-i6q4l2-mz.122-11.EA1.bin"
 
cisco WS-C2960-24 (RC32300) processor (revision J0) with 20402K bytes of memory.
Processor board ID FOC0725Y05M
Last reset from system-reset
Running Standard Image
24 FastEthernet/IEEE 802.3 interface(s)
 
32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet mac Address: 00:0D:29:60:8B:C0
Motherboard assembly number: 73-5782-11
Power supply part number: 34-0965-01
Motherboard serial number: FOC07250XZ2
Power supply serial number: DAB07226HJ0
Model revision number: J0
Motherboard revision number: A0
Model number: WS-C2960-24
System serial number: FOC0725Y05M
Configuration register is 0xF
 
 
 
Sw1(config)#do sh vlan b
 
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10(省略)
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
 
Sw1#sh int trunk
Port Mode Encapsulation Status Native vlan
Fa0/11 desirable 802.1q trunking 1
Fa0/12 desirable 802.1q trunking 1
 
Port Vlans allowed on trunk
Fa0/11 1-4094
Fa0/12 1-4094
 


推荐阅读