BNG Broadband Network Gateway 意思为用户的接入点,通过它们连接到宽带网络,“它们”指的是网络设备,例如思科的ASR9K 。
本文主要是为了记录下两种最简单的在ASR 9000上部署BNG的配置,IPOE和PPPoE.
IPOE
1
pool vrf default ipv4 IPSUB2
network 70.70.0.0/163
exclude 70.70.70.70 0.0.0.04
!5
dhcp ipv46
profile IPSUB server7
pool IPSUB8
default-router 70.70.70.709
!10
interface Bundle-Ether70.70 server profile IPSUB11
dynamic-template12
type ipsubscriber IPSUB13
ipv4 unnumbered Loopback7014
ipv4 access-group IPSUB ingress15
ipv4 access-group IPSUB egress16
! 17
ipv4 access-list IPSUB18
5 permit ipv4 any any19
interface Bundle-Ether70.7020
ipv4 point-to-point21
ipv4 unnumbered Loopback7022
service-policy type control subscriber POL_IPSUB23
encapsulation dot1q 7024
ipsubscriber ipv4 l2-connected25
initiator dhcp26
!27
class-map type control subscriber match-any CLASS_IPSUB28
match protocol dhcpv4 29
end-class-map30
! 31
policy-map type control subscriber POL_IPSUB32
event session-start match-first33
class type control subscriber CLASS_IPSUB do-until-failure34
1 activate dynamic-template IPSUB35
! 36
! 37
end-policy-map38
!PPPOE
1
pool vrf default ipv4 PPP2
address-range 50.50.0.1 50.50.255.2553
!4
dynamic-template5
type ppp PPPoE6
ppp ipcp peer-address pool PPP7
ipv4 unnumbered Loopback508
!9
interface Bundle-Ether7010
!11
interface Bundle-Ether70.5012
service-policy type control subscriber POL_PPP13
pppoe enable14
encapsulation dot1q 5015
!16
class-map type control subscriber match-any PPP17
match protocol ppp 18
end-class-map19
! 20
!21
policy-map type control subscriber POL_PPP22
event session-start match-first23
class type control subscriber PPP do-until-failure24
10 activate dynamic-template PPPoE25
! 26
! 27
end-policy-map28
! 
The blog from Xuxing's Blog. Link: http://imxing.cn/?p=115