思科交换机基本操作
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
显示交换机IP地址
wg_sw_a#show ip IP address: 10.5.5.11 Subnet mask: 255.255.255.0 Default gateway: 10.5.5.3 Management VLAN: 1 Domain name: Name server 1: 0.0.0.0 Name server 2: 0.0.0.0 HTTP server: Enabled HTTP port: 80 RIP: Enabled wg_sw_a#
ICND—6-14
本章目标
通过本章的学习,您应该掌握以下内容:
• 能描述2层交换(桥接)的运作
• 能描述Catalyst 1900系列交换机反对运作
• 清楚Catalyst 1900系列交换机的出厂缺省配置 • 配置Catalyst 1900系列交换机 • 利用show命令确认Catalyst 1900系列交换机的 配置和运作
www.cisco.com
ICND—6-17
Catalyst 1900系列的端口
Cat1912
10baseT 端口 e0/1 to e0/12 e0/25 fa0/26 (port A) fa0/27 (port B)
Cat1924
e0/1 to e0/24 e0/25 fa0/26 (port A) fa0/27 (port B)
交换机基本操作
© 1999, Cisco Systems, Inc.
6-1
交换机的初始启动
• 系统启动例程会初始化交换机 • 初始启动利用缺省配置参数
1. 启动前确认正确连接线缆和控制线 2. 接入电源 3. 观察启动顺序 – 面板上的指示灯LEDs – Cisco IOS输出到控制台上的内容
© 1999, Cisco Systems, Inc.
AUI 端口
100baseT 级连端口
© 1999, Cisco Systems, Inc.
www.cisco.com
ICND—6-18
Catalyst 1900系列的端口
wg_sw_d#sh run Building configuration... Current configuration: ! ! interface Ethernet 0/1 ! interface Ethernet 0/2 wg_sw_d#sh span Port Ethernet 0/1 of VLAN1 is Forwarding Port path cost 100, Port priority 128 Designated root has priority 32768, address 0090.8673.3340 Designated bridge has priority 32768, address 0090.8673.3340 Designated port is Ethernet 0/1, path cost 0 Timers: message age 20, forward delay 15, hold 1
© 1999, Cisco Systems, Inc.
www.cisco.com
ICND—6-8
© 1999, Cisco Systems, Inc.
www.cisco.com
ICND—6-9
交换机之show interfaces命令
wg_sw_c#show interfaces ethernet 0/1 Ethernet 0/1 is Enabled Hardware is Built-in 10Base-T Address is 0050.BD73.E2C1 MTU 1500 bytes, BW 10000 Kbits 802.1d STP State: Forwarding Forward Transitions: Port monitoring: Disabled Unknown unicast flooding: Enabled Unregistered multicast flooding: Enabled Description: Duplex setting: Half duplex Back pressure: Disabled --More--
© 1999, Cisco Systems, Inc.
www.cisco.com
ICND—6-15
配置交换机
• Catalyst 1900
–菜单界面 –基于Web的管理 VSM(Visual Switch Manager) http://10.5.5.11 –IOS 命令行界面
© 1999, Cisco Systems, Inc.
© 1999, Cisco Systems, Inc.
www.cisco.com
ICND—6-11
配置交换机
配置模式:
• 全局配置模式
– wg_sw_a# conf term
– wg_sw_a(config)# • 端口配置模式 – wg_sw_a(config)# interface e0/1 – wg_sw_a(config-if)#
配置交换机IP地址
wg_sw_a(config)# ip address {ip address} {mask}
wg_sw_a(config)#ip address 10.5.5.11 255.255.255.0
© 1999, Cisco Systems, Inc.
www.cisco.com
ICND—6-22
www.cisco.com
© 1999, Cisco Systems, Inc.
ICND—6-12
配置交换机的各种标识
交换机名
(config)#hostname wg_sBaidu Nhomakorabea_c wg_sw_c(config)#
为交换机设置本地标识
© 1999, Cisco Systems, Inc.
www.cisco.com
www.cisco.com
ICND—6-6
© 1999, Cisco Systems, Inc.
www.cisco.com
ICND—6-7
交换机之show version 命令
wg_sw_c#show version Cisco Catalyst 1900/2820 Enterprise Edition Software Version V8.01.01 written from 171.068.229.225 Copyright (c) Cisco Systems, Inc. 1993-1998 wg_sw_c uptime is 15day(s) 21hour(s) 53minute(s) 11second(s) cisco Catalyst 1900 (486sxl) processor with 2048K/1024K bytes of memory Hardware board revision is 5 Upgrade Status: No upgrade currently in progress. Config File Status: No configuration upload/download is in progress 27 Fixed Ethernet/IEEE 802.3 interface(s) Base Ethernet Address: 00-50-BD-73-E2-C0
5. 如果没有自检失败, 自检过程完成.
6. 随着自检过程的完成, 指示灯闪亮后熄灭.
© 1999, Cisco Systems, Inc.
www.cisco.com
ICND—6-4
交换机初次启动时的显示信息
Catalyst 1900 Management Console Copyright (c) Cisco Systems, Inc. 1993-1998 All rights reserved. Enterprise Edition Software Ethernet Address: 00-50-BD-73-E2-C0 PCA Number: 73-3121-01 PCA Serial Number: FAA0252A0QX Model Number: WS-C1924-EN System Serial Number: FAA0304S0U3 Power Supply S/N: PHI025101F3 ------------------------------------------------1 user(s) now active on Management Console. User Interface Menu [M] Menus [K] Command Line [I] IP Configuration Enter Selection:
控制台连接
© 1999, Cisco Systems, Inc.
www.cisco.com
ICND—6-5
登入交换机并键入特权模式密码
控制台
> > enable Enter password: # # disable > quit
用户模式提示 特权模式提示
© 1999, Cisco Systems, Inc.
www.cisco.com
ICND—6-2
检查交换机指示灯(LEDs)
© 1999, Cisco Systems, Inc.
www.cisco.com
ICND—6-3
交换机自检期间的端口指示灯
1. 启动时,所有端口指示灯变绿.
2. 每个端口自检完毕,对应的指示灯熄灭. 3. 如果端口自检失败, 对应指示灯呈黄色. 4. 如果有任何自检失败情况,系统指示灯呈现黄色 .
www.cisco.com
ICND—6-16
Catalyst 1900系列的缺省配置
• IP地址: 0.0.0.0(3COM:169.254.100.100)
• 100baseT端口: 自动协商双工模式
• 10baseT端口: 半双工 • 生成树协议: 开启 • 控制台密码: 无
© 1999, Cisco Systems, Inc.
© 1999, Cisco Systems, Inc.
www.cisco.com
ICND—6-19
配置交换机
• 配置模式
全局配置模式 wg_sw_a# conf term wg_sw_a(config)# 端口配置模式 wg_sw_a(config)# interface e0/1 wg_sw_a(config-if)#
© 1999, Cisco Systems, Inc.
www.cisco.com
ICND—6-20
配置交换机IP地址
wg_sw_a(config)# ip address {ip address} {mask}
© 1999, Cisco Systems, Inc.
www.cisco.com
ICND—6-21
wg_sw_a#show vlan-membership
Port VLAN Membership Type Port VLAN Membership Type -----------------------------------------------------------------1 5 Static 13 1 Static 2 1 Static 14 1 Static 3 1 Static 15 1 Static
ICND—6-13
配置交换机IP地址
wg_sw_a(config)# address} {mask} ip address {ip
wg_sw_a(config)#ip address 10.5.5.11 255.255.255.0
© 1999, Cisco Systems, Inc.
www.cisco.com
1
© 1999, Cisco Systems, Inc.
www.cisco.com
ICND—6-10
查看交换机的IP地址
wg_sw_a#show ip IP Address: 10.5.5.11 Subnet Mask: 255.255.255.0 Default Gateway: 10.5.5.3 Management VLAN: 1 Domain name: Name server 1: 0.0.0.0 Name server 2: 0.0.0.0 HTTP server : Enabled HTTP port : 80 RIP : Enabled wg_sw_a#