当前位置:
文档之家› H3C V7 MSR路由器 拨号上网配置 PPPoE配置示例
H3C V7 MSR路由器 拨号上网配置 PPPoE配置示例
#
interface Dialer 1 //配置拨号
ppp ipcp dns admit-any
ppp ipcp dns request
ppp pap local-user pppoe password cipher pppoe
dialer bundle enable //接口使能共享DDR
dialer-group 1 //将Dialer 1接口与拨号访问组1关联
#
domain system
authentication ppp local //PPPoE认证方式为本地址认证
#
local-user pppoe class network //创建用于PPPoE认证的本地用户
password cipher pppoe
service-type ppp
#
Return
dialer timer idle 0 //配置PPPoE Client工作在永久在线模式(允许链路闲置的时间)
dialer timer autodial 60 //配置DDR自动拨号的间隔时间为60秒
ip address ppp-negotiate //配置接口从对端获得IP地址
nat outbound 2000 //配置NAT转换(内网用户通过NAT后才能访问公网)
port link-mode route
combo enable copper
#
#
acl basic 2000 //配置NAT过滤
rule 5 permit
#
return
#
interface GigabitEthernet0/0 //WAN口
port link-mode route
combo enable copper
pppoe-client dial-bundle-number 1 //配置PPPoE会话
#
interface GigabitEthernet0/1 //LAN口
MSR
1.
2.
<PPPoE-Server>display current-configuration
#
#
sysname PPPoE-Server
#
#
dhcp enable
#
interface Virtual-Template1
ppp authentication-mode pap domain system //客户端的验证方式
3.
[PPPoE-Client]display current-oE-Client
#
dialer-group 1 rule ip permit //定义拨号访问组1以及对应的拨号访问控制条件
#
dhcp enable
#
dhcp server ip-pool 1//为内网用户分配IP地址
remote address pool pppoe//指定为远端(PPPoE客户端)分配IP地址
#
interface NULL0
#
interface GigabitEthernet0/0
port link-mode route
combo enable copper
pppoe-server bind virtual-template 1 //应用到接口并绑定虚拟木模板1