ASR9000 BNG simple configuration

BNG Broadband Network Gateway 意思为用户的接入点,通过它们连接到宽带网络,“它们”指的是网络设备,例如思科的ASR9K 。

本文主要是为了记录下两种最简单的在ASR 9000上部署BNG的配置,IPOE和PPPoE.

IPoE

pool vrf default ipv4 IPSUB
 network 70.70.0.0/16
 exclude 70.70.70.70 0.0.0.0
!
dhcp ipv4
 profile IPSUB server
  pool IPSUB
  default-router 70.70.70.70
 !
 interface Bundle-Ether70.70 server profile IPSUB
 dynamic-template
 type ipsubscriber IPSUB
  ipv4 unnumbered Loopback70
  ipv4 access-group IPSUB ingress
  ipv4 access-group IPSUB egress
 ! 
 ipv4 access-list IPSUB
 5 permit ipv4 any any
interface Bundle-Ether70.70
 ipv4 point-to-point
 ipv4 unnumbered Loopback70
 service-policy type control subscriber POL_IPSUB
 encapsulation dot1q 70
 ipsubscriber ipv4 l2-connected
  initiator dhcp
 !
class-map type control subscriber match-any CLASS_IPSUB
 match protocol dhcpv4 
 end-class-map
! 
policy-map type control subscriber POL_IPSUB
 event session-start match-first
  class type control subscriber CLASS_IPSUB do-until-failure
   1 activate dynamic-template IPSUB
  ! 
 ! 
 end-policy-map
!

PPPoE

pool vrf default ipv4 PPP
 address-range 50.50.0.1 50.50.255.255
 !
dynamic-template
 type ppp PPPoE
  ppp ipcp peer-address pool PPP
  ipv4 unnumbered Loopback50
 !
interface Bundle-Ether70
!
interface Bundle-Ether70.50
 service-policy type control subscriber POL_PPP
 pppoe enable
 encapsulation dot1q 50
!
class-map type control subscriber match-any PPP
 match protocol ppp 
 end-class-map
! 
!
policy-map type control subscriber POL_PPP
 event session-start match-first
  class type control subscriber PPP do-until-failure
   10 activate dynamic-template PPPoE
  ! 
 ! 
 end-policy-map
! 
           

No comments

Comments feed for this article

Reply

Your email address will not be published. Required fields are marked *