思科交换机配置维护手册

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

思科交换机配置维护手册

目录

一、端口配置

1.1 配置一组端口

当使用interface range命令时有如下的规则:

•有效的组范围:

o vlan从1 到4094

o fastethernet槽位/{first port} - {last port}, 槽位为0

o gigabitethernet槽位/{first port} - {last port},槽位为0

o port-channel port-channel-number - port-channel-number, port-channel号从1到64

•端口号之间需要加入空格,如:interface range fastethernet 0/1 – 5是有效的,而interface range fastethernet 0/1-5是无效的.

•interface range命令只能配置已经存在的interface vlan

•所有在同一组的端口必须是相同类别的。

见以下例子:

Switch# configure terminal

Switch(config)# interface range fastethernet0/1 - 5

Switch(config-if-range)# no shutdown

以下的例子显示使用句号来配置不同类型端口的组:

Switch# configure terminal

Switch(config)# interface range fastethernet0/1 - 3, gigabitethernet0/1 - 2 Switch(config-if-range)# no shutdown

1.2 配置二层端口

1.2.1 配置端口速率及双工模式

Switch# configure terminal

Switch(config)# interface fastethernet0/3 Switch(config-if)# speed 10

Switch(config-if)# duplex half

1.2.2 端口描述

1.2.3 配置三层口

Catalyst 3750支持三种类型的三层端口: •SVIs: 即interface vlan

•三层以太网通道口(EtherChannel)

•.路由口:路由口是指某一物理端口在端口配置状态下用no switchport命令生成的端口

所有的三层都需要IP地址以实现路由交换

配置步骤如下:

配置举例如下:

Switch# configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)# interface gigabitethernet0/2

Switch(config-if)# no switchport

Switch(config-if)# ip address 192.20.135.21 255.255.255.0 Switch(config-if)# no shutdown

Switch(config-if)# end

show ip interface命令:

Switch# show ip interface gigabitethernet0/2 GigabitEthernet0/2 is up, line protocol is up

Internet address is 192.20.135.21/24

Broadcast address is 255.255.255.255

Address determined by setup command

MTU is 1500 bytes

Helper address is not set

Directed broadcast forwarding is disabled

1.3 监控及维护端口

1.3.1 监控端口和控制器的状态

主要命令见下表:

举例如下:

Switch# show interfaces status

Port Name Status Vlan Duplex Speed Type

Gi0/1 connected routed a-full a-100 10/100/1000Base TX

Gi0/2 wce server 20.20.2 disabled routed auto auto 10/100/1000Base TX Gi0/3 ip wccp web-cache notconnect routed auto auto 10/100/1000Base TX Gi0/4 notconnect routed auto auto 10/100/1000Base TX Gi0/5 notconnect routed auto auto 10/100/1000Base TX Gi0/6 disabled routed auto auto 10/100/1000Base TX Gi0/7 disabled routed auto auto 10/100/1000Base TX Gi0/8 disabled routed auto 100 10/100/1000Base TX Gi0/9 notconnect routed auto auto 10/100/1000Base TX Gi0/10 notconnect routed auto auto 10/100/1000Base TX Gi0/11 disabled routed auto auto unknown

Gi0/12 notconnect routed auto auto unknown

Switch# show interfaces fastethernet 0/1 switchport

Name: Fa0/1

Switchport: Enabled

Administrative Mode: static access

Operational Mode: down

Administrative Trunking Encapsulation: dot1q

Negotiation of Trunking: Off

Access Mode VLAN: 1 (default)

Trunking Native Mode VLAN: 1 (default)

Trunking VLANs Enabled: ALL

Pruning VLANs Enabled: 2-1001

Protected: false

Unknown unicast blocked: disabled

相关文档
最新文档