首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

CISCO配置命令大全(3)

6、配置PPP:   PPP(Point-to-Point Protocol)是SLIP(Serial Line IP protocol)的继承者,它提供了跨过同步和异步电路实现路由器到路由器(router-to-router)和主机到网络(host-to-network)的连接。   CHAP(Challenge Handshake Authentication Protocol)和PAP(Password Authentication Protocol) (PAP)通常被用于在PPP封装的串行线路上提供安全性认证。使用CHAP和PAP认证,每个路由器通过名字来识别,可以防止未经授权的访问。   CHAP和PAP在RFC 1334上有详细的说明。   A. 有关命令   端口设置   任务 命令   设置PPP封装 encapsulation ppp1   设置认证方法 ppp authentication {chap | chap pap | pap chap | pap} [if-needed] [list-name | default] [callin]   指定口令 username name password secret   设置DCE端线路速度 clockrate speed   注:1、要使用CHAP/PAP必须使用PPP封装。在与非Cisco路由器连接时,一般采用PPP封装,其它厂家路由器一般不支持Cisco的HDLC封装协议。   2. 举例   路由器Router1和Router2的S0口均封装PPP协议,采用CHAP做认证,在Router1中应建立一个用户,以对端路由器主机名作为用户名,即用户名应为router2。同时在Router2中应建立一个用户,以对端路由器主机名作为用户名,即用户名应为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   !   Router2:   hostname router2   username router1 password xxx   interface Serial0   ip address 192.200.10.2 255.255.255.0   ppp authentication chap   7、广域网配置实例   DDR Example   Dial Backup Example   Configure subinterface Example   Frame Relay Switching Example   Channelized E1 Interface Example   X.25 Example   DDR Example    例:   Configuration for RouterA:   ip route 131.108.29.0 131.108.126.2   ip route 131.108.1.0 131.108.126.2   dialer-list 1 protocol ip permit   dialer-list 1 protocol ipx deny   !   interface serial 0   ip address 131.108.126.1 255.255.255.0   dialer in-band   dialer-group 1   !   dialer map ip 131.108.126.2 5551234   !   dialer idle-timeout 300   Dial Backup Example   A)同步V.25 bits方式   Configuration for RouterA:   interface Serial0:0   backup delay 0 10   backup interface Serial10   ip address 16.217.30.2 255.255.255.252   !   interface Serial10   ip address 16.30.16.81 255.255.255.0   encapsulation ppp   dialer in-band   dialer string 8

02
领券