實驗拓撲:服務器
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