扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
利用Internet 出口线路建立VPN
et peer {host-name [dynamic] | ip-address}
说明:
host-name 指定IPSec peer的DNS主机名称,如:myhost.example.com。
dynamic (可选参数) 指定 IPSec peer 的主机名在需要建立IPSec通道的时候才通过DNS服务器解释为IP地址。
ip-address 直接给出IPSec peer的IP地址(传统的配置方式)。
实际环境中局域网
version 12.3
!
hostname vpn-2
!
username mize password 0 http://mize.netbuddy.org
o aaa new-model
ip subnet-zero
!
vpdn enable
vpdn-group pppoe
request-dialin
rotocol pppoe
!
ip cef
ip name-server 202.96.134.133
!
crypto isakmp policy 1
authentication pre-share
group 2
crypto isakmp key cisco hostname nbo.3322.org
!
crypto ipsec transform-set s2s esp-des esp-sha-hmac
!
crypto map mymap 10 ipsec-isakmp
et peer nbo.3322.org dynamic
et transform-set s2s
match address 110
!
interface FastEthernet0/0
o ip address
oe enable
oe-client dial-pool-number 1
!
interface dialer 1
ip address negotiated
mtu 1492
encapsulation ppp
ip nat outside
dialer pool 1
authentication pap callin
pap sent-username xxx password xxx
crypto map mymap
!
interface FastEthernet0/1
ip address 172.30.1.1 255.255.255.0
ip nat inside
!
ip nat inside source route-map nonat interface dialer 1 overload
ip classless
ip route 0.0.0.0 0.0.0.0 dialer 1
!
access-list 110 permit ip 172.30.1.0 0.0.0.255 172.16.0.0 0.0.255.255
access-list 110 permit ip 172.16.0.0 0.0.255.255 172.30.1.0 0.0.0.255
access-list 120 deny ip 172.30.1.0 0.0.0.255 172.16.0.0 0.0.255.255
access-list 120 permit ip 172.30.1.0 0.0.0.255 any
route-map nonat permit 10
match ip address 120
!
end
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。