路由器基本配置
西安邮电学院思科网络技术学院
CCNA+
Setup Initial Protocol Configurations
Configure LAT? [yes]: no Configure AppleTalk? [no]: Configure DECnet? [no]: Configure IP? [yes]:
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
Configure IGRP routing? [yes]: no Configure RIP routing? [no]: Configure CLNS? [no]: Configure IPX? [no]: Configure Vines? [no]: Configure XNS? [no]: Configure Apollo? [no]:
Configuration register is 0x2102
西安邮电学院思科网络技术学院
CCNA+
• 演示show version
通过show version 得到的信息: IOS版本以及注释信息 Bootstrap 的信息 Boot Rom的信息 上一次启动的方式 系统镜像文件的位置 路由器型号 寄存器地址 接口信息等
Configuring a Router
王琳琳
西安邮电学院思科网络技术学院
CCNA+
路由器的配置途径:
西安邮电学院思科网络技术学院
CCNA+
• 通过console进行设置,这种方式是用户对路由器 的主要设置方式。
• 通过AUX端口连接Modem进行远程配置
• 通过Telnet方式进行配置。可以在网络中任一位置 对路由器进行配置,只要你密码及其权力。
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]:
西安邮电学院思科网络技术学院
CCNA+
Setup Script Review and Use
The following configuration command script was created:
hostname Routerinterface BRI0
enable secret 5s$h1u$t/dCoCwkn$4r7zDwDNeqkxFO.kJxC3G0
enable passwordnsoanifpraanddress
line vty 0 4 !
password sanjoseinterface Ethernet0
no snmp-server no shutdown
!
ip address 10.1.1.31 255.255.255.0
no appletalk rountoinmgop enabled
isdn switch-type[0]baGsoict-o5etshse 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.
西安邮电学院思科网络技术学院
CCNA+
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
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 '[]'.
exit
subif sube0 Router(config-line)#
router rip Router(config-if)# exit
(line配置模式)
(路由接口配置模式)
Router(config-router)# (路由协议配置模式)
西安邮电学院思科网络技术学院
Router(config-subif)# (路由子接口配置模式)
• 通过网管工作站进行配置,这就需要在您的网络中 有至少一台运行Ciscoworks及CiscoView等的网管 工作站。需要另外购买网管软件。
• 通过tftp服务器下载路由器配置文件。可以用任何 没有特殊格式的纯文本编辑器编辑路由器配置文件。 并将其存放在TFTP服务器的根目录下,采用手支方 式或Autoinstall方式下载路由器配置文件。
CCNA+
通过Console和AUX连接
西安邮电学院思科网络技术学院
CCNA+
通过Control连接
西安邮电学院思科网络技术学院
CCNA+
使用X-modem连接
• 配置Xmodem CCNAv3.1 Semester2-5-2-6
西安邮电学院思科网络技术学院
CCNA+
show version Command
西安邮电学院思科网络技术学院
CCNA+
例:利用Console口的设置
选择PC机的COM1或COM2中,选用RJ45-DB9或 RJ45-DB25的转换头与COM口连接,再将 Console线接入Console口中,采用Console100 终端方式,超级终端的配置如图:
西安邮电学院思科网络技术学院
no decnet routin!g
ip routing
interface Serial0
no clns routingshutdown
no ipx routing no ip<text omitted>
no xns routing end
no apollo routing
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
Enter your selection [2]:
西安邮电学院思科网络技术学院
CCNA+
• 演示 setup 模式配置
西安邮电学院思科网络技术学院
CCNA+
Logging In to the Router
西安邮电学院思科网络技术学院
CCNA+
Router User-Mode Command List
西安邮电学院思科网络技术学院
CCNA+
路由器配置的用户界面
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相似,提高了配置难度。
wg_ro_c> ? Exec commands:
access-enable atmsig cd clear connect dir disable disconnect enable exit help lat lock login logout -- More --
Create a temporary Access-List entry Execute Atm Signalling Commands Change current device Reset functions Open a terminal connection List files on given device Turn off privileged commands Disconnect an existing network connection Turn on privileged commands Exit from the EXEC Description of the interactive help system Open a lat connection Lock the terminal Log in as a particular user Exit from the EXEC