电脑技术学习

华为路由器上L2TP的配置

dn001

   华为路由器上L2TP的配置
  Client:
   Now create configuration...
   Current configuration
   !
    version 1.65
    hostname R1
   !
   interface Aux0
    async mode interactive
    encapsulation ppp
   !
   interface Ethernet0
    speed auto
    duplex auto
    no loopback
   !
   interface Ethernet1
    speed auto
    duplex auto
    no loopback
   !
   interface Serial0
    encapsulation ppp
    ppp pap sent-username Lemon@richinfo.com passWord 0 *****
    ip address negotiate
   !
   interface Serial1
    clock-select DTECLK1
    encapsulation ppp
    shutdown
   !
   voice-port 0
   !
   voice-port 1
   !
   end
  
  LAC:
   Now create configuration...
   Current configuration
   !
    version 1.65
    user Lemon@richinfo.com service-type ppp password 0 *****
    vpdn enable
    aaa-enable
    aaa authentication ppp default local
    aaa authentication login default local
    aaa accounting optional
    hostname R2
   !
   interface Aux0
    async mode interactive
    encapsulation ppp
   !
   interface Ethernet0
    speed auto
    duplex auto
    no loopback
   !
   interface Ethernet1
    speed auto
    duplex auto
    no loopback
   !
   interface Ethernet1
    speed auto
    duplex auto
    no loopback
   !
   interface Serial0
    clock-select DTECLK1
    encapsulation ppp
    ppp authentication pap
   !
   interface Serial1
    encapsulation ppp
    ip address 202.103.1.21 255.255.255.252
   !
   vpdn-group 1
    request dialin l2tp ip 202.103.1.22 fullusername *****
    l2tp tunnel password 0 ****
   !
   end
  
  LNS:
   Now create configuration...
   Current configuration
   !
    version 1.65
    user Lemon@richinfo.com service-type ppp password 0 *****
    vpdn enable
    ip local pool 1 192.168.1.2 192.168.1.254
    aaa-enable
    aaa authentication ppp default local
    aaa authentication login default local
    aaa accounting optional
    hostname R3
   !
   interface Aux0
    async mode interactive
    encapsulation ppp
   !
   interface Ethernet0
    speed auto
    duplex auto
    no loopback
   !
   interface Serial0
    no loopback
   !
   interface Serial0
    encapsulation ppp
    shutdown
   !
   interface Serial1
    clock-select DTECLK1
    encapsulation ppp
    ip address 202.103.1.22 255.255.255.252
   !
   interface Virtual-Template1
    encapsulation ppp
    ppp authentication pap
    peer default ip address pool 1
    ip address 192.168.1.1 255.255.255.0
   !
   vpdn-group 1
    accept dialin l2tp virtual-template 1 remote R2
    l2tp tunnel password 0 ****
   !
   end