路由器的基本配置
合集下载
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
ction of Router )
• Router是第三层的网络设备(Router is layer 3 device):
• • • • • 1. 路由选择和交换(Routing and Switching) 2. 网络分段(Network Segment) 3. 流量控制(Flow Control) 4. 隔离广播(Isolate Broadcast) 5. 广域网连接(WAN Connection)
非易失性RAM (NVRAM )
• 1.非易失性RAM存储配置文件的备份 • Non-volatile RAM stores the router's backup/startup configuration file; • 2. 掉电或重启动NVRAM内容不丢失 • NVRAM content is retained during power down or restart
全局配置模式( Global Configuration Mode )
• 这种模式提供了强大的单行命令,可以完成简 单的配置任务。 • This mode implements powerful one-line commands that perform simple configuration tasks. •
ROMMON 模式( ROMMON Mode)
• 这种模式可以用来恢复密码和升级IOS. • This mode use to recover from lost passwords and update IOS software。
Router工作模式转换 (Change Router Configuration Mode)
Flash
ROM
• 1.ROM包含开机自检程序、启动程序和操作系统软 件 • ROMcontains power-on diagnostics, a bootstrap program, and operating system software; • 2.升级ROM中的软件需要更换路由器主板上的芯片 • Software upgrades in ROM require removing and replacing chips on the router's motherboard
2600系列路由器内部构成 (Internal Components of 2600 Router )
2600系列路由器外观 (External Connectors on 2600 Router )
计算机连接到控制台接口 (Computer Connect to Console Port)
路由器基本配置 Basic Configuration of Router
365农民网、农民、农业信息交流平台
教学目标( Objectives ) • • • • • • 1. 路由器功能( Function of Router ) 2.路由器组成(Router Components ) 3.超级终端会话属性 (HyperTerminal Session Properties) 4. Router配置模式 (Router Configuration Mode ) 5.路由器基本配置 • (Basic Configuration of Router)
工作模式切换命令注释 ( Notes of Changing Router Mode Command )
• 进入特权命令状态 enable 退出特权命令状态 disable 进入设置对话状态 setup 进入全局设置状态 config terminal 退出全局设置状态 end 进入端口设置状态 interface type slot/number 进入线路设置状态 line type slot/number 进入路由设置状态 router protocol 退出局部设置状态 exit
• • • • • • • • • • • Router> Router>enable Router# Router# configure terminal Router(config)# Router(config)# interface fa0/0 Router(config-if)#exit Router(config)#router rip Router(config-router)#end Router# disable Router>
Router配置模式(Router Configuration Mode )
• • • • • • • • • • • • • 1.用户模式 (user mode) > 2.特权模式 (privileged mode) # 3.全局模式 (global config mode) router(config)# 4.子模式(sub-mode) 接口模式(interface mode): router(config-if)# 线路模式(line mode): router(config-line)# 路由模式(router mode): router(config-router)# 5.Setup模式 6.RXBOOT 模式 7.ROMMON模式
用户模式 (User Mode )
• 这是一种“只能查看”的模式,用户只能 查看一些有关路由器的信息,不能更改。 • This is a look-only mode in which the user can view some information about the router, but can not make changes. •
特权模式(Privileged Mode)
• 这种模式支持调试和测试命令,支持对交 换机的详细检查、对配置文件的操作,并 且可以由此进入配置模式。 • This mode supports the debugging and testing commands, detailed examination of the switch, manipulation of configuration files, and access to configuration modes. •
• 1.Flash是可擦除,可重新编程的ROM,它存储操作系 统映像文件和微代码 • Erasable, reprogrammable ROM that holds the operating system image and microcode; • 2. Flash可以软件升级,不需要更换芯片 • Flash memory enables software updates without removing and replacing processor chips; • 3.掉电或重启动Flash内容不丢失 • Flash content is retained during power down or restart; • 4. Flash 可以存储多个版本的IOS软件 • Flash memory can store multiple versions of IOS software
命名路由器(Name the Router)
Router(config)#hostname
Lab-A
配置enable密码(Configuring Enable Passwords )
Lab-A(config)#enable password cisco
Results in: show run enable password cisco (明文,未加密)
路由选择和交换(Routing and Switching)
网络分段(Network Segment)
广域网连接(WAN Connection)
路由器内部组成(Router Internal Components )
• router1(config)#line console 0 • router1(config-line)#password cisco • router1(config-line)#login
配置VTY密码(Configuring VTY Passwords )
• • • • • • •
router1(config)#line vty 0 4 0 4:允许5个终端同时远程登录 0 4:(permit 5 terminals login at the same time) router1(config-line)#password cisco router1(config-line)#login router1(config-line)#priv level 15 设置登录优先级(set priority)
RAM/DRAM
• 1.主要存储路由表、ARP缓存、快速交换表和包队列 等 • Stores routing tables, ARP cache, fastswitching cache, and packet hold queues; • 2.存储正在运行的配置文件 • RAM also provides temporary and/or running memory for a router's configuration file while the router is powered; • 3.掉电或重启动内容丢失 • RAM content is lost during a power down or restart
Setup模式( Setup Mode)
• 这种模式在控制台提供了交互式的对话, 帮助新的用户创建初次的基本的配置。 • This mode presents an interactive prompted dialog at the console that helps the new user create a first-time basic configuration.
在计算机上配置超级终端软件 (Configure HyperTerminal software on the PC)
超级终端会话属性 (HyperTerminal Session Properties)
配置路由器的方式 (External Configuration Source)
• 路由器初始配置必须通过控制台接口进行。 • When the router is first put into service, we must configure it by console port.
配置串行口(Configuring a Serial Interface )
• • • • • • • • •
配置enable密码(Configuring Enable Passwords )
Lab-A(config)#enable secret cisco
Results in: Show run enable secret 5 $1$emBK$WxqLahy7YO(密码被加密)
配置控制台密码(Configuring Console Passwords )
•
RXBOOT 模式( RXBOOT Mode)
• 1. 这是你可以使用的维护模式,可以用来 恢复丢失的密码。 • This is the maintenance mode that you can use, among other things, to recover from lost passwords. • 2. 2600系列路由器没有此模式 • 2600 routers have not this mode。
• Router是第三层的网络设备(Router is layer 3 device):
• • • • • 1. 路由选择和交换(Routing and Switching) 2. 网络分段(Network Segment) 3. 流量控制(Flow Control) 4. 隔离广播(Isolate Broadcast) 5. 广域网连接(WAN Connection)
非易失性RAM (NVRAM )
• 1.非易失性RAM存储配置文件的备份 • Non-volatile RAM stores the router's backup/startup configuration file; • 2. 掉电或重启动NVRAM内容不丢失 • NVRAM content is retained during power down or restart
全局配置模式( Global Configuration Mode )
• 这种模式提供了强大的单行命令,可以完成简 单的配置任务。 • This mode implements powerful one-line commands that perform simple configuration tasks. •
ROMMON 模式( ROMMON Mode)
• 这种模式可以用来恢复密码和升级IOS. • This mode use to recover from lost passwords and update IOS software。
Router工作模式转换 (Change Router Configuration Mode)
Flash
ROM
• 1.ROM包含开机自检程序、启动程序和操作系统软 件 • ROMcontains power-on diagnostics, a bootstrap program, and operating system software; • 2.升级ROM中的软件需要更换路由器主板上的芯片 • Software upgrades in ROM require removing and replacing chips on the router's motherboard
2600系列路由器内部构成 (Internal Components of 2600 Router )
2600系列路由器外观 (External Connectors on 2600 Router )
计算机连接到控制台接口 (Computer Connect to Console Port)
路由器基本配置 Basic Configuration of Router
365农民网、农民、农业信息交流平台
教学目标( Objectives ) • • • • • • 1. 路由器功能( Function of Router ) 2.路由器组成(Router Components ) 3.超级终端会话属性 (HyperTerminal Session Properties) 4. Router配置模式 (Router Configuration Mode ) 5.路由器基本配置 • (Basic Configuration of Router)
工作模式切换命令注释 ( Notes of Changing Router Mode Command )
• 进入特权命令状态 enable 退出特权命令状态 disable 进入设置对话状态 setup 进入全局设置状态 config terminal 退出全局设置状态 end 进入端口设置状态 interface type slot/number 进入线路设置状态 line type slot/number 进入路由设置状态 router protocol 退出局部设置状态 exit
• • • • • • • • • • • Router> Router>enable Router# Router# configure terminal Router(config)# Router(config)# interface fa0/0 Router(config-if)#exit Router(config)#router rip Router(config-router)#end Router# disable Router>
Router配置模式(Router Configuration Mode )
• • • • • • • • • • • • • 1.用户模式 (user mode) > 2.特权模式 (privileged mode) # 3.全局模式 (global config mode) router(config)# 4.子模式(sub-mode) 接口模式(interface mode): router(config-if)# 线路模式(line mode): router(config-line)# 路由模式(router mode): router(config-router)# 5.Setup模式 6.RXBOOT 模式 7.ROMMON模式
用户模式 (User Mode )
• 这是一种“只能查看”的模式,用户只能 查看一些有关路由器的信息,不能更改。 • This is a look-only mode in which the user can view some information about the router, but can not make changes. •
特权模式(Privileged Mode)
• 这种模式支持调试和测试命令,支持对交 换机的详细检查、对配置文件的操作,并 且可以由此进入配置模式。 • This mode supports the debugging and testing commands, detailed examination of the switch, manipulation of configuration files, and access to configuration modes. •
• 1.Flash是可擦除,可重新编程的ROM,它存储操作系 统映像文件和微代码 • Erasable, reprogrammable ROM that holds the operating system image and microcode; • 2. Flash可以软件升级,不需要更换芯片 • Flash memory enables software updates without removing and replacing processor chips; • 3.掉电或重启动Flash内容不丢失 • Flash content is retained during power down or restart; • 4. Flash 可以存储多个版本的IOS软件 • Flash memory can store multiple versions of IOS software
命名路由器(Name the Router)
Router(config)#hostname
Lab-A
配置enable密码(Configuring Enable Passwords )
Lab-A(config)#enable password cisco
Results in: show run enable password cisco (明文,未加密)
路由选择和交换(Routing and Switching)
网络分段(Network Segment)
广域网连接(WAN Connection)
路由器内部组成(Router Internal Components )
• router1(config)#line console 0 • router1(config-line)#password cisco • router1(config-line)#login
配置VTY密码(Configuring VTY Passwords )
• • • • • • •
router1(config)#line vty 0 4 0 4:允许5个终端同时远程登录 0 4:(permit 5 terminals login at the same time) router1(config-line)#password cisco router1(config-line)#login router1(config-line)#priv level 15 设置登录优先级(set priority)
RAM/DRAM
• 1.主要存储路由表、ARP缓存、快速交换表和包队列 等 • Stores routing tables, ARP cache, fastswitching cache, and packet hold queues; • 2.存储正在运行的配置文件 • RAM also provides temporary and/or running memory for a router's configuration file while the router is powered; • 3.掉电或重启动内容丢失 • RAM content is lost during a power down or restart
Setup模式( Setup Mode)
• 这种模式在控制台提供了交互式的对话, 帮助新的用户创建初次的基本的配置。 • This mode presents an interactive prompted dialog at the console that helps the new user create a first-time basic configuration.
在计算机上配置超级终端软件 (Configure HyperTerminal software on the PC)
超级终端会话属性 (HyperTerminal Session Properties)
配置路由器的方式 (External Configuration Source)
• 路由器初始配置必须通过控制台接口进行。 • When the router is first put into service, we must configure it by console port.
配置串行口(Configuring a Serial Interface )
• • • • • • • • •
配置enable密码(Configuring Enable Passwords )
Lab-A(config)#enable secret cisco
Results in: Show run enable secret 5 $1$emBK$WxqLahy7YO(密码被加密)
配置控制台密码(Configuring Console Passwords )
•
RXBOOT 模式( RXBOOT Mode)
• 1. 这是你可以使用的维护模式,可以用来 恢复丢失的密码。 • This is the maintenance mode that you can use, among other things, to recover from lost passwords. • 2. 2600系列路由器没有此模式 • 2600 routers have not this mode。