L2TP VPN 客户端获取固定ip地址方法
方法1、在domain上添加一个ip地址,配置多个域。
domain system
ip
pool 1 172.16.1.100
方法2、在Virtual-Template1上指定remote address
,创建多个Virtual-Template1接口
interface Virtual-Template1
ppp authentication-mode
pap domain dpy
remote address 172.16.1.136
ip address 172.16.1.1
255.255.255.0
方法3:通过IMC服务器分配固定ip地址:
一、设备侧的配置:
l2tp enable
l2tp-group 1
undo tunnel authentication
allow
l2tp virtual-template 1
interface Virtual-Template1
ppp authentication-mode
pap
remote address pool
ip address 192.168.1.1 255.255.255.0
radius scheme h3c
primary authentication
10.153.42.65
primary accounting 10.153.42.65
key authentication cipher
/cMY2lCA8YI=
key accounting cipher /cMY2lCA8YI=
user-name-format
without-domain
domain system
authentication ppp radius-scheme
h3c
authorization ppp radius-scheme h3c
accounting ppp radius-scheme
h3c
ip pool 2 192.168.1.2 192.168.1.100
二、IMC侧的配置:
1、接入设备
2、服务
3、账号
三、inode侧
L2TP VPN 客户端获取固定ip地址方法
方法1、在domain上添加一个ip地址,配置多个域。
domain system
ip
pool 1 172.16.1.100
方法2、在Virtual-Template1上指定remote address
,创建多个Virtual-Template1接口
interface Virtual-Template1
ppp authentication-mode
pap domain dpy
remote address 172.16.1.136
ip address 172.16.1.1
255.255.255.0
方法3:通过IMC服务器分配固定ip地址:
一、设备侧的配置:
l2tp enable
l2tp-group 1
undo tunnel authentication
allow
l2tp virtual-template 1
interface Virtual-Template1
ppp authentication-mode
pap
remote address pool
ip address 192.168.1.1 255.255.255.0
radius scheme h3c
primary authentication
10.153.42.65
primary accounting 10.153.42.65
key authentication cipher
/cMY2lCA8YI=
key accounting cipher /cMY2lCA8YI=
user-name-format
without-domain
domain system
authentication ppp radius-scheme
h3c
authorization ppp radius-scheme h3c
accounting ppp radius-scheme
h3c
ip pool 2 192.168.1.2 192.168.1.100
二、IMC侧的配置:
1、接入设备
2、服务
3、账号
三、inode侧