zoukankan      html  css  js  c++  java
  • NAS-Initiated模式L2TP隧道配置(Cisco)

    原文链接:https://blog.51cto.com/692344/1075579
    原文链接:https://blog.csdn.net/weixin_34205826/article/details/91530936

     图中的R1作为LAC,R2作为LNS,Net桥接到物理网卡

     LAC:


    hostname lac
    aaa new-model
    aaa authentication ppp default none

    vpdn enable
    vpdn search-order domain

    vpdn-group 1
    request-dialin
    protocol l2tp
    domain fc.ln
    initiate-to ip 1.1.2.2
    local name LAC
    no l2tp tunnel authentication

    bba-group pppoe global
    virtual-template 1

    interface Ethernet0/0
    ip address 1.1.2.1 255.255.255.0

    interface Ethernet0/1
    ip address dhcp
    pppoe enable group global

    interface Virtual-Template1
    mtu 1492
    ip unnumbered Ethernet0/1
    no peer default ip address
    ppp authentication pap chap

    LNS:

    hostname lns
    aaa new-model
    aaa authentication ppp vpdn local

    vpdn enable
    !
    vpdn-group 1
    accept-dialin
    protocol l2tp
    virtual-template 1
    terminate-from hostname LAC
    lcp renegotiation always
    no l2tp tunnel authentication
    !
    !
    username lnsuser@fc.ln password 0 lnsuser
    !
    interface Ethernet0/0
    ip address 1.1.2.2 255.255.255.0
    !
    interface Virtual-Template1
    ip unnumbered Ethernet0/0
    peer default ip address pool mypool
    ppp authentication pap chap vpdn
    !
    ip local pool mypool 192.168.0.10 192.168.0.20
    图中的network是桥接到我自己的VMware网卡了


    桥接完成后,从物理机ping一下模拟器里面的R1

    可以看出从VMware 网卡VMnet1的DHCP服务器中获取到的IP地址为192.168.229.136,用物理机ping 192.168.229.136如果可以ping通,则认为网络连通性正常,可以继续进行拨号配置;


     进行拨号配置

  • 相关阅读:
    kubectl 命令详解
    codeforce344 C report
    poj3041 建图+最小顶点覆盖(最大匹配数)
    poj1637 混合欧拉回路的判定
    poj1149 最大流好题 难在建图 好题
    targan 算法模板
    poj2186 强连通分量 targan算法的应用
    poj2723 2分 + 2-sat
    poj3061 尺取法
    poj3207 2-sat基础题
  • 原文地址:https://www.cnblogs.com/paddingtoneyes/p/13547153.html
Copyright © 2011-2022 走看看