实验拓扑:服务器
PC直连BRAS。
ide
实验步骤:spa
1.配置地址池:server
root# show access blog
profile none {接口
authentication-order none; 此次实验没有radius认证it
}io
address-assignment {class
pool addtest {test
family inet {
network 192.168.11.0/24;
range 1 {
low 192.168.11.10;
high 192.168.11.250;
}
}
}
}
2.配置动态pppoe配置文件:
pppoe {
interfaces {
pp0 {
unit "$junos-interface-unit" {
ppp-options {
pap;
}
pppoe-options {
underlying-interface "$junos-underlying-interface";
server;
}
family inet {
unnumbered-address lo0.0;
}
}
}
}
}
在pp0接口下关联物理接口,而且做为pppoe的服务器端。
区别于静态配置,$junos这个变量在这里充当了占位符。
$junos-underlying-interface占位符是收到数据包的地方,好比ge-1/0/0。
$junos-interface-unit 是单元的占位符,JUNOS OS在给数据包动态分配UNIT时候自动配置
3.接口调用PPPOE的配置:
root# show interfaces
ge-0/0/0 {
unit 0 {
family pppoe {
access-concentrator mx104-test;
duplicate-protection;
dynamic-profile pppoe;
}
}
}
4.PC拨号:
在MX上检查用户:
[edit]
root# run show subscribers
Interface IP Address/VLAN ID User Name LS:RI
pp0.1073741863 192.168.11.12 1111 default:default