
juniper-mx960-pppoe实验.pptx
10页华数MX960 Bras 培训 PPPoE实验,实验环境,Trunk 链路,Ge-0/0/10 vlan 100,Ge-0/0/22,Ge-4/0/0,测试PC,实验要求为了让实验环境最真实的模拟华数现网PPPoE业务,本次实验设计需要大家使用华数郊县最常用的单vlan动态拨号模板的PPPoE 配置方法完成该实验要求完成MX960配置后,通过测试PC可以正常拨号成功并获取到IP地址实验步骤定义一个基本的pp0接口拨号模板 pppoe { //模板名称为自定义interfaces {pp0 {unit “$junos-interface-unit” { //随机生成一个接口号ppp-options {pap; //定义认证方式}pppoe-options {underlying-interface “$junos-underlying-interface“;//定义pp0口与物理接口的关联server; //pp0口作为pppoe的服务器端}keepalives interval 100;family inet {unnumbered-address lo0.0; //在ppp协商时调用lo0地址 },创建一个autovlan的拨号模板autovlan { //模板名称,自定义interfaces {“$junos-interface-ifd-name” { //记录相关联的物理接口unit “$junos-interface-unit“ {vlan-id “$junos-vlan-id”//记录数据vlan号family pppoe {access-concentrator test; //定义AC-namedynamic-profile pppoe; //调用pp0接口的模板}}} },在下联接口上调用autovlan拨号模板interfaces {ge-4/0/0 {flexible-vlan-tagging; //同时支持单词vlan和QinQ的封装模式 auto-configure {vlan-ranges {dynamic-profile autovlan { //调用前面定义的autovlan模板accept pppoe;//允许pppoe报文触发动态模板ranges {any; //允许所有vlan号}}},在access中创建一个access-profile用来定义相关radius参数,并且定义一个地址池access {profile none {authentication-order none; //本次实验无radius认证}address-assignment { //定义要分配的地址池pool addtest {family inet {network 20.1.1.0/24;range r1 {low 20.1.1.1;high 20.1.1.254;} }access-profile none; //在全局下调用上面定义的profile名,拨号测试通过远程桌面连接到测试PC上,创建一个pppoe拨号连接,任意输入一对账号名和密码验证拨号是否成功。
如果拨号成功在MX960上使用show subscribers命令可以看到pp0接口分配到了ip地址常用的troubleshooting命令 test aaa ppp lab1 lab123 show vlan subinterface show subscribers show subscribers extensive show subscribers detail show subscribers summary port show radius statistics,。