这开始是一个问题,因为我的连接失败了,但是经过一些尝试和错误之后,配置开始工作,所以我已经将它编辑成了一个解决方案。访问列表和地址转换在下面的配置中还不是100%,但它涵盖了连接设置。
设置:我有一个带有2个以太网端口的Cisco路由器和另一个带有ATM接口的ADSL路由器。我的服务提供商通过L2TP隧道为ADSL提供静态IP (l2tp服务ip,提供共享秘密,adsl用户名/密码为auth)。我想在Cisco-1以太网端口内部(fa0/1)上配置连接和隧道,L2TP隧道接口是另一个以太网端口(fa0 0/0)上的外部/公共IP,但仍然在Cisco和其他DSL路由器之间维护一个专用网络。
内部网络: 192.168.0.0/24思科与其他路由器之间的专用网络: 10.0.0.0/24 (或可能是/30)。其他路由器配置为PPPoE桥模式/通过。L2TP服务: 1.2.3.4共享秘密: 54321 ADSL用户名/通行证: myuser@myisp / mypass
aaa new-model
aaa authentication ppp default local
l2tp-class l2tp_secret
hidden
authentication
hello 10
password 54321
pseudowire-class l2tp_config
encapsulation l2tpv2
protocol l2tpv2 l2tp_secret
ip local interface Dialer1
interface FastEthernet0/0
description WAN / PPPoE Interface
ip address 10.0.0.10 255.255.255.0
ip virtual-reassembly
pppoe enable group global
pppoe-client dial-pool-number 10
interface FastEthernet0/1
description LAN
ip address 192.168.0.1 255.255.255.0
ip nat inside
ip virtual-reassembly
ip tcp adjust-mss 1412
no ip mroute-cache
interface Virtual-PPP1
description L2TP Tunnel for static IP
ip address negotiated
ip mtu 1452
ip nat outside
ip virtual-reassembly
ip tcp adjust-mss 1412
shutdown
no cdp enable
ppp authentication pap callin
ppp pap sent-username myuser@myisp password 0 mypass
pseudowire 1.2.3.4 1 pw-class l2tp_config
interface Dialer1
ip address negotiated
encapsulation ppp
shutdown
dialer pool 10
ppp authentication pap callin
ppp pap sent-username myuser@myisp password 0 mypass
ppp ipcp route default
ip route 0.0.0.0 0.0.0.0 Virtual-PPP1
ip route 1.2.3.4 255.255.255.255 Dialer1发布于 2015-09-15 08:01:44
有相当多的尝试和错误。各种方法的第一个问题可以在修订版中找到:https://networkengineering.stackexchange.com/posts/22455/revisions
原来的帖子现在是一个解决方案,而不是一个问题。
发布于 2015-09-15 07:35:46
我对Cisco不是很熟悉,但是您是否需要使用“机密”而不是密码@l2tp-class呢?
https://networkengineering.stackexchange.com/questions/22455
复制相似问题