zoukankan      html  css  js  c++  java
  • CCNA实验4:HDLC和PPP

    image

    一.HDLC封装

    router9和11上分别配置s0/0如下

    conf t

    int s0/0

    encapsulation hdlc

    do show int s0/0

    ip address x.x.x.1 255.255.255.0

    no shutdown

    image

    即可互相ping通

    image

    二.PPP封装

    2.1无认证

    conf t

    int s0/0

    encapsution ppp

    no sh

    即可.PAP或者CHAP认证是可选的.

    image

    2.2单向认证pap

    客户端:

    ppp pap sent-username r1 password 0 mypass

    服务器端:

    conf t

    username r1 password 0 mypass

    int s0/0

    encapsution ppp

    ppp authentication pap

    2.3双向认证pap

    客户端:

    conf t

    username bill password 0 good

    int s0/0

    encapsution ppp

    ppp pap sent-username r1 password 0 mypass

    ppp authentication pap

    服务器端:

    conf t

    username r1 password 0 mypass

    int s0/0

    encapsution ppp

    ppp authentication pap

    ppp pap sent-username bill password 0 good

    2.4 CHAP双向认证

    R1:

    conf t

    username r1 password 0 good

    int s0/0

    encapsution ppp

    ppp authentication chap

    R2:

    conf t

    username r2 passord 0 good

    encapsution ppp

    ppp authentication chap

    2.5 CHAP单向认证—cisco paket tracer中做不了此实验,未验证

    r1(config)#username r2 password cisco

    r1(config)#int s1/1

    r1(config-if)#encapsulation ppp

    r1(config-if)#ppp authentication chap

    r2(config)#int s1/0

    r2(config-if)# encapsulation ppp

    r2(config-if)#ppp chap hostname r2  // 设置本端用户名

    r2(config-if)#ppp chap password cisco

  • 相关阅读:
    软件包的作用
    Sqlserver2008 表分区教程
    C#通用类型转换 Convert.ChangeType
    缓存 HttpContext.Current.Cache和HttpRuntime.Cache的区别
    用户信息 Froms验证票证
    .NET4.0 __doPostBack未定义
    TFS2012 安装 配置笔记
    MVC学习笔记一
    新博客..第一天..
    ORACLE多表查询优化
  • 原文地址:https://www.cnblogs.com/jjkv3/p/3788787.html
Copyright © 2011-2022 走看看