当前位置:中国易下载软件教材中心文章中心网络技术路由交换 → CISCO 技术大集合

CISCO 技术大集合

减小字体 增大字体 作者:佚名  来源:不详  发布时间:2007-12-14 2:08:29
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
喜欢这些内容嘛,请告诉你身边的朋友,易下载中心-QQ资源-itnetcn.com一起享受这份乐趣,本站内容来源互联网
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

命令状态 Ant海岸线网络安全资讯站
  1. router> Ant海岸线网络安全资讯站
  路由器处于用户命令状态,这时用户可以看路由器的连接状态,访问其它网络和主机,但不能看到和更改路由器的设置内容。 Ant海岸线网络安全资讯站
  2. router# Ant海岸线网络安全资讯站
  在router>提示符下键入enable,路由器进入特权命令状态router#,这时不但可以执行所有的用户命令,还可以看到和更改路由器的设置内容。 Ant海岸线网络安全资讯站
  3. router(config)# Ant海岸线网络安全资讯站
  在router#提示符下键入configure terminal,出现提示符router(config)#,此时路由器处于全局设置状态,这时可以设置路由器的全局参数。 Ant海岸线网络安全资讯站
  4. router(config-if)#; router(config-line)#; router(config-router)#;… Ant海岸线网络安全资讯站
  路由器处于局部设置状态,这时可以设置路由器某个局部的参数。 Ant海岸线网络安全资讯站
  5. > Ant海岸线网络安全资讯站
  路由器处于RXBOOT状态,在开机后60秒内按ctrl-break可进入此状态,这时路由器不能完成正常的功能,只能进行软件升级和手工引导。 Ant海岸线网络安全资讯站
  6. 设置对话状态 Ant海岸线网络安全资讯站
  这是一台新路由器开机时自动进入的状态,在特权命令状态使用SETUP命令也可进入此状态,这时可通过对话方式对路由器进行设置。 Ant海岸线网络安全资讯站
  设置对话过程 Ant海岸线网络安全资讯站
  1. 显示提示信息 Ant海岸线网络安全资讯站
  2. 全局参数的设置 Ant海岸线网络安全资讯站
  3. 接口参数的设置 Ant海岸线网络安全资讯站
  4. 显示结果 Ant海岸线网络安全资讯站
  利用设置对话过程可以避免手工输入命令的烦琐,但它还不能完全代替手工设置,一些特殊的设置还必须通过手工输入的方式完成。 Ant海岸线网络安全资讯站
  进入设置对话过程后,路由器首先会显示一些提示信息: Ant海岸线网络安全资讯站
  --- System Configuration Dialog --- Ant海岸线网络安全资讯站
  At any point you may enter a question mark '?' for help. Ant海岸线网络安全资讯站
  Use ctrl-c to abort configuration dialog at any prompt. Ant海岸线网络安全资讯站
  Default settings are in square brackets '[]'. Ant海岸线网络安全资讯站
  这是告诉你在设置对话过程中的任何地方都可以键入“?”得到系统的帮助,按ctrl-c可以退出设置过程,缺省设置将显示在‘[]’中。然后路由器会问是否进入设置对话: Ant海岸线网络安全资讯站
  Would you like to enter the initial configuration dialog? [yes]: Ant海岸线网络安全资讯站
  如果按y或回车,路由器就会进入设置对话过程。首先你可以看到各端口当前的状况: Ant海岸线网络安全资讯站
  First, would you like to see the current interface summary? [yes]: Ant海岸线网络安全资讯站
  Any interface listed with OK? value "NO" does not have a valid configuration Ant海岸线网络安全资讯站
  Interface IP-Address OK? Method Status Protocol Ant海岸线网络安全资讯站
  Ethernet0 unassigned NO unset up up Ant海岸线网络安全资讯站
  Serial0 unassigned NO unset up up Ant海岸线网络安全资讯站
  ……… ……… … …… … … Ant海岸线网络安全资讯站
  然后,路由器就开始全局参数的设置: Ant海岸线网络安全资讯站
  Configuring global parameters: Ant海岸线网络安全资讯站
  1.设置路由器名: Ant海岸线网络安全资讯站
  Enter host name [Router]: Ant海岸线网络安全资讯站
  2.设置进入特权状态的密文(secret),此密文在设置以后不会以明文方式显示: Ant海岸线网络安全资讯站
  The enable secret is a one-way cryptographic secret used Ant海岸线网络安全资讯站
  instead of the enable password when it exists. Ant海岸线网络安全资讯站
  Enter enable secret: cisco Ant海岸线网络安全资讯站
  3.设置进入特权状态的密码(password),此密码只在没有密文时起作用,并且在设置以后会以明文方式显示: Ant海岸线网络安全资讯站
  The enable password is used when there is no enable secret Ant海岸线网络安全资讯站
  and when using older software and some boot images. Ant海岸线网络安全资讯站
  Enter enable password: pass Ant海岸线网络安全资讯站
  4.设置虚拟终端访问时的密码Ant海岸线网络安全资讯站
  Enter virtual terminal password: cisco Ant海岸线网络安全资讯站
  5.询问是否要设置路由器支持的各种网络协议: Ant海岸线网络安全资讯站
  Configure SNMP Network Management? [yes]: Ant海岸线网络安全资讯站
  Configure DECnet? [no]: Ant海岸线网络安全资讯站
  Configure AppleTalk? [no]: Ant海岸线网络安全资讯站
  Configure IPX? [no]: Ant海岸线网络安全资讯站
  Configure IP? [yes]: Ant海岸线网络安全资讯站
  Configure IGRP routing? [yes]: Ant海岸线网络安全资讯站
  Configure RIP routing? [no]: Ant海岸线网络安全资讯站
  ……… Ant海岸线网络安全资讯站
  6.如果配置的是拨号访问服务器,系统还会设置异步口的参数: Ant海岸线网络安全资讯站
  Configure Async lines? [yes]: Ant海岸线网络安全资讯站
  1) 设置线路的最高速度: Ant海岸线网络安全资讯站
  Async line speed [9600]: Ant海岸线网络安全资讯站
  2) 是否使用硬件流控: Ant海岸线网络安全资讯站
  Configure for HW flow control? [yes]: Ant海岸线网络安全资讯站
  3) 是否设置modem: Ant海岸线网络安全资讯站
  Configure for modems? [yes/no]: yes Ant海岸线网络安全资讯站
  4) 是否使用默认的modem命令: Ant海岸线网络安全资讯站
  Configure for default chat script? [yes]: Ant海岸线网络安全资讯站
  5) 是否设置异步口的PPP参数: Ant海岸线网络安全资讯站
  Configure for Dial-in IP SLIP/PPP access? [no]: yes Ant海岸线网络安全资讯站
  6) 是否使用动态IP地址: Ant海岸线网络安全资讯站
  Configure for Dynamic IP addresses? [yes]: Ant海岸线网络安全资讯站
  7) 是否使用缺省IP地址: Ant海岸线网络安全资讯站
  Configure Default IP addresses? [no]: yes Ant海岸线网络安全资讯站
  8) 是否使用TCP头压缩: Ant海岸线网络安全资讯站
  Configure for TCP Header Compression? [yes]: Ant海岸线网络安全资讯站
  9) 是否在异步口上使用路由表更新: Ant海岸线网络安全资讯站
  Configure for routing updates on async links? [no]: y Ant海岸线网络安全资讯站
  10) 是否设置异步口上的其它协议。 Ant海岸线网络安全资讯站
  接下来,系统会对每个接口进行参数的设置。 Ant海岸线网络安全资讯站
  1.Configuring interface Ethernet0: Ant海岸线网络安全资讯站
  1) 是否使用此接口: Ant海岸线网络安全资讯站
  Is this interface in use? [yes]: Ant海岸线网络安全资讯站
  2) 是否设置此接口的IP参数: Ant海岸线网络安全资讯站
  Configure IP on this interface? [yes]: Ant海岸线网络安全资讯站
  3) 设置接口的IP地址: Ant海岸线网络安全资讯站
  IP address for this interface: 192.168.162.2 Ant海岸线网络安全资讯站
  4) 设置接口的IP子网掩码: Ant海岸线网络安全资讯站
  Number of bits in subnet field [0]: Ant海岸线网络安全资讯站
  Class C network is 192.168.162.0, 0 subnet bits; mask is /24 Ant海岸线网络安全资讯站
  在设置完所有接口的参数后,系统会把整个设置对话过程的结果显示出来: Ant海岸线网络安全资讯站
  The following configuration command script was created: Ant海岸线网络安全资讯站
  hostname Router Ant海岸线网络安全资讯站
  enable secret 5 $1$W5Oh$p6J7tIgRMBOIKVXVG53Uh1 Ant海岸线网络安全资讯站
  enable password pass Ant海岸线网络安全资讯站
  ………… Ant海岸线网络安全资讯站
  请注意在enable secret后面显示的是乱码,而enable password后面显示的是设置的内容。 Ant海岸线网络安全资讯站
  显示结束后,系统会问是否使用这个设置: Ant海岸线网络安全资讯站
  Use this configuration? [yes/no]: yes Ant海岸线网络安全资讯站
  如果回答yes,系统就会把设置的结果存入路由器的NVRAM中,然后结束设置对话过程,使路由器开始正常的工作。 Ant海岸线网络安全资讯站
  返回目录 Ant海岸线网络安全资讯站
    Ant海岸线网络安全资讯站
  Ant海岸线网络安全资讯站
  常用命令 Ant海岸线网络安全资讯站
  1. 帮助 Ant海岸线网络安全资讯站
  在IOS操作中,无论任何状态和位置,都可以键入“?”得到系统的帮助。 Ant海岸线网络安全资讯站
  2. 改变命令状态 Ant海岸线网络安全资讯站
  任务 命令 Ant海岸线网络安全资讯站
  进入特权命令状态 enable Ant海岸线网络安全资讯站
  退出特权命令状态 disable Ant海岸线网络安全资讯站
  进入设置对话状态 setup Ant海岸线网络安全资讯站
  进入全局设置状态 config terminal Ant海岸线网络安全资讯站
  退出全局设置状态 end Ant海岸线网络安全资讯站
  进入端口设置状态 interface type slot/number Ant海岸线网络安全资讯站
  进入子端口设置状态 interface type number.subinterface [point-to-point | multipoint] Ant海岸线网络安全资讯站
  进入线路设置状态 line type slot/number Ant海岸线网络安全资讯站
  进入路由设置状态 router protocol Ant海岸线网络安全资讯站
  退出局部设置状态 exit Ant海岸线网络安全资讯站
  3. 显示命令 Ant海岸线网络安全资讯站
  任务 命令 Ant海岸线网络安全资讯站
  查看版本及引导信息 show version Ant海岸线网络安全资讯站
  查看运行设置 show running-config Ant海岸线网络安全资讯站
  查看开机设置 show startup-config Ant海岸线网络安全资讯站
  显示端口信息 show interface type slot/number Ant海岸线网络安全资讯站
  显示路由信息 show ip router Ant海岸线网络安全资讯站
  4. 拷贝命令 Ant海岸线网络安全资讯站
  用于IOS及CONFIG的备份和升级 Ant海岸线网络安全资讯站
  Ant海岸线网络安全资讯站
  5. 网络命令 Ant海岸线网络安全资讯站
  任务 命令 Ant海岸线网络安全资讯站
  登录远程主机 telnet hostname|IP address Ant海岸线网络安全资讯站
  网络侦测 ping hostname|IP address Ant海岸线网络安全资讯站
  路由跟踪 trace hostname|IP address Ant海岸线网络安全资讯站
    Ant海岸线网络安全资讯站
  6. 基本设置命令 Ant海岸线网络安全资讯站
  任务 命令 Ant海岸线网络安全资讯站
  全局设置 config terminal Ant海岸线网络安全资讯站
  设置访问用户及密码 username username password password Ant海岸线网络安全资讯站
  设置特权密码 enable secret password Ant海岸线网络安全资讯站
  设置路由器名 hostname name Ant海岸线网络安全资讯站
  设置静态路由 ip route destination subnet-mask next-hop Ant海岸线网络安全资讯站
  启动IP路由 ip routing Ant海岸线网络安全资讯站
  启动IPX路由 ipx routing Ant海岸线网络安全资讯站
  端口设置 interface type slot/number Ant海岸线网络安全资讯站
  设置IP地址 ip address address subnet-mask Ant海岸线网络安全资讯站
  设置IPX网络 ipx network network Ant海岸线网络安全资讯站
  激活端口 no shutdown Ant海岸线网络安全资讯站
  物理线路设置 line type number Ant海岸线网络安全资讯站
  启动登录进程 login [local|tacacs server] Ant海岸线网络安全资讯站
  设置登录密码 password password Ant海岸线网络安全资讯站
    Ant海岸线网络安全资讯站
  Ant海岸线网络安全资讯站
  配置IP寻址 Ant海岸线网络安全资讯站
    Ant海岸线网络安全资讯站
  1. IP地址分类 Ant海岸线网络安全资讯站
  IP地址分为网络地址和主机地址二个部分,A类地址前8位为网络地址,后24位为主机地址,B类地址16位为网络地址,后16位为主机地址,C类地址前24位为网络地址,后8位为主机地址,网络地址范围如下表所示: Ant海岸线网络安全资讯站
  种类 网络地址范围 Ant海岸线网络安全资讯站
  A  1.0.0.0 到126.0.0.0有效 0.0.0.0 和127.0.0.0保留 Ant海岸线网络安全资讯站
  B 128.1.0.0到191.254.0.0有效 128.0.0.0和191.255.0.0保留 Ant海岸线网络安全资讯站
  C 192.0.1.0 到223.255.254.0有效 192.0.0.0和223.255.255.0保留 Ant海岸线网络安全资讯站
  D 224.0.0.0到239.255.255.255用于多点广播 Ant海岸线网络安全资讯站
  E 240.0.0.0到255.255.255.254保留 255.255.255.255用于广播 Ant海岸线网络安全资讯站
  2. 分配接口IP地址 Ant海岸线网络安全资讯站
  任务 命令 Ant海岸线网络安全资讯站
  接口设置 interface type slot/number Ant海岸线网络安全资讯站
  为接口设置IP地址 ip address ip-address mask Ant海岸线网络安全资讯站
  掩玛(mask)用于识别IP地址中的网络地址位数,IP地址(ip-address)和掩码(mask)相与即得到网络地址。 Ant海岸线网络安全资讯站
  3. 使用可变长的子网掩码 Ant海岸线网络安全资讯站
  通过使用可变长的子网掩码可以让位于不同接口的同一网络编号的网络使用不同的掩码,这样可以节省IP地址,充分利用有效的IP地址空间。 Ant海岸线网络安全资讯站
  如下图所示: Ant海岸线网络安全资讯站
  Router1和Router2的E0端口均使用了C类地址192.1.0.0作为网络地址,Router1的E0的网络地址为192.1.0.128,掩码为255.255.255.192, Router2的E0的网络地址为192.1.0.64

