欢迎您访问科普小知识本站旨在为大家提供日常生活中常见的科普小知识,以及科普文章!
您现在的位置是:首页  > 科技知识

CISCO路由器初始配置手册

科普小知识2021-10-11 15:24:02
...

CISCO路由器初始配置手册

很多初学路由器知识的网友对路由器的初始配置可能感到很陌生,本人在初学时也很困惑,因为一下出来很多提问不知如何是好,下面将最近刚调试的一台CISCO3640的初始配置整理出来与各位网友交流,如有疏漏之处,还请大家指正。

1.用CISCO随机带CONSOLE线,一端连在CISCO路由器的CONSOLE口,一端连在计算机的COM口。

2.打开电脑,启动超级终端.为您的连接取个名字,比如CISCO_SETUP,下一步选定连接时用COM1,下一步选定第秒位数9600,数据位8,奇偶校验无,停止位1,数据流控制无.最后选确定。

3.打开路由器电源,这时超级终端将出现以下画面:

System Bootstrap, Version 11.1(20)AA2, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1)Copyright (c) 1999 by cisco Systems, Inc.C3600 processor with 32768 Kbytes of main memory Main memory is configured to 64 bit mode with parity disabledprogram load complete, entry point: 0x80008000, size: 0x4ed478 Self decompressing the image :

#####################################################################

#########################

####################

###################################################

####################[OK]Restricted Rights LegendUse, duplication, or disclosure by the Government issubject to restrictions as set forth in subparagraph(c) of the Commercial Computer Software - RestrictedRights clause at FAR sec. 52.227-19 and subparagraph(c) (1) (ii) of the Rights in Technical Data and ComputerSoftware clause at DFARS sec. 252.227-7013.

cisco Systems, Inc.170 West Tasman DriveSan Jose, California 95134-1706

Cisco Internetwork Operating System Software IOS (tm) 3600 Software (C3640-I-M), Version 12.1(2)T, RELEASE SOFTWARE (fc1)Copyright (c) 1986-2000 by cisco Systems, Inc.Compiled Tue 16-May-00 12:26 by ccaiImage text-base: 0x600088F0, data-base: 0x60924000

cisco 3640 (R4700) processor (revision 0x00) with 24576K/8192K bytes of memory.Processor board ID 25125768R4700 CPU at 100Mhz, Implementation 33, Rev 1.0Bridging software.X.25 software, Version 3.0.0.2 FastEthernet/IEEE 802.3 interface(s)1 Serial network interface(s)DRAM configuration is 64 bits wide with parity disabled.125K bytes of non-volatile configuration memory.8192K bytes of processor board System flash (Read/Write)

--- System Configuration Dialog ---

Would you like to enter the initial configuration dialog? [yes/no]: y您是否进入初始化配置对话,选YAt 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 connectivityfor management of the system, extended setup will ask youto configure each interface on the system

Would you like to enter basic management setup? [yes/no]: n您是否进入基本配置安装,选NFirst, would you like to see the current interface summary? [yes]: y首先,您是否看一下当前端口状态Any interface listed with OK? value "NO" does not have a valid configuration

Interface IP-Address OK? Method Status ProtocolFastEthernet0/0unassigned NO unset up downSerial0/0 unassigned NO unset down downFastEthernet0/1unassigned NO unset up down

Configuring global parameters:

Enter host name [Router]:RouterA输入路由器的名字The enable secret is a password used to protect access toprivileged EXEC and configuration modes. This password, afterentered, becomes encrypted in the configuration.Enter enable secret: aaa输入密文The enable password is used when you do not specify anenable secret password, with some older software versions, andsome boot images.Enter enable password: bbb输入密码(不能和密文相同) The virtual terminal password is used to protectaccess to the router over a network interface.Enter virtual terminal password: ccc输入虚拟终端的密码(以备远程登录)Configure SNMP Network Management? [yes]: n配置简单网管吗?选NConfigure IP? [yes]: y 配置IP吗?选Y Configure IGRP routing? [yes]: n配置IGRP路由选择协议吗?选NConfigure RIP routing? [no]: 配置IGRP路由选择协议吗?选NConfigure bridging? [no]: 配置桥接吗?选NAsync lines accept incoming modems calls. If you will haveusers dialing in via modems, configure these lines.

Configure Async lines? [yes]: n配置异步线路吗?选NConfiguring interface parameters:

