缺省设置 | |
运作模式 | 第二层或交换模式 (switchport command). 注意 路由模式 (no switchport command) 只有当交换机装有EMI时才是一个可用模式。所有的Catalyst 3550GBT交换机交货时已装有EMI。Catalyst 3550FESwitch交货时要么是标准多层软件映像(SMI)要么是预装EMI的。你可以定购EMI升级包,升级Catalyst3550从SMI到EMI。 |
允许的 VLAN 范围 | VLANs 1 - 4094. |
缺省 VLAN (给访问端口) | VLAN 1. |
本地 VLAN (给802.1Q干道) | VLAN 1. |
VLAN 中继 | 动态可用的交换端口模式 (支持 DTP). |
端口启用状态 | 所有端口都被启用 |
端口描述 | 没有定义 |
速度 | 自适应 |
双工模式 | 自适应 |
流控制 | 对于10/100/1000 Mb/s端口流控制收为关闭off, 发为期望 desired。而对于10/100 Mb/s 端口, 发总是关闭off。 |
以太通道 (端口聚合协议PAgP) | 在所有端口上没有启用。 请看“ 配置以台通道” |
端口阻塞 (未知多播和未知单播流量) | 禁用(没有被阻断). 请看 "配置端口阻断" 部分. |
广播,多播和单播风暴控制 | 禁用。 请看 “缺省风暴控制配置”。 |
受保护 | 禁用。 请看“ 配置受保护端口”部分 |
端口安全 | 禁用 请看“缺省端口安全配置”部分 |
速端口 | 禁用 |
命令 | 目的 | |
Step 1 | configure terminal | 进入全局配置模式 |
Step 2 | interface interface-id | 进入接口配置模式,并确认物理接口 |
Step 3 | speed {10 | 100 | 1000 | auto | nonegotiate} | 为接口输入适当的接口参数, 或者输入 auto 或 nonegotiate. 注意 1000关键字只针对10/100/1000 Mbps 的端口有效. nonegotiate 关键字只针对1000BASE-SX, -LX, and -ZX GBIC 端口有效. |
Step 4 | duplex {auto | full | half} | 为接口输入双工参数 |
Step 5 | end | 返回特权模式 |
Step 6 | show interfaces interface-id | 显示接口配置的速度和双工模式 |
Step 7 | copy running-config startup-config | (可选) 保存你的条目到配置文件 |
Switch# configure terminal
Switch(config)# interface fastethernet0/3
Switch(config-if)# speed 10
Switch(config-if)# duplex half
Switch(config-if)# end
Switch# show interfaces fastethernet0/3
FastEthernet0/3 is up, line protocol is down
Hardware is Fast Ethernet, address is 0000.0000.0003 (bia 0000.0000.0003)
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Half-duplex, 10Mb/s
Command | Purpose | |
Step 1 | configure terminal | 进入全局配置模式 |
Step 2 | no mls qos | 禁用交换机上的QoS |
Step 3 | interface interface-id | 进入接口配置模式以配置物理接口 |
Step 4 | flowcontrol {receive | send} {on | off | desired} | 为端口配置流控制模式 注意 send 关键字不能用于10/100 Mbps接口. |
Step 5 | end | 返回特权模式 |
Step 6 | show interfaces interface-id | 确认端口流控制配置 |
Step 7 | copy running-config startup-config | (可选) 把条目保存到配置文件中 |
Switch# configure terminal
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# flowcontrol receive off
Switch(config-if)# flowcontrol send off
Switch(config-if)# end
Switch# show interfaces gigabitethernet0/1
GigabitEthernet0/1 is up, line protocol is down
Hardware is Gigabit Ethernet, address is 0002.4b29.2e01 (bia 0002.4b29.2e01)
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Auto-duplex, Auto-speed
input flow-control is off, output flow-control is off
Switch# config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface fastethernet0/4
Switch(config-if)# description Connects to Marketing
Switch(config-if)# end
Switch# show interfaces fastethernet0/4 description
Interface Status Protocol Description
Fa0/4 up down Connects to Marketing
监控和维护第二层接口你可以执行这几节中的任务来监控和维护接口:监视接口和控制器状态清空和重置接口和计数器关闭和重起接口监视接口和控制器状态在特权模式输入命令会立即显示关于该端口的信息,包括软件和硬件的版本,控制器状态,和接口的统计信息。
表9-2列出了一些接口监控命令。
(你可以在特权模式中用show ?命令显示所有的show命令)这些命令的完全描述在
Cisco IOS Interface Command Reference for Release 12.1。表9-2: 接口的show命令
Command | |
show interfaces [interface-id] | 显示所有接口或指定接口的状态和配置情况 |
show interfaces interface-id status [err-disabled] | 显示接口状态或一个在错误禁用状态的接口列表 |
show interfaces [interface-id] switchport | 显示交换端口(非路由端口)的管理和运行状态 你可以用这个命令派段一个端口实路由还是交换模式 |
show interfaces [interface-id] description | 显示在一个接口上或所有接口上配置的描述信息和端口状态 |
show running-config | 显示内存理的运行配置文件 |
show version | 显示配置文件的硬件配置, 软件版本, 名称 和源 ,以及引导映像(boot images)。 |
Switch# show interfaces status
Port Name Status Vlan Duplex Speed Type
Gi0/1 CubeA connected 1 a-full a-100 10/100/1000BaseTX
Gi0/2 CubeE notconnect 1 auto auto 10/100/1000BaseTX
Gi0/3 CubeF disabled 1 auto auto 10/100/1000BaseTX
Gi0/4 CubeG notconnect 1 auto auto 10/100/1000BaseTX
Gi0/5 CubeH notconnect routed auto auto 10/100/1000BaseTX
Gi0/6 CubeI notconnect routed auto auto 10/100/1000BaseTX
Gi0/7 CubeJ connected 1 a-full a-100 10/100/1000BaseTX
Gi0/8 CubeK notconnect 1 auto auto 10/100/1000BaseTX
Gi0/9 CubeL disabled 1 auto auto 10/100/1000BaseTX
Gi0/10 CubeB notconnect routed auto auto 10/100/1000BaseTX
Gi0/11 CubeC notconnect 1 auto auto unknown
Gi0/12 CubeD notconnect 1 auto auto unknown
Switch# show interfaces switchport
Name: Gi0/1
Switchport: Enabled
Administrative Mode: dynamic desirable
Operational Mode: static access
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: native
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Protected: True
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Voice VLAN: none (Inactive)
Appliance trust: none
Name: Gi0/2
Switchport: Enabled
Administrative Mode: dynamic desirable
Operational Mode: down
Administrative Trunking Encapsulation: negotiate
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Protected: True
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Voice VLAN: none (Inactive)
Appliance trust: none
Command | |
clear counters [interface-id] | 清除接口计数器 |
clear interface interface-id | 重置接口的硬件逻辑电路 |
clear line [number | console 0 | vty number] | 在一个异步串行线路上重置接口逻辑电路 |
Switch# clear counters gigabitethernet0/5
Clear "show interface" counters on this interface [confirm] y
Switch#
*Sep 30 08:42:55: %CLEAR-5-COUNTERS: Clear counter on interface GigabitEthernet0/5
by vty1 (171.69.115.10)
Command | Purpose | |
Step 1 | configure terminal | 进入全局配置模式 |
Step 2 | interface {vlan vlan-id} | {{fastethernet | gigabitethernet} interface-id} | {port-channel port-channel-number} | 选择一个需被配置的端口 |
Step 3 | shutdown | 关闭一个接口 |
Step 4 | end | 返回特权模式 |
Step 5 | show running-config | 确认你的条目 |
Switch# configure terminal
Switch(config)# interface gigabitethernet0/5
Switch(config-if)# shutdown
Switch(config-if)#
*Sep 30 08:33:47: %LINK-5-CHANGED:
Interface GigabitEthernet0/5, changed state to a administratively down
Switch# configure terminal
Switch(config)# interface gigabitethernet0/5
Switch(config-if)# no shutdown
Switch(config-if)#
*Sep 30 08:36:00: %LINK-3-UPDOWN: Interface GiogabitEthernet0/5, changed state to up
Switch# show interfaces
GigabitEthernet0/2 is administratively down, line protocol is down
Hardware is Gigabit Ethernet, address is 0002.4b29.4403 (bia 0002.4b29.4403)
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Auto-duplex, Auto-speed
| 共2页: 上一页 [1] 2 | ||
|
|
|||
| · OSPF路由协议专栏 · 思科路由器产品 · 华为路由器产品 · 路由器模拟器 · AIX操作系统管理应用(.. · 思科路由器配置 · 路由器组网解决方案 · 路由器密码恢复 |
· 无线路由器故障处理 · 路由故障处理手册 · 路由器访问控制列表(AC.. · 路由器的安全配置与安.. · 无线路由器配置 · 路由器技巧 · 华为路由器配置 · 路由器配置基础 |
||
|
|||
| · Java基础教程 · VPN技术 · SQL Server 2005全解 · ARP攻击防范与解决方案 · SOA 面向服务架构 · SQL Server 2005全解 · Java编程开发手册 · 三层交换技术专题 |
· SQL Server入门到精通 · Windows Server 2003企.. · Windows远程桌面应用 · C#技术开发指南 · VPN技术 · Solaris 10 配置管理 · C#技术开发指南 · Windows操作系统安装 |
||
|
|||
| · VPN技术 · ARP攻击防范与解决方案 · SQL Server 2005全解 · Java基础教程 · SQL Server入门到精通 · SQL Server 2005全解 · SOA 面向服务架构 · Java编程开发手册 |
· C#技术开发指南 · 三层交换技术专题 · C#技术开发指南 · Windows远程桌面应用 · Windows Server 2003企.. · 邮件服务器专题 · wimax技术与趋势 · Windows操作系统安装 |
||
| ·DB2 Viper快速入门 ·DB2 9数据库的镜像分割与.. |
·将XML应用程序从DB2 8.x.. ·DB2 9中的pureXML:如何.. |
| ·服务器中的“傻瓜机”在.. ·盖茨也喜欢登录Youtube看.. |
· · |
| · 职场冲浪(之八):让感.. ·职场冲浪(之七):潜心.. |
·人生如鞋 ·职场冲浪(之六):从离梦最.. |
| ·将职业教育职业化 - 各IT.. ·思科交换机上实现MAC地址.. |
·关于51CTO合作出书中的职.. ·OSPF动态路由协议入门简介 |
| · NGN:下一代网络 · 网络访问中断大排查 · FTTx光纤接入 |
· 平凡黑客讲述精彩人生(.. · 平凡黑客讲述精彩人生(.. · 平凡黑客讲述精彩人生(.. |
| · C++是垃圾语言?! · 2007年IT界七大抄袭事件 · Java实用开发全集 |
· 解析Ajax开发框架 走进A.. · 基于Google Maps与Ajax.. · 基于Google Maps与Ajax.. |
| · Ubuntu 中文开源频道 · Solaris基础知识入门 · 微软正式发布英文版Wind.. |
· 服务器基础知识入门 · Rambus第二?看全缓冲内.. · 服务器节能对比测试:AM.. |
| · 甲骨文Oracle 11g正式发.. · Oracle数据库开发之PL/S.. · Oracle数据库开发基础教.. |
· 存储2006,一个并购的大.. · IDC宣布浪潮蝉联存储市.. · 双机热备技术 |