找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 6784|回复: 2

教您五种经典方式巧妙设置路由器

[复制链接]
发表于 2007-12-7 17:50:23 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
一、基本设置方式
  一般来说,可以用5种方式来设置路由器:
  1.Console口接终端或运行终端仿真软件的微机;
  2.AUX口接MODEM,通过电话线与远方的终端或运行终端仿真软件的微机相连;
  3.通过Ethernet上的TFTP服务器;
  4.通过Ethernet上的TELNET程序;
  5.通过Ethernet上的SNMP网管工作站。
  但路由器的第一次设置必须通过第一种方式进行,此时终端的硬件设置如下:
  波特率 :9600
  数据位 :8
  停止位 :1
  奇偶校验: 无
二、命令状态
  1. router>
  路由器处于用户命令状态,这时用户可以看路由器的连接状态,访问其它网络和主机,但不能看到和更改路由器的设置内容。
  2. router#
  在router>提示符下键入enable,路由器进入特权命令状态router#,这时不但可以执行所有的用户命令,还可以看到和更改路由器的设置内容。
  3. router(config)#
  在router#提示符下键入configure terminal,出现提示符router(config)#,此时路由器处于全局设置状态,这时可以设置路由器的全局参数。
  4. router(config-if)#; router(config-line)#; router(config-router)#;…
  路由器处于局部设置状态,这时可以设置路由器某个局部的参数。
  5. >
  路由器处于RXBOOT状态,在开机后60秒内按ctrl-break可进入此状态,这时路由器不能完成正常的功能,只能进行软件升级和手工引导。
  6. 设置对话状态
  这是一台新路由器开机时自动进入的状态,在特权命令状态使用SETUP命令也可进入此状态,这时可通过对话方式对路由器进行设置。
三、设置对话过程
  1. 显示提示信息
  2. 全局参数的设置
  3. 接口参数的设置
  4. 显示结果
  利用设置对话过程可以避免手工输入命令的烦琐,但它还不能完全代替手工设置,一些特殊的设置还必须通过手工输入的方式完成。
  进入设置对话过程后,路由器首先会显示一些提示信息:
--- System Configuration Dialog ---
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 '[]'.
  这是告诉你在设置对话过程中的任何地方都可以键入“?”得到系统的帮助,按ctrl-c可以退出设置过程,缺省设置将显示在‘[]’中。然后路由器会问是否进入设置对话:   Would you like to enter the initial configuration dialog? [yes]:
  如果按y或回车,路由器就会进入设置对话过程。首先你可以看到各端口当前的状况:
  First, would you like to see the current interface summary? [yes]:
  Any interface listed with OK? value "NO" does not have a valid configuration
  Interface IP-Address OK? Method Status Protocol
  Ethernet0 unassigned NO unset up up
  Serial0 unassigned NO unset up up
  ……… ……… … …… … …
  然后,路由器就开始全局参数的设置:
  Configuring global parameters:
  1.设置路由器名:
  Enter host name [Router]:
  2.设置进入特权状态的密文(secret),此密文在设置以后不会以明文方式显示:
  The enable secret is a one-way cryptographic secret used
  instead of the enable password when it exists.
  Enter enable secret: cisco
  3.设置进入特权状态的密码(password),此密码只在没有密文时起作用,并且在设置以后会以明文方式显示:The enable password is used when there is no enable secret and when using older software and some boot images. Enter enable password: pass 4.设置虚拟终端访问时的密码: Enter virtual terminal password: cisco 5.询问是否要设置路由器支持的各种网络协议: <CENTER><ccid_nobr><table width="400" border="1" cellspacing="0" cellpadding="2"  bordercolorlight = "black" bordercolordark = "#FFFFFF" align="center"><tr>    <td bgcolor="e6e6e6" class="code" style="font-size:9pt">    <pre><ccid_code>  Configure SNMP Network Management? [yes]: Configure DECnet? [no]: Configure AppleTalk? [no]: Configure IPX? [no]: Configure IP? [yes]: Configure IGRP routing? [yes]: Configure RIP routing? [no]: ………
6.如果配置的是拨号访问服务器,系统还会设置异步口的参数:
Configure Async lines? [yes]:
1) 设置线路的最高速度: Async line speed [9600]: 2) 是否使用硬件流控: Configure for HW flow control? [yes]: 3) 是否设置modem: Configure for modems? [yes/no]: yes 4) 是否使用默认的modem命令: Configure for default chat script? [yes]: 5) 是否设置异步口的PPP参数: Configure for Dial-in IP SLIP/PPP access? [no]: yes 6) 是否使用动态IP地址: Configure for Dynamic IP addresses? [yes]: 7) 是否使用缺省IP地址: Configure Default IP addresses? [no]: yes 8) 是否使用TCP头压缩: Configure for TCP Header Compression? [yes]: 9) 是否在异步口上使用路由表更新: Configure for routing updates on async links? [no]: y 10) 是否设置异步口上的其它协议。 接下来,系统会对每个接口进行参数的设置。 1.Configuring interface Ethernet0: 1) 是否使用此接口: Is this interface in use? [yes]: 2) 是否设置此接口的IP参数: Configure IP on this interface? [yes]: 3) 设置接口的IP地址: IP address for this interface: 192.168.162.2 4) 设置接口的IP子网掩码: Number of bits in subnet field [0]: Class C network is 192.168.162.0, 0 subnet bits; mask is /24

转自迪林客之家
http://www.dlinkbbs.com/thread-6449-1-55.html
routeros
发表于 2009-2-12 11:09:14 | 显示全部楼层
顶下吧   学习啊 
routeros
回复

使用道具 举报

发表于 2009-4-13 21:09:58 | 显示全部楼层
楼主这是cisco的路由器配置,使用IOS系统,家用的几乎看不到,在这里发也没什么意义。
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-4-28 14:45 , Processed in 0.070169 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表