- 5
- 0
- 约3.19千字
- 约 41页
- 2016-07-28 发布于江西
- 举报
13 交换机和路由器基本配置.ppt
13 交换机和路由器基本配置
; 交换机的外观;交换机的连接;低端路由器外观;高端路由器外观;核心路由器外观;Interface;内存 :ROM;内存 :RAM;路由器的启动过程;Console;带外交换机配置;交换机配置命令模式;EXEC模式:用户模式switch
交换机信息的查看,简单测试命令
特权模式switch#
查看、管理交换机配置信息,测试、调试;1.在用户模式下进入特权模式SwitchenableSwitch#2.返回用户模式Switch#disable
Switch
或
Switch#exitPress RETURN to get started!Switch;配置模式:全局配置模式switch(config)#
配置交换机的整体参数
接口配置模式switch(config-if)#
配置交换机的接口参数;1.进入全局配置模式下Switch#configure terminalSwitch(config)#exitSwitch#
2.进入接口配置模式Switch(config)#interface fastethernet 0/1Switch(config-if)#exitSwitch(config)#;从子模式下直接返回特权模式Switch(config-if)#endSwitch#;命令行其他功能;显示交换机硬件及软件的信息Switch#show version
显示当前运行的配置参数Switch#show running-config
显示保存的配置参数 Switch#show configure
显示接口配置参数Switch#show interfaces
;将当前运行的配置参数复制到flash
Switch#write memoryBuilding configuration...[OK]Switch#
清空flash中的配置参数Switch#delete flash:config.textSwitch#
交换机重新启动Switch#reloadSystem configuration has been modified. Save?[yes/no]:nProceed with reload? [confirm];Switch(config)#hostname S2126G
;TELNET管理交换机;TELNET管理交换机;TELNET管理交换机;配置接口速率S2126G(config-if)#speed [10|100|auto];测试目的端的可达性
S2126G#ping {IP address}
从TFTP服务器下载配置参数
S2126G#copy tftp startup-config
;查看MAC地址表S2126G#show mac-address-table
配置MAC地址表记录的生存时间(缺省为300秒)S2126G(config)#mac-address-table aging-time 300-1000000
查看MAC地址表记录的生存时间S2126G#show mac-address-table aging-time;;1.线路配置模式
Router(config-line)#
配置路由器的线路参数2.路由协议配置模式
Router(config-router)#
配置路由器的接口参数;1.进入全局配置模式下Red-Giant#configure terminal
2.进入线路配置模式Red-Giant(config)#line vty 0 4Red-Giant(config-line)#exitRed-Giant(config)#
3.进入接口配置模式Red-Giant(config)#interface serial 0Red-Giant(config-if)#exitRed-Giant(config)#
4.进入路由协议配置模式
Red-Giant(config)#router rip
Red-Giant(config-router)#;显示当前运行的配置参数Red-Giant#show running-config
显示NVRAM中配置参数的副本Red-Giant#show startu
原创力文档

文档评论(0)