| 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 是否使用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 在设置完所有接口的参数后,系统会把整个设置对话过程的结果显示出来: The following configuration command script was created: hostname Router enable secret 5 $1$W5Oh$p6J7tIgRMBOIKVXVG53Uh1 enable password pass ………… 请注重在enable secret后面显示的是乱码,而enable password后面显示的是设置的内容。就是说,secret密码的优先级比较高,在两个密码都设了的情况下,secret密码起作用。 显示结束后,系统会问是否使用这个设置: Use this configuration? [yes/no]: yes 假如回答yes,系统就会把设置的结果存入Cisco思科路由器的NVRAM中,然后结束设置对话过程,使Cisco思科路由器开始正常的工作。 广域网协议设置 PPP PPP(Point-to-Point Protocol)是SLIP(Serial Line IP protocol)的继续者,它提供了跨过同步和异步电路实现Cisco思科路由器到Cisco思科路由器(router-to-router)和主机到网络(host-to-network)的连接。 CHAP(Challenge Handshake Authentication Protocol)和PAP(Password Authentication Protocol) (PAP)通常被用于在PPP封装的串行线路上提供安全性认证。使用CHAP和PAP认证,每个Cisco思科路由器通过名字来识别,可以防止未经授权的访问。 任务命令 设置PPP封装encapsulation ppp1 设置认证方法ppp authentication {chap | chap pap | pap chap | pap} [if-needed] [list-name | default] [callin] 指定口令username name password secret 设置DCE端线路速度clockrate speed 举例 Cisco思科路由器Router1和Router2的S0口均封装PPP协议,采用CHAP做认证,在Router1中应建立一个用户,以对端Cisco思科路由器主机名作为用户名,即用户名应为router2。同时在Router2中应建立一个用户,以对端Cisco思科路由器主机名作为用户名,即用户名应为router1。所建的这两用户的password必须相同。 设置如下: Router1: hostname router1 username router2 password xxx interface Serial0 ip address 192.200.10.1 255.255.255.0 clockrate 1000000 ppp authentication chap
|
| 共16页: 上一页 [1] [2] 3 [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] 下一页 |
评论加载中…