华为L2TP强制隧道配置命令
时间: 2023-11-01 16:07:14 浏览: 150
华为交换机配置命令大全
华为L2TP强制隧道配置命令如下:
1. 创建 L2TP 实例:
```
[huawei] l2tp-group 1
[huawei-l2tp-group-1] tunnel password simple huawei@123
[huawei-l2tp-group-1] tunnel authentication-type chap
```
2. 创建 LNS 配置:
```
[huawei] aaa
[huawei-aaa] local-user huawei password irreversible-cipher huawei@123
[huawei-aaa] local-user huawei service-type l2tp
[huawei-aaa] domain huawei.com
[huawei-aaa] quit
[huawei] domain huawei.com
[huawei-domain-huawei.com] authentication-scheme default
[huawei-domain-huawei.com] accounting-scheme default
[huawei-domain-huawei.com] authorization-scheme default
[huawei-domain-huawei.com] quit
[huawei] interface virtual-template 1
[huawei-Virtual-Template1] ppp authentication-mode chap
[huawei-Virtual-Template1] ppp link idle-timeout 120
[huawei-Virtual-Template1] ppp ipcp dns request
[huawei-Virtual-Template1] quit
[huawei] interface l2tp-group 1 virtual-template 1 force-tunnel enable
[huawei-l2tp-group-1] quit
```
注意:此处示例中使用了简单密码,实际应用中应使用更加复杂的密码来保证安全性。
阅读全文