BNG Broadband Network Gateway 意思为用户的接入点,通过它们连接到宽带网络,“它们”指的是网络设备,例如思科的ASR9K 。
本文主要是为了记录下两种最简单的在ASR 9000上部署BNG的配置,IPOE和PPPoE.
IPOE
1
pool vrf default ipv4 IPSUB
2
network 70.70.0.0/16
3
exclude 70.70.70.70 0.0.0.0
4
!
5
dhcp ipv4
6
profile IPSUB server
7
pool IPSUB
8
default-router 70.70.70.70
9
!
10
interface Bundle-Ether70.70 server profile IPSUB
11
dynamic-template
12
type ipsubscriber IPSUB
13
ipv4 unnumbered Loopback70
14
ipv4 access-group IPSUB ingress
15
ipv4 access-group IPSUB egress
16
!
17
ipv4 access-list IPSUB
18
5 permit ipv4 any any
19
interface Bundle-Ether70.70
20
ipv4 point-to-point
21
ipv4 unnumbered Loopback70
22
service-policy type control subscriber POL_IPSUB
23
encapsulation dot1q 70
24
ipsubscriber ipv4 l2-connected
25
initiator dhcp
26
!
27
class-map type control subscriber match-any CLASS_IPSUB
28
match protocol dhcpv4
29
end-class-map
30
!
31
policy-map type control subscriber POL_IPSUB
32
event session-start match-first
33
class type control subscriber CLASS_IPSUB do-until-failure
34
1 activate dynamic-template IPSUB
35
!
36
!
37
end-policy-map
38
!
PPPOE
1
pool vrf default ipv4 PPP
2
address-range 50.50.0.1 50.50.255.255
3
!
4
dynamic-template
5
type ppp PPPoE
6
ppp ipcp peer-address pool PPP
7
ipv4 unnumbered Loopback50
8
!
9
interface Bundle-Ether70
10
!
11
interface Bundle-Ether70.50
12
service-policy type control subscriber POL_PPP
13
pppoe enable
14
encapsulation dot1q 50
15
!
16
class-map type control subscriber match-any PPP
17
match protocol ppp
18
end-class-map
19
!
20
!
21
policy-map type control subscriber POL_PPP
22
event session-start match-first
23
class type control subscriber PPP do-until-failure
24
10 activate dynamic-template PPPoE
25
!
26
!
27
end-policy-map
28
!
The blog from Xuxing's Blog. Link: http://imxing.cn/?p=115