当前位置:文档之家› 思科交换机路由器的配置

思科交换机路由器的配置

wh_edu(config_vlan)#ip add ipadd netmask
wh_edu(config_vlan)#no shutdown
wh_edu(config)# ip default-gateway ip-addres s
配置文件
• show running-config • copy running-config startup-config
show startup-config • erase startup-config
设置特权口令
wh_edu# config t
wh_edu(config)#enable password password wh_edu(config)# enable password [level level] {password | encryption-type encrypted-passw ord} wh_edu(config)# enable secret [level level] {pa ssword | encryption-type encrypted-password}
配置交换机其它标识
wh_edu(config)#prompt string wh_edu(config)# banner motd c message c wh_edu(config)# banner login c message c
连接交换机/路由器的配置端口
• 用设备自带的配置线(Rollover)线来连接计算机的串口和设备 的的Console口。
• 运行计算机自带的超级终端程序软件,参数设成9600,8N1,h ardware flow control 。
交换机的初始启动
• 系统启动例程会初始化交换机 • 初始启动利用缺省配置参数
交换机路由器的命令模式
User EXEC
Switch>
Privileged EXEC
Switch#
Global configuration Switch(config)#
Interface configuration Switch(config-if)#
登入交换机并键入特权模式密码
控制台
> > enable Enter password: # # disable > exit
wh_edu(config)# show clock
配置域名
• configure terminal • ip domain-name name • ip name-server server-address1 [serv
er-address2 ... server-address6] • ip domain-lookup
交换机路由器的配置
© 1999, Cisco Systems, Inc.
6-1
交换机/路由器的基本组成
• 中央处理器(CPU,Motoro la Orion)
• 通讯芯片组 • 内存 • 接口 • 控制台端口(Console) • 辅助接口(AUX) • 配置文件
交换机/路由器内存的组成
只读内存(ROM) 闪存(FLASH) 随机存取内存(RAM) 非易失性RAM(NVRAM)
wh_edu(config)# service password-encryption
设置Telnet口令
• configure terminal • line vty 0 15 • password password
设置Console口令
• configure terminal • line console 0 • password password
用户模式提示 特权模式提示
显示交换机的状态
Switch#show version Switch#show running-config Switch#show interfaces
显示交换机的各种运行状态
配置交换机
配置模式:
• 全局配置模式 – Switch# configure terminal – Switch(config)#
交换机/路由器的物理接口
以太网/快速以太网/千兆以太网/万兆以太网 令牌环网(Token Ring) 光纤分布数据接口(FDDI) 同步串口 异步串口 高速接口(HSSI) ISDN BRI(Basic Rate Interface)
交换机/路由器的逻辑接口
Loopback 通道接口 拨号器 空接口(Null)
• 端口配置模式 – Switch(config)# interface fa 0/1 – Switch(config-if)#
帮助机制
•? • abbreviated-command-entry? • abbreviated-command-entry<Tab
> • command ? • command <ctrl>+P <ctrl>+N • 上下箭头键 • Switch#terminal history
配置交换机的主机名
交换机名
(config)#hostname wh_edu
为交换机设置主机名
配置交换机IP地址
wh_edu# config t wh_edu(config)#int vlan 1
创建用户
• configure terminal • username name [privilege level] {pass
word encryption-type password} • line [console 0| vty 0 15] • login local
设置系统时间
wh_edu# clock set hh:mm:ss day month yea r
1. 接入电源 2. 观察启动顺序
– 面板上的指示灯LEDs – Cisco IOS输出到控制台上的内容
检查交换机指示灯(LEDs)
交换机自检期间的端口指示灯
1. 启动时,所有端口指示灯变绿. 2. 每个端口自检完毕,对应的指示灯熄灭. 3. 如果端口自检失败, 对应指示灯呈黄色. 4. 如果有任何自检失败情况,系统指示灯呈现黄色. 5. 如果没有自检失败, 自检过程完成. 6. 随着自检过程的完成, 指示灯闪亮后熄灭.
相关主题