Cisco 路由器基本配置.ppt_第1页
Cisco 路由器基本配置.ppt_第2页
Cisco 路由器基本配置.ppt_第3页
Cisco 路由器基本配置.ppt_第4页
Cisco 路由器基本配置.ppt_第5页
免费预览已结束,剩余29页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

configuring a router,路由器的配置途径:,通过console进行设置,这种方式是用户对路由器的主要设置方式。 通过aux端口连接modem进行远程配置 通过telnet方式进行配置。可以在网络中任一位置对路由器进行配置,只要你密码及其权力。 通过网管工作站进行配置,这就需要在您的网络中有至少一台运行ciscoworks及ciscoview等的网管工作站。需要另外购买网管软件。 通过tftp服务器下载路由器配置文件。可以用任何没有特殊格式的纯文本编辑器编辑路由器配置文件。并将其存放在tftp服务器的根目录下,采用手支方式或autoinstall方式下载路由器配置文件。,例:利用console口的设置,选择pc机的com1或com2中,选用rj45-db9或rj45-db25的转换头与com口连接,再将console线接入console口中,采用console100终端方式,超级终端的配置如图:,通过console和aux连接,通过control连接,使用x-modem连接,配置xmodem ccnav3.1 semester2-5-2-6,show version command,wg_ro_a#show version cisco internetwork operating system software ios (tm) 2500 software (c2500-js-l), version 12.0(3), release software (fc1) copyright (c) 1986-1999 by cisco systems, inc. compiled mon 08-feb-99 18:18 by phanguye image text-base: 0x03050c84, data-base: 0x00001000 rom: system bootstrap, version 11.0(10c), software bootflash: 3000 bootstrap software (igs-boot-r), version 11.0(10c), release software(fc1) wg_ro_a uptime is 20 minutes system restarted by reload system image file is “flash:c2500-js-l_120-3.bin“ (output omitted) -more- configuration register is 0x2102,演示show version,通过show version 得到的信息: ios版本以及注释信息 bootstrap 的信息 boot rom的信息 上一次启动的方式 系统镜像文件的位置 路由器型号 寄存器地址 接口信息等,路由器配置的用户界面,1.用户模式和特权模式: (分别用来查看和更改路由器的配置) r o u t e r (用户模式) r o u t e r # (特权模式) 2 . 各种配置模式(用来进行各种配置操作) router(config)# (全局模式) router(config-router)# (路由协议模式) router(config-if)# (路由接口模式) router(config-subif)# (路由子接口配置模式) router(config-line)# (配置line模式) 典型的cli界面,与dos相似,提高了配置难度。,r o u t e r (用户模式),r o u t e r # (特权模式),router(config)# (全局模式),router(config-router)# (路由协议配置模式),router(config-if)# (路由接口配置模式),router(config-subif)# (路由子接口配置模式),router(config-line)# (line配置模式),disable,enable,configure terminal,exit或end或ctrl+z,exit,exit,exit,exit,subif sube0,int e0,router rip,line vty0 4,overview of router modes,bootup output from the router,unconfigured versus configured router,setup: the initial configuration dialog,router#setup - system configuration dialog - continue with configuration dialog? yes/no: yes at any point you may enter a question mark ? for help. use ctrl-c to abort configuration dialog at any prompt. default settings are in square brackets . basic management setup configures only enough connectivity for management of the system, extended setup will ask you to configure each interface on the system would you like to enter basic management setup? yes/no: no,setup initial global parameters,configuring global parameters: enter host name router:wg_ro_c the enable secret is a password used to protect access to privileged exec and configuration modes. this password, after entered, becomes encrypted in the configuration. enter enable secret: cisco the enable password is used when you do not specify an enable secret password, with some older software versions, and some boot images. enter enable password: sanfran the virtual terminal password is used to protect access to the router over a network interface. enter virtual terminal password: sanjose configure snmp network management? no:,setup initial protocol configurations,configure lat? yes: no configure appletalk? no: configure decnet? no: configure ip? yes: configure igrp routing? yes: no configure rip routing? no: configure clns? no: configure ipx? no: configure vines? no: configure xns? no: configure apollo? no:,setup script review and use,the following configuration command script was created: hostname router enable secret 5 $1$/cck$4r7zdwdneqkxfo.kjxc3g0 enable password sanfran line vty 0 4 password sanjose no snmp-server ! no appletalk routing no decnet routing ip routing no clns routing no ipx routing no vines routing no xns routing no apollo routing isdn switch-type basic-5ess,interface bri0 shutdown no ip address ! interface ethernet0 no shutdown ip address 1 no mop enabled ! interface serial0 shutdown no ip address end 0 go to the ios command prompt without saving this config. 1 return back to the setup without saving this config. 2 save this configuration to nvram and exit. enter your selection 2:,演示 setup 模式配置,logging in to the router,router user-mode command list,you can abbreviate a command to the fewest characters that make a unique character string.,wg_ro_c ? exec commands: access-enable create a temporary access-list entry atmsig execute atm signalling commands cd change current device clear reset functions connect open a terminal connection dir list files on given device disable turn off privileged commands disconnect disconnect an existing network connection enable turn on privileged commands exit exit from the exec help description of the interactive help system lat open a lat connection lock lock the terminal login log in as a particular user logout exit from the exec - more -,router privileged-mode command list,wg_ro_c# ? exec commands: access-enable create a temporary access-list entry access-profile apply user-profile to interface access-template create a temporary access-list entry bfe for manual emergency modes setting cd change current directory clear reset functions clock manage the system clock configure enter configuration mode connect open a terminal connection copy copy from one file to another debug debugging functions (see also undebug) delete delete a file dir list files on a filesystem disable turn off privileged commands disconnect disconnect an existing network connection enable turn on privileged commands erase erase a filesystem exit exit from the exec help description of the interactive help system - more -,you can complete a command string by entering the unique character string, then pressing the tab key.,router command-line help facilities,context-sensitive help,console error messages,identifies problems with router commands that are incorrectly entered so you can alter or correct them,allows recall of long or complex commands or entries for reentry, review, or correction,command history buffer,provides a list of commands and the arguments associated with a specific command,router context-sensitive help,router#,clok,translating “clok“,% unknown command or computer name, or unable to find computer address,router#,cl?,clear clock,router#,clock,% incomplete command.,router#,clock ?,set set the time and date,router#,clock set,% incomplete command.,router#,clock set ?,hh:mm:ss current time,symbolic translation command prompting last command recall,router context-sensitive help (cont.),router# clok,translating “clok“,% unknown command or computer name, or unable to find computer address,router#,clear clock,router#,% incomplete command.,router#,set set the time and date,router#,% incomplete command.,router#,hh:mm:ss current time,router#,clock set 19:56:00,% incomplete command.,router#,clock set 19:56:00 ?, day of the month,month month of the year,router#,clock set 19:56:00 04 8,% invalid input detected at the marker,router#,clock set 19:56:00 04 august,% incomplete command.,router#,clock set 19:56:00 04 august ?, year,command prompting syntax checking command prompting,演示clock配置,saving configurations,wg_ro_c# wg_ro_c#copy running-config startup-config destination filename startup-config? building configuration wg_ro_c#,copies the current configuration to nvram nvram, 非易失性内存,断电信息不会丢失,存储用户配置文件 ram, 随机存储器,断电信息全部丢失 startup-config 在每次路由器或是交换机启动时候,会主动加载,configuring router identification,sets the local identity or message for the accessed router or interface,configuring a router password,other console-line commands,router(config)#line console 0 router(config-line)#exec-timeout 0 0,prevents console session timeout,configuring an interface,router(config)#interface type number router(config-if)#,type includes serial, ethernet, token ring, fddi, hssi, loopback, dialer, null, async, atm, bri, tunnel, and so on number is used to identify individual interfaces,quits from current interface configuration mode,router(config)#interface type slot/port router(config-if)#,for modular routers, selects an interface,configuring a serial interface,enter global configuration mode,router(config-if)#clock rate 64000 router(config-if)#,router(config)#interface serial 0 router(config-if)#,router#configure terminal router(config)#,router(config-if)#b

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论