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.询问是否要设置路由器支持的各种网络协议: 
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 
四、常用命令 
1. 帮助 
在IOS操作中 , 无论任何状态和位置 , 都可以键入“?”得到系统的帮助 。 
2. 改变命令状态 
任务 命令 
进入特权命令状态 enable 
退出特权命令状态 disable 
进入设置对话状态 setup 
进入全局设置状态 config terminal 
退出全局设置状态 end 
进入端口设置状态 interface type slot/number 
进入子端口设置状态 interface type number.subinterface [point-to-point multipoint] 
进入线路设置状态 line type slot/number 
进入路由设置状态 router protocol 
退出局部设置状态 exit 
3. 显示命令 
任务 命令 
查看版本及引导信息 show version 
查看运行设置 show running-config 
查看开机设置 show startup-config 
显示端口信息 show interface type slot/number 
推荐阅读
- 让Win7休眠恢复时不断网让您技能天下无双
- 橘皮组织是如何引起的
- 中医美容 看古代人是如何美容养颜
- 费用报销单如何填写 如何填写报销单?
- 美图秀秀修图教程 如何用美图秀秀软件P图?
- 教你如何快速增加亲密度 空间亲密度怎么增加到100?
- 企业微信如何实名认证操作(企业微信实名注册的详细流程)
- 拼多多店铺详细的申请流程及条件 拼多多如何开店铺步骤
- 糖尿病如何治疗 中医药方有奇效
- 睡眠不好如何调理 快速入睡的小偏方

 
   
   
   
   
   
   
   
   
   
  