5. Cisco765M通过ISDN拨号上263 Ant海岸线网络安全资讯站
  由于Cisco765的设置命令与我们常用的Cisco路由器的命令不同,所以以下列举了通过Cisco765上263访问Internet的具体命令行设置步骤。 Ant海岸线网络安全资讯站
  Ant海岸线网络安全资讯站
  >set system c765 Ant海岸线网络安全资讯站
  c765> set multidestination on Ant海岸线网络安全资讯站
  c765> set switch net3 Ant海岸线网络安全资讯站
  c765> set ppp multilink on Ant海岸线网络安全资讯站
  c765> cd lan Ant海岸线网络安全资讯站
  c765:LAN> set ip routing on Ant海岸线网络安全资讯站
  c765:LAN> set ip address 10.0.0.1 Ant海岸线网络安全资讯站
  c765:LAN> set ip netmask 255.0.0.0 Ant海岸线网络安全资讯站
  c765:LAN> set briding off Ant海岸线网络安全资讯站
  c765:LAN>cd Ant海岸线网络安全资讯站
  c765> set user remotenet Ant海岸线网络安全资讯站
  New user remotenet being created Ant海岸线网络安全资讯站
  c765:remotenet> set ip routing on Ant海岸线网络安全资讯站
  c765:remotenet> set bridging off Ant海岸线网络安全资讯站
  c765:remotenet> set ip framing none Ant海岸线网络安全资讯站
  c765:remotenet> set ppp clientname 263 Ant海岸线网络安全资讯站
  c765:remotenet> set ppp password client Ant海岸线网络安全资讯站
  Enter new Password: 263 Ant海岸线网络安全资讯站
  Re-Type new Password: 263 Ant海岸线网络安全资讯站
  c765:remotenet> set ppp authentication out none Ant海岸线网络安全资讯站
  c765:remotenet> set ip address 0.0.0.0 Ant海岸线网络安全资讯站
  c765:remotenet> set ip netmask 0.0.0.0 Ant海岸线网络安全资讯站
  c765:remotenet> set ppp address negotiation local on Ant海岸线网络安全资讯站
  c765:remotenet> set ip pat on Ant海岸线网络安全资讯站
  c765:remotenet> set ip route destination 0.0.0.0/0 gateway 0.0.0.0 Ant海岸线网络安全资讯站
  c765:remotenet> set number 2633 Ant海岸线网络安全资讯站
  c765:remotenet> set active Ant海岸线网络安全资讯站
  命令描述如下: Ant海岸线网络安全资讯站
  任务 命令 Ant海岸线网络安全资讯站
  设置路由器系统名称 set system c765 Ant海岸线网络安全资讯站
  允许路由器呼叫多个目的地 set multidestination on Ant海岸线网络安全资讯站
  设置ISDN交换机类型为NET3 set switch net3 Ant海岸线网络安全资讯站
  允许点到点间多条通道连接实现负载均衡 set ppp multilink on Ant海岸线网络安全资讯站
  关掉桥接 set briding off Ant海岸线网络安全资讯站
  建立用户预制文件用于设置拨号连接参数- 可以设置多个用户预制文件用于相同的物理端口对应于不同的连接。 set user remotenet Ant海岸线网络安全资讯站
  使用PPP/IPCP set ip framing none Ant海岸线网络安全资讯站
  设置上网用户帐号 set ppp clientname 263 Ant海岸线网络安全资讯站
  设置上网口令 set ppp password client Enter new Password: 263 Re-Type new Password: 263 Ant海岸线网络安全资讯站
  不用PPP/CHAP或PAP做认证 set ppp authentication out none Ant海岸线网络安全资讯站
  允许地址磋商 set ppp address negotiation local on Ant海岸线网络安全资讯站
  设置地址翻译 set ip pat on Ant海岸线网络安全资讯站
  设置默认路由 set ip route destination 0.0.0.0/0 gateway 0.0.0.0 Ant海岸线网络安全资讯站
  设置ISP的电话号码 set number 2633 Ant海岸线网络安全资讯站
  激活用户预制文件 set active Ant海岸线网络安全资讯站
    Ant海岸线网络安全资讯站
  返回目录 Ant海岸线网络安全资讯站
    Ant海岸线网络安全资讯站
  六、PSTN Ant海岸线网络安全资讯站
    电话网络(PSTN)是目前普及程度最高、成本最低的公用通讯网络,它在网络互连中也有广泛的应用。电话网络的应用一般可分为两种类型,一种是同等级别机构之间以按需拨号(DDR)的方式实现互连,一种是ISP为拨号上网为用户提供的远程访问服务的功能。 Ant海岸线网络安全资讯站
  1. 远程访问 Ant海岸线网络安全资讯站
  Ant海岸线网络安全资讯站
  1.1.Access Server基本设置: Ant海岸线网络安全资讯站
  选用Cisco2511作为访问服务器,采用IP地址池动态分配地址.远程工作站使用WIN95拨号网络实现连接。 Ant海岸线网络安全资讯站
  全局设置: Ant海岸线网络安全资讯站
  任务 命令 Ant海岸线网络安全资讯站
  设置用户名和密码 username username password password Ant海岸线网络安全资讯站
  设置用户的IP地址池 ip local pool {default | pool-name low-ip-address [high-ip-address]} Ant海岸线网络安全资讯站
  指定地址池的工作方式 ip address-pool [dhcp-proxy-client | local] Ant海岸线网络安全资讯站
  基本接口设置命令: Ant海岸线网络安全资讯站
  任务 命令 Ant海岸线网络安全资讯站
  设置封装形式为PPP encapsulation ppp Ant海岸线网络安全资讯站
  启动异步口的路由功能 async default routing Ant海岸线网络安全资讯站
  设置异步口的PPP工作方式 async mode {dedicated | interactive} Ant海岸线网络安全资讯站
  设置用户的IP地址 peer default ip address {ip-address | dhcp | pool [pool-name]} Ant海岸线网络安全资讯站
  设置IP地址与Ethernet0相同 ip unnumbered ethernet0 Ant海岸线网络安全资讯站
  line拨号线设置: Ant海岸线网络安全资讯站
  任务 命令 Ant海岸线网络安全资讯站
  设置modem的工作方式 modem {inout|dialin} Ant海岸线网络安全资讯站
  自动配置modem类型 modem autoconfig discovery Ant海岸线网络安全资讯站
  设置拨号线的通讯速率 speed speed Ant海岸线网络安全资讯站
  设置通讯线路的流控方式 flowcontrol {none | software [lock] [in | out] | hardware [in | out]} Ant海岸线网络安全资讯站
  连通后自动执行命令 autocommand command Ant海岸线网络安全资讯站
  访问服务器设置如下: Ant海岸线网络安全资讯站
  Router: Ant海岸线网络安全资讯站
  hostname Router Ant海岸线网络安全资讯站
  enable secret 5 $1$EFqU$tYLJLrynNUKzE4bx6fmH// Ant海岸线网络安全资讯站
  ! Ant海岸线网络安全资讯站
  interface Ethernet0 Ant海岸线网络安全资讯站
  ip address 10.111.4.20 255.255.255.0 Ant海岸线网络安全资讯站
  ! Ant海岸线网络安全资讯站
  interface Async1 Ant海岸线网络安全资讯站
  ip unnumbered Ethernet0 Ant海岸线网络安全资讯站
  encapsulation ppp Ant海岸线网络安全资讯站
  keepalive 10 Ant海岸线网络安全资讯站
  async mode interactive Ant海岸线网络安全资讯站
  peer default ip address pool Cisco2511-Group-142 Ant海岸线网络安全资讯站
  ! Ant海岸线网络安全资讯站
  ip local pool Cisco2511-Group-142 10.111.4.21 10.111.4.36 Ant海岸线网络安全资讯站
  ! Ant海岸线网络安全资讯站
  line con 0 Ant海岸线网络安全资讯站
  exec-timeout 0 0 Ant海岸线网络安全资讯站
  password cisco Ant海岸线网络安全资讯站
  ! Ant海岸线网络安全资讯站
  line 1 16 Ant海岸线网络安全资讯站
  modem InOut Ant海岸线网络安全资讯站
  modem autoconfigure discovery Ant海岸线网络安全资讯站
  flowcontrol hardware Ant海岸线网络安全资讯站
  ! Ant海岸线网络安全资讯站
  line aux 0 Ant海岸线网络安全资讯站
  transport input all Ant海岸线网络安全资讯站
  line vty 0 4 Ant海岸线网络安全资讯站
  password cisco Ant海岸线网络安全资讯站
  ! Ant海岸线网络安全资讯站
  end Ant海岸线网络安全资讯站
  相关调试命令: Ant海岸线网络安全资讯站
  show interface Ant海岸线网络安全资讯站
  show line Ant海岸线网络安全资讯站
  1.2. Access Server通过Tacacs服务器实现安全认证: Ant海岸线网络安全资讯站
  使用一台WINDOWS NT服务器作为Tacacs服务器,地址为10.111.4.2,运行Cisco2511随机带的Easy ACS 1.0软件实现用户认证功能. Ant海岸线网络安全资讯站
  相关设置: Ant海岸线网络安全资讯站
  任务 命令 Ant海岸线网络安全资讯站
  激活AAA访问控制 aaa new-model Ant海岸线网络安全资讯站
  用户登录时默认起用Tacacs+做AAA认证 aaa authentication login default tacacs+ Ant海岸线网络安全资讯站
  列表名为no_tacacs使用ENABLE口令做认证 aaa authentication login no_tacacs enable Ant海岸线网络安全资讯站
  在运行PPP的串行线上采用Tacacs+做认证 aaa authentication ppp default tacacs+ Ant海岸线网络安全资讯站
  由TACACS+服务器授权运行EXEC aaa authorization exec tacacs+ Ant海岸线网络安全资讯站
  由TACACS+服务器授权与网络相关的服务请求。 aaa authorization network tacacs+ Ant海岸线网络安全资讯站
  为EXEC会话运行记帐.进程开始和结束时发通告给TACACS+服务器。 aaa accounting exec start-stop tacacs+ Ant海岸线网络安全资讯站
  为与网络相关的服务需求运行记帐包括SLIP,PPP,PPP NCPs,ARAP等.在进程开始和结束时发通告给TACACS+服务器。 aaa accounting network start-stop tacacs+ Ant海岸线网络安全资讯站
  指定Tacacs服务器地址 tacacs-server host 10.111.4.2 Ant海岸线网络安全资讯站
  在Tacacs+服务器和访问服务器设定共享的关键字,访问服务器和Tacacs+服务器使用这个关键字去加密口令和响应信息。这里使用tac作为关键字。 tacacs-server key tac Ant海岸线网络安全资讯站
  访问服务器设置如下: Ant海岸线网络安全资讯站
  hostname router Ant海岸线网络安全资讯站
  ! Ant海岸线网络安全资讯站
  aaa new-model Ant海岸线网络安全资讯站
  aaa authentication login default tacacs+ Ant海岸线网络安全资讯站
  aaa authentication login no_tacacs enable Ant海岸线网络安全资讯站
  aaa authentication ppp default tacacs+ Ant海岸线网络安全资讯站
  aaa authorization exec tacacs+ Ant海岸线网络安全资讯站
  aaa authorization network tacacs+ Ant海岸线网络安全资讯站
  aaa accounting exec start-stop tacacs+ Ant海岸线网络安全资讯站
  aaa accounting network start-stop tacacs+ Ant海岸线网络安全资讯站
  enable secret 5 $1$kN4g$CvS4d2.rJzWntCnn/0hvE0 Ant海岸线网络安全资讯站
  ! Ant海岸线网络安全资讯站
  interface Ethernet0 Ant海岸线网络安全资讯站
  ip address 10.111.4.20 255.255.255.0 Ant海岸线网络安全资讯站
  ! Ant海岸线网络安全资讯站
  interface Serial0 Ant海岸线网络安全资讯站
  no ip address Ant海岸线网络安全资讯站
  shutdown Ant海岸线网络安全资讯站
  interface Serial1 Ant海岸线网络安全资讯站
  no ip address Ant海岸线网络安全资讯站
  shutdown Ant海岸线网络安全资讯站
  ! Ant海岸线网络安全资讯站
  interface Group-Async1 Ant海岸线网络安全资讯站
  ip unnumbered Ethernet0 Ant海岸线网络安全资讯站
  encapsulation ppp Ant海岸线网络安全资讯站
  async mode interactive Ant海岸线网络安全资讯站
  peer default ip address pool Cisco2511-Group-142 Ant海岸线网络安全资讯站
  no cdp enable Ant海岸线网络安全资讯站
  group-range 1 16 Ant海岸线网络安全资讯站
  ! Ant海岸线网络安全资讯站
  ip local pool Cisco2511-Group-142 10.111.4.21 10.111.4.36 Ant海岸线网络安全资讯站
  tacacs-server host 10.111.4.2 Ant海岸线网络安全资讯站
  tacacs-server key tac Ant海岸线网络安全资讯站
  ! Ant海岸线网络安全资讯站
  line con 0 Ant海岸线网络安全资讯站
  exec-timeout 0 0 Ant海岸线网络安全资讯站
  password cisco Ant海岸线网络安全资讯站
  login authentication no_tacacs Ant海岸线网络安全资讯站
  line 1 16 Ant海岸线网络安全资讯站
  login authentication tacacs Ant海岸线网络安全资讯站
  modem InOut Ant海岸线网络安全资讯站
  modem autoconfigure type usr_courier Ant海岸线网络安全资讯站
  autocommand ppp Ant海岸线网络安全资讯站
  transport input all Ant海岸线网络安全资讯站
  stopbits 1 Ant海岸线网络安全资讯站
  rxspeed 115200 Ant海岸线网络安全资讯站
  txspeed 115200 Ant海岸线网络安全资讯站
  flowcontrol hardware Ant海岸线网络安全资讯站
  line aux 0 Ant海岸线网络安全资讯站
  transport input all Ant海岸线网络安全资讯站
  line vty 0 4 Ant海岸线网络安全资讯站
  password cisco Ant海岸线网络安全资讯站
  ! Ant海岸线网络安全资讯站
  end Ant海岸线网络安全资讯站
  2. DDR(dial-on-demand routing)实例 Ant海岸线网络安全资讯站
  此例通过Cisco 2500系列路由器的aux端口实现异步拨号DDR连接。Router1拨号连接到Router2。其中采用PPP/CHAP做安全认证,在Router1中应建立一个用户,以对端路由器主机名作为用户名,即用户名应为Router2。同时在Router2中应建立一个用户,以对端路由器主机名作为用户名,即用户名应为Router1。所建的这两用户的password必须相同。 Ant海岸线网络安全资讯站
  相关命令如下: Ant海岸线网络安全资讯站
  任务 命令 Ant海岸线网络安全资讯站
  设置路由器与modem的接口指令 chat-script script-name EXPECT SEND EXPECT SEND (etc.) Ant海岸线网络安全资讯站
  设置端口在挂断前的等待时间 dialer idle-timeout seconds Ant海岸线网络安全资讯站
  设置协议地址与电话号码的映射 dialer map protocol next-hop-address [name hostname] [broadcast] [modem-script modem-regexp] [system-script system-regexp] [dial-string] Ant海岸线网络安全资讯站
  设置电话号码 dialer string dial-string Ant海岸线网络安全资讯站
  指定在特定线路下路由器默认 使用的chat-script script {dialer|reset} script-