Do you want to configure FastEthernet0/0 interface? [yes]: y您是否想配置fastethernet0/0接口?选YUse the 100 Base-TX (RJ-45) connector? [yes]: y用RJ45的连接器吗?选YOperate in full-duplex mode? [no]: y选用全双工模式?选YConfigure IP on this interface? [yes]: y在这个接口上配置IP吗?选YIP address for this interface: 192.168.0.1配置该接口的IP地址(在此地址为192.168.0.1Subnet mask for this interface [255.255.255.0] :配置该接口的子网掩码.(默认的是255.255.255.0,可以手工输入修改)Class C network is 192.168.0.0, 24 subnet bits; mask is /24

Do you want to configure Serial0/0 interface? [yes]: y您想配置serial0/0接口吗?选YSome supported encapsulations are ppp/hdlc/frame-relay/lapb/x25/atm-dxi/smdsChoose encapsulation type [hdlc]: 选择封装方式(默认的封装方式是HDLC,您可根据与您的路由器相连选用的封装类型来决

定用什么样的封装类型No serial cable seen. Choose mode from (dce/dte) [dte]:(因为没有连串口线所以会让您选择设备类型)Configure IP on this interface? [yes]: y (在接口上配置IP)Configure IP unnumbered on this interface? [no]: IP address for this interface: 172.16.0.5 配置该接口的IP地址(在此地址为172.16.0.5)Subnet mask for this interface [255.255.0.0] : 255.255.255.252 配置该接口的子网掩码.(默认的是255.255.0.0,可以手工输入修改为255.255.255.252) Class B network is 172.16.0.0, 30 subnet bits; mask is /30

(以下配置同上)Do you want to configure FastEthernet0/1 interface? [yes]:Use the 100 Base-TX (RJ-45) connector? [yes]:Operate in full-duplex mode? [no]: y Configure IP on this interface? [yes]: y IP address for this interface: 172.16.0.9Subnet mask for this interface [255.255.0.0] : 255.255.255.252 Class B network is 172.16.0.0, 30 subnet bits; mask is /30

The following configuration command script was created:(把您的配置显示出来)hostname aaaenable secret 5 $1$ul/V$ezbZFgvzGHD.YPSieC0Ew/enable password RouterAline vty 0 4password cccno snmp-server!ip routingno bridge 1!interface FastEthernet0/0media-type 100BaseXfull-duplexip address 192.168.0.1 255.255.255.0!interface Serial0/0encapsulation hdlcip address 172.16.0.5 255.255.255.252!interface FastEthernet0/1media-type 100BaseXfull-duplexip address 172.16.0.9 255.255.255.252dialer-list 1 protocol ip permitdialer-list 1 protocol ipx permit!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]: 2选择2保存设置并存入NVRAM中Building configuration...[OK] Use the enabled mode 'configure' command to modify this configuration.

Press RETURN to get started!路由器重新启动

00:00:08: %LINK-3-UPDOWN: Interface Serial0/0, changed state to down00:00:08: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up00:00:08: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up00:00:09: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to down00:00:09: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down00:00:09: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down00:03:18: %IP-5-WEBINST_KILL: Terminating DNS process00:03:24: %SYS-5-RESTART: System restarted --Cisco Internetwork Operating System Software IOS (tm) 3600 Software (C3640-I-M), Version 12.1(2)T, RELEASE SOFTWARE (fc1)Copyright (c) 1986-2000 by cisco Systems, Inc.Compiled Tue 16-May-00 12:26 by ccaiRouterA>进入用户模式RouterA>enPassword: RouterA#进入全局模式RouterA#sh run查看现在运行的配置Building configuration...

Current configuration:!version 12.1service timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname RouterA!enable secret 5 $1$ul/V$ezbZFgvzGHD.YPSieC0Ew/enable password bbb!memory-size iomem 25ip subnet-zero!interface FastEthernet0/0ip address 192.168.0.1 255.255.255.0speed autofull-duplex!interface Serial0/0ip address 172.16.0.5 255.255.255.252clockrate 2000000!interface FastEthernet0/1ip address 172.16.0.9 255.255.255.252speed autofull-duplex!ip classlessno ip http server!dialer-list 1 protocol ip permitdialer-list 1 protocol ipx permit!line con 0transport input noneline aux 0line vty 0 4password ccclogin!end

现在您就完成了了一个新路由器的基本配置,接下来就可以进行进一步的详细配置了.