设备拨号进入L2TP服务端,获取固定IP。
(0)
最佳答案
创建账号的时候在账号里面绑定
[H3C]local-user newh3c class network //创建账号为newh3c
[H3C-luser-network-newh3c]service-type ppp //服务类型为PPP服务
[H3C-luser-network-newh3c]password simple newh3c //配置密码为newh3c
[H3C-luser-network-newh3c]authorization-attribute user-role network-admin
[H3C-luser-network-newh3c]authorization-attribute ip 192.168.200.2 //配置认证成功后获取到的IP地址为192.168.200.2
[H3C-luser-network-newh3c]authorization-attribute primary-dns ip 114.114.114.114 //配置认证成功后获取到的主DNS为114.114.114.114(本次是举例,具体请以实际DNS为准)
[H3C-luser-network-newh3c]authorization-attribute secondary-dns ip 8.8.8.8 //配置认证成功后获取到的备DNS为8.8.8.8(本次是举例,具体请以实际DNS为准)
[H3C-luser-network-newh3c]access-limit 1 //配置账号最大接入用户数为1
(0)
# version 7.1.064, Release 0605P18 # sysname H3C # telnet server enable # ip pool l2tp1 192.168.202.10 192.168.202.200 # dhcp enable dhcp server always-broadcast # dns proxy enable # password-recovery enable # vlan 1 # vlan 89 # dhcp server ip-pool 89 gateway-list 192.168.89.1 network 192.168.89.0 mask 255.255.255.0 address range 192.168.89.10 192.168.89.200 dns-list 211.137.191.26 # dhcp server ip-pool lan1 gateway-list 192.168.0.1 network 192.168.0.0 mask 255.255.254.0 address range 192.168.1.2 192.168.1.254 dns-list 192.168.0.1 # controller Cellular0/0 # interface Virtual-Template0 # interface Virtual-Template1 ppp authentication-mode chap domain default enable Ax remote address pool l2tp1 ip address 192.168.202.1 255.255.255.0 # interface NULL0 # interface Vlan-interface89 # interface GigabitEthernet0/0 port link-mode route ip address 192.168.0.1 255.255.254.0 tcp mss 1280 # interface GigabitEthernet0/1 port link-mode route ip address 111.17.164.52 255.255.255.248 nat outbound # interface GigabitEthernet0/2 port link-mode route combo enable copper ip address 192.168.89.1 255.255.255.0 # interface GigabitEthernet0/3 port link-mode route combo enable copper # interface GigabitEthernet0/4 port link-mode route # interface GigabitEthernet0/5 port link-mode route # security-zone name Local # security-zone name Trust # security-zone name DMZ # security-zone name Untrust # security-zone name Management # scheduler logfile size 16 # line class console user-role network-admin # line class tty user-role network-operator # line class vty user-role network-operator # line con 0 user-role network-admin # line vty 0 63 authentication-mode scheme user-role network-operator # ip route-static 0.0.0.0 0 111.17.164.49 # domain system # domain default enable system # role name level-0 description Predefined level-0 role # role name level-1 description Predefined level-1 role # role name level-2 description Predefined level-2 role # role name level-3 description Predefined level-3 role # role name level-4 description Predefined
我这样配置的,1口 是静态Ip上外网,0口是LAN口,192.168.89.1。 现在是设置l2tp,lns,客户端拨号进入后获取固定ip,我现在建立了两个账户 zhou和user,但是我客户端拨号不成功,不知道怎么回事,你能帮我看一下么。谢谢
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
我这样配置的,1口 是静态Ip上外网,0口是LAN口,192.168.89.1。 现在是设置l2tp,lns,客户端拨号进入后获取固定ip,我现在建立了两个账户 zhou和user,但是我客户端拨号不成功,不知道怎么回事,你能帮我看一下么。谢谢