MX960BRAS配置手册 联系客服

发布时间 : 星期日 文章MX960BRAS配置手册更新完毕开始阅读11dd4b05ae45b307e87101f69e3143323968f588

dhcp-attributes {

maximum-lease-time 43200;#地址池超时时间 name-server {#DNS地址 202.118.176.2; }

router {

222.27.244.129;#网关地址,lookback地址。 } } } }

3.2.4 接口配置

interfaces { ge-8/2/0 {

flexible-vlan-tagging;#QINQ封装方式,flexible为单双层都可以。 speed 1g;

auto-configure { vlan-ranges {

dynamic-profile dhcp-wlan-vlan {#调用dhcp-wlan-vlan动态配置 accept inet;

ranges {#终结的VLAN ID 214-214; } }

} }

3.3 PPPOE BRAS配置方法

3.3.1 认证服务器配置

access {

profile sbr {

accounting-order radius; #计费方式为radius authentication-order radius;#认证方式为radius radius {

authentication-server 172.16.108.13;#认证服务器IP地址 accounting-server 172.16.108.13;#计费服务器IP地址

12

options {#radius参数

ethernet-port-type-virtual;

accounting-session-id-format decimal; vlan-nas-port-stacked-format; } }

radius-server {#radius server配置 172.16.108.13 { port 1812;

accounting-port 1813;

secret \ source-address 222.27.244.1; } }

accounting {#计费配置 order radius;

immediate-update;

coa-immediate-update; update-interval 10; statistics volume-time; } }

3.3.2 dynamic-profiles配置

dynamic-profiles { pppoe {

predefined-variable-defaults {#默认下发的限速策略,在radius未下发的限速策略时调用 input-filter up4m;

output-filter down4m; }

routing-instances {

\

interface \ any; } } }

interfaces { pp0 {

unit \#动态生成pp子接口 ppp-options { chap; pap; }

pppoe-options {

underlying-interface \#定义pppoe物理接口 server; }

keepalives interval 60;#keepalives心跳报文,在非正常下线需要等待5次心跳报文,用户才能下线。

family inet { filter {

input \#动态调用filter output \ }

13

unnumbered-address \#借用loopback接口转发数据 }

family inet6 {

address $junos-ipv6-address; } } } }

protocols {

router-advertisement {

interface \ link-mtu;

prefix $junos-ipv6-ndra-prefix; } } } }

pppoe-stacked-vlan {#定义不同的动态配置,用于接口调用。 interfaces {

\#接收的接口变量

unit \#接收的子接口变量

vlan-tags outer \#接收的QINQ变量 family pppoe {# 接口类型为pppoe

duplicate-protection;#pppoe安全防护配置

dynamic-profile pppoe;#调用上述pppoe动态配置。 short-cycle-protection { lockout-time-min 1; lockout-time-max 60; } } } } }

}

3.3.3 DHCP配置

1)DHCP地址池配置

access {

group-profile dns {#PPPOE 用户DNS配置 ppp {

primary-dns 202.118.176.2; secondary-dns 202.97.224.69; } }

address-assignment {

14

pool test {#pppoe地址池名称,这个和IPOE不同的是不需要配置那么多,只配置开始和结束地址段。Pppoe的地址池指定为radius下发。只有本地有radius下发的DHCP池名称即可。如果radius下发的地址池本地没有,用户会在住地址池取地址,也就是配置中第一个地址池。 family inet {

network 125.223.124.0/24; range 1 {

low 125.223.124.2; high 125.223.124.254; } } }

3.3.4 接口配置

interfaces { ge-4/2/8 {

flexible-vlan-tagging;

auto-configure {#QINQ封装方式,flexible为单双层都可以 stacked-vlan-ranges {

dynamic-profile pppoe-stacked-vlan {#调用pppoe-stacked-vlan动态配置 accept pppoe;#接收pppoe流量 ranges {#终结的QINQ配置。 any,any; }

15