PAP的简单实现

仅简单记录了一下自己使用dynamips模拟器,在CISCO 3620中配置PAP的过程!
注意:以下仅为Router1的配置,Router2的配置和Router1的配置极其类似!
Router#enable
Router#configure teminal
  ^
% Invalid input detected at '^' marker.

Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Router1
Router1(config)#aaa new-model
Router1(config)#aaa authentication login default local
Router1(config)#username router1 password 0 router1
Router1(config)#interface serial 0/0
Router1(config-if)#encapsulation ppp
Router1(config-if)#clock rate 64000
Router1(config-if)#ip address 192.168.1.1 255.255.255.0
Router1(config-if)#ppp authentication pap
AAA: Warning, authentication list "default" is not defined for PPP.

Router1(config-if)#ppp pap sent-user router2 password 0 router2
Router1(config-if)#no shut
Router1(config-if)#
00:06:04: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up
Router1(config-if)#^Z
Router1#write
00:07:35: %SYS-5-CONFIG_I: Configured from console by console
Building configuration...
[OK]
Router1#
00:11:22: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
Router1#ping 192.168.1.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/76/220 ms
Router1#write
Building configuration...
[OK]

Router1#  



本文转自tiancong 51CTO博客,原文链接:http://blog.51cto.com/tiancong/159854

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值