华为路由器上L2TP的配置

互联网 | 编辑: uker编辑2 2007-03-14 00:00:00转载

  Client:    Now create configuration...    Current configuration


  
  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

如果想了解更多相关信息以及详细咨询,欢迎点击中英网http://www.uker.net/,或发email至:echo@uker.netUKer.net资深编辑将为您详细解答。

相关阅读

每日精选

点击查看更多

首页 手机 数码相机 笔记本 游戏 DIY硬件 硬件外设 办公中心 数字家电 平板电脑