GYS821ZX_U200A>dis cu
# version 5.20, Feature 5123P36
# sysname GYS821ZX_U200A
# l2tp enable
# undo voice vlan mac-address 00e0-bb00-0000
# ike local-name lns
# domain default enable system
# dns proxy enable
# telnet server enable
# ip ttl-expires enable ip unreachables enable
# undo alg all
#
#
# acl number 3000 description dianxin rule 21 permit ip source 10.0.51.0 0.0.0.255 rule 30 permit ip source 192.168.4.253 0 acl number 3001 description yidong rule 0 permit ip source 10.0.49.0 0.0.0.255 acl number 3008 description vlanTOvlan acl number 3100 rule 0 permit udp source-port eq 1701 rule 5 permit ip
# vlan 1
# vlan 2
# radius scheme system # domain h3c access-limit disable state active idle-cut disable self-service-url disable ip pool 2 10.8.2.1 domain system access-limit disable state active idle-cut disable self-service-url disable ip pool 1 192.168.2.2 192.168.2.62
# pki domain default crl check disable
# ike peer pc exchange-mode aggressive pre-shared-key cipher id-type name remote-name pc
# ipsec proposal 1
# ipsec policy-template temp 1 ike-peer pc proposal 1
# ipsec policy pc 1 isakmp template temp
# qos policy 1
# user-group system
# local-user admin password cipher authorization-attribute level 3 service-type telnet local-user vpnuser password cipher service-type ppp # ssl server-policy access-policy pki-domain default
# l2tp-group 1 undo tunnel authentication allow l2tp virtual-template 0 tunnel name lns
# l2tp-group 2 undo tunnel authentication allow l2tp virtual-template 1 remote pc
# interface Bridge-Aggregation1 link-aggregation mode dynamic
# interface Bridge-Aggregation2 link-aggregation mode dynamic
# interface Virtual-Template0 ppp authentication-mode chap domain system remote address pool 1 ip address 192.168.2.1 255.255.255.192
# interface Virtual-Template1 ppp authentication-mode pap domain h3c remote address pool 2 ip address 10.8.2.2 255.255.255.252
# interface NULL0
# interface Vlan-interface1 ip address 10.254.1.42 255.255.255.248 ip policy-based-route fenliu
# interface Vlan-interface2 ip address 10.254.0.2 255.255.255.252
# interface GigabitEthernet0/0 port link-mode route description TO_dianxin nat outbound nat server ip address ipsec policy pc
# interface GigabitEthernet0/1 port link-mode route description TO_ nat outbound ip address 10.254.0.10 255.255.255.252
# interface GigabitEthernet0/2 port link-mode route description TO_MSR3600 ip address 10.254.1.2 255.255.255.252
# interface GigabitEthernet0/3 port link-mode route ip address 10.254.1.90 255.255.255.252
# interface GigabitEthernet0/4 port link-mode bridge port link-aggregation group 1
# interface GigabitEthernet0/5 port link-mode bridge description TO_7503_G28 port link-aggregation group 1
# ospf 1 import-route static area 0.0.0.1 network 10.254.0.8 0.0.0.3 network 10.254.1.40 0.0.0.7 network 10.254.1.88 0.0.0.3 network 10.255.255.25 0.0.0.0 # nqa entry dianxin test type icmp-echo destination ip 118.121.233.1 frequency 5000 history-record number 10 probe count 10 probe timeout 500 reaction 1 checked-element probe-fail threshold-type consecutive 1 action-type trigger-only # nqa entry yidong test type icmp-echo destination ip 10.254.0.9 frequency 5000 history-record number 10 probe timeout 500 reaction 2 checked-element probe-fail threshold-type consecutive 1 action-type trigger-only # policy-based-route fenliu permit node 0 if-match acl 3008 policy-based-route fenliu permit node 1 if-match acl 3001 apply ip-address next-hop 10.254.0.9 track 2 policy-based-route fenliu permit node 2 if-match acl 3000 apply ip-address next-hop 118.000 track 1 policy-based-route fenliu permit node 3 # ip route-static 0.0.0.0 0.0.0.0 118.101.0.0 track 1 ip route-static 0.0.0.0 0.0.0.0 10.254.0.9 track 2 preference 70 ip route-static 10.0.40.0 255.255.248.0 10.254.1.43 ip route-static 10.0.48.0 255.255.248.0 10.254.1.43 ip route-static 10.0.56.0 255.255.255.192 10.254.1.43 ip route-static 10.110.63.0 255.255.255.192 10.254.1.43 ip route-static 192.168.4.0 255.255.255.0 Vlan-interface1 10.254.1.43
# undo info-center enable # track 1 nqa entry dianxin test reaction 1 track 2 nqa entry yidong test reaction 2 # nqa schedule yidong test start-time now lifetime forever nqa schedule dianxin test start-time now lifetime forever # nat dns-map domain ***.*** protocol tcp ip 118.121.233.63 port www # ip https acl 2008 ip https port 8443 ip https ssl-server-policy access-policy ip https enable # load xml-configuration # user-interface con 0 authentication-mode password set authentication password cipher ! user-interface vty 0 4 acl 2008 inbound authentication-mode scheme # return <GYS821ZX_U200A>
(0)
最佳答案
给你个配置案例,然后需要把这个虚接口加入安全区域,然后放通域间策略
#设置用户名密码服务类型
[H3C]local-user l2tpvpn
[H3C-luser-l2tpvpn]password simple l2tpvpn
[H3C-luser-l2tpvpn]service-type ppp
[H3C-luser-l2tpvpn]qu #启用L2TP服务
[H3C]l2tp enable #对VPN采用本地认证并配置地址池
[H3C]domain system
[H3C-isp-system]authentication ppp local
[H3C-isp-system]ip pool 1 192.168.100.2 192.168.100.100
[H3C-isp-system]quit #配置虚模板
[H3C]interface Virtual-Template 1
[H3C-Virtual-Template1]ip add 192.168.100.1 24
[H3C-Virtual-Template1]ppp authentication-mode chap domain system
[H3C-Virtual-Template1]remote address pool 1
[H3C-Virtual-Template1]qu #设置L2TP组,
[H3C]l2tp-group 1
[H3C-l2tp1]tunnel name LNS
[H3C-l2tp1]allow l2tp virtual-template 1
[H3C-l2tp1]undo tunnel authentication
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论