思科3750交换机常用配置手册内容摘要:

nfigif) no shutdown Switch(configif) end show ip interface 命令 : Switch show ip interface gigabitether0/2 GigabitEther0/2 is up, line protocol is up Inter address is Broadcast address is Address determined by setup mand MTU is 1500 bytes Helper address is not set Directed broadcast forwarding is disabled output truncated 监控及维护端口 监控端口和控制器的状态 主要命令见下表: Show Commands for Interfaces Command 目的 show interfaces [interfaceid] 显示所有端口或某一端口的状态和配置 . show interfaces interfaceid status [errdisabled] 显示一系列端口的状态或错误-关闭的状态 show interfaces [interfaceid] switchport 显示二层端口的状态,可以用来决定此口是否为二层或三层口。 show interfaces [interfaceid] description 显示端口描述 show ip interface [interfaceid] 显示所有或某一端口的 IP 可用性状态 show runningconfig interface [interfaceid] 显示当前配置中的端口配置情况 show version 显示软硬件等情况 举例如下 : Switch show interfaces status Port Name Status Vlan Duplex Speed Type Gi0/1 connected routed afull a100 10/100/1000Base TX Gi0/2 wce server disabled routed auto auto 10/100/1000Base TX Gi0/3 ip wccp webcache 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 fastether 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: 21001 Protected: false Unknown unicast blocked: disabled Unknown multicast blocked: disabled Voice VLAN: dot1p (Inactive) Appliance trust: 5 Switch show runningconfig interface fastether0/2 Building configuration... Current configuration : 131 bytes ! interface FastEther0/2 switchport mode access switchport protected no ip address mls qos cos 7 mls qos cos override end 刷新、重置端口及计数器 Clear 命令 目的 clear counters [interfaceid] 清除端口计数器 . clear interface interfaceid 重置某一端口的硬件逻辑 clear line [number | console 0 | vty number] 重置异步串口的硬件逻辑 Note clear counters 命令只清除用 show interface 所显示的计数,不影响用 snmp 得到的计数 举例如下: Switch clear counters fastether0/5 Clear show interface counters on this interface [confirm] y Switch *Sep 30 08:42:55: %CLEAR5COUNTERS: Clear counter on interface FastEther0/5 by vty1 () 可使用 clear interface 或 clear line 命令来清除或重置某一端口或串口,在大部分情况下并不需要这样做 : Switch clear interface fastether0/5 关闭和打开端口 命令 目的 Step 1 configure terminal 进入配置状态 Step 2 interface {vlan vlanid} | {{fastether | gigabitether} interfaceid} | {portchannel portchannelnumber} 选择要关闭的端口 Step 3 shutdown 关闭 Step 4 end 退出 Step 5 show runningconfig 验证 使用 no shutdown 命令重新打开端口 . 举例如下 : Switch configure terminal Switch(config) interface fastether0/5 Switch(configif) shutdown Switch(configif) *Sep 30 08:33:47: %LINK5CHANGED: Interface FastEther0/5, changed state to a administratively down Switch configure terminal Switch(config) interface fastether0/5 Switch(configif) no shutdown Switch(configif) *Sep 30 08:36:00: %LINK3UPDOWN: Interface FastEther0/5, changed state to up 配置 VLAN 理解 VLAN 一个 VLAN 就是一个交换网,其逻辑上按功能、项目、应用来分而不必考虑用户的物理位置。 任何交换口都可以属于某一 VLAN, IP 包、广播包及组播包均可以发送或广。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。