8. Appendix: complete configurationΒΆ
Listed here is the CLI commands code-block for the configuration discussed in this use case for the Dual Stack (IPv4 & IPv6) bng-pppoe
bng-pppoe> show config nodefault
vrf oob
interface
physical mgmt
ipv4
dhcp
..
..
port pci-b0s6
..
..
..
..
vrf main
dns-server
use-system-servers false
record bng.com 8.8.8.8
record bngv6.com 8888::8888
..
interface
physical radius
ipv4
address 172.20.1.254/24
..
description bng-pppoe_to-Radius
port pci-b0s4
..
physical access
description bng-pppoe_to-CPEs
port pci-b0s3
qos
egress
scheduler scheduler-1
..
..
..
physical internet
ipv4
address 109.254.1.1/24
..
description bng-pppoe_to-Internet
port pci-b0s5
ipv6
address 2001:db8::1/64
..
..
loopback dns
ipv4
address 1.1.1.1/32
..
ipv6
address 1::1/128
..
..
..
nat
source-rule 1 outbound-interface internet translate-to output-address
..
ppp-server
instance BNG1
log-level debug
ppp
verbose true
ipv6cp allow
lcp
echo-interval 3
echo-failure 3
..
..
pppoe
verbose true
interface access
..
..
auth
radius
server address 172.20.1.253 auth-port 1812 acct-port 1813 secret 5ecret123
default-local-ip 100.64.0.1
change-of-authorization-server
secret 5ecret123
..
nas
ip-address 172.20.1.254
identifier 172.20.1.254
..
accounting
interim-interval 2
session-id-in-authentication true
..
..
..
qos
default-template non-premium-subscribers
template non-premium-subscribers
base-scheduler scheduler-1
queue non-prem
static-parent 3
bandwidth 4M
ceiling 1G
..
queue non-prem-data
dynamic-parent non-prem
mark 0x0
bandwidth 1M
ceiling 1G
..
queue non-prem-voip
dynamic-parent non-prem
mark 0x1
bandwidth 3M
ceiling 1G
..
..
template premium-subscribers
base-scheduler scheduler-1
queue prem
static-parent 2
bandwidth 7M
ceiling 2G
..
queue prem-data
dynamic-parent prem
mark 0x0
bandwidth 2M
ceiling 2G
..
queue prem-voip
dynamic-parent prem
mark 0x1
bandwidth 5M
ceiling 2G
..
..
..
..
..
routing
bgp
as 65222
ebgp-requires-policy false
address-family
ipv4-unicast
redistribute static
..
ipv6-unicast
redistribute connected
..
..
neighbor 109.254.1.2
remote-as 65123
address-family
ipv4-unicast
..
ipv6-unicast
enabled false
..
..
..
neighbor 2001:db8::2
remote-as 65123
address-family
ipv4-unicast
enabled false
..
ipv6-unicast
..
..
..
..
..
..
qos
scheduler scheduler-1
htb
default-queue 4
queue 1
bandwidth 40G
ceiling 40G
child-queue 3
child-queue 4
..
queue 2
description "This is the static parent quequ for premium subscribers queques"
bandwidth 30G
ceiling 40G
..
queue 3
description "This is the static parent queue for non-premium subscribers queues"
bandwidth 10G
ceiling 40G
ceiling-priority 2
..
queue 4
description "This is the default queue"
bandwidth 10K
ceiling 10
ceiling-priority 9
..
..
..
..
system
hostname bng-pppoe
fast-path
port pci-b0s3
port pci-b0s4
port pci-b0s5
..
license
online
serial XXXXXXXX
vrf oob
..
..
..
Here is the configuration of the IPoE v4 BNG router node: BNG-IPOE
BNG-IPOE> show config nodefault
vrf oob
interface
physical mgmt
ipv4
dhcp
..
..
port pci-b0s3
..
..
..
..
vrf main
dns
..
dns-server
use-system-servers false
record bng.com 8.8.8.8
record bngv6.com 8888::8888
record internet2.com 2.2.2.2
record internet1.com 1.1.1.1
record bng.fr 4.4.4.4
record 100.com 100.100.100.100
record 200.com 200.200.200.200
..
interface
physical internet
ipv4
address 109.254.1.1/24
..
port pci-b0s5
ipv6
address 2001:db8::1/64
..
..
physical ipoe
port pci-b0s7
..
loopback dns
ipv4
address 1.1.1.1/32
..
ipv6
address 1::1/128
..
..
vlan ipoe.100
ipv4
address 100.100.0.1/24
..
vlan-id 100
link-interface ipoe
..
..
ipoe-server
dhcp-relay
interface ipoe.100
agent-information
relay-address 109.254.1.1
remote-id
global test123
..
link-selection 100.100.0.1
..
router 100.100.0.1
..
server 109.254.1.2
..
..
nat
source-rule 1 source address 100.100.0.100/32 outbound-interface internet translate-to output-address
source-rule 2 source address 100.100.0.101/32 outbound-interface internet translate-to output-address
..
routing
static
ipv6-route ::/0
next-hop 2001:db8::2
..
..
bgp
as 65222
ebgp-requires-policy false
address-family
ipv4-unicast
redistribute static
..
ipv6-unicast
redistribute connected
..
..
neighbor 2001:db8::2
remote-as 65123
address-family
ipv4-unicast
enabled false
..
ipv6-unicast
..
..
..
neighbor 109.254.1.2
remote-as 65123
address-family
ipv4-unicast
..
..
..
..
..
..
system
hostname BNG-IPOE
cloud-init
enabled false
..
fast-path
port pci-b0s4
port pci-b0s5
port pci-b0s7
..
license
online
serial XXXXXXXX
vrf oob
..
..
..
Here is the full configuration of the CPE PPPoE Routers: CPE1 and CPE2
CPE1> show config nodefault
vrf oob
interface
physical mgmt
ipv4
dhcp
..
..
port pci-b0s3
..
..
..
vrf main
dhcp
server
subnet 192.168.1.0/24
interface lan
default-gateway 192.168.1.1
range 192.168.1.10 192.168.1.100
dhcp-options
domain-name-server 192.168.1.1
..
..
..
..
dns
proxy
..
..
interface
physical wan
port pci-b0s4
..
physical lan
ipv4
address 192.168.1.1/24
..
port pci-b0s5
ipv6
address 2000:0:0:106::1/64
..
..
pppoe pppoe-wan
link-interface wan
auth
user cpe1
secret cpe1
..
request domain-name-servers
lcp
echo-interval 3
echo-failure 3
..
..
..
ipv6-autoconf
enabled true
interface lan
default-lifetime 1800
prefix 2000:0:0:106::/64
..
..
..
nat
source-rule 1 outbound-interface pppoe-wan translate-to output-address
..
routing
static
ipv4-route 0.0.0.0/0
next-hop pppoe-wan
..
ipv6-route ::/0
next-hop pppoe-wan
..
..
..
..
system
hostname CPE1
license
online
serial XXXXXXXX
vrf oob
..
..
..
Here is the full configuration of the CPE IPoE Routers: CPE3 and CPE4
CPE3> show config nodefault
vrf oob
interface
physical mgmt
ipv4
dhcp
..
..
port pci-b0s3
..
..
..
vrf main
dhcp
server
subnet 192.168.1.0/24
interface lan
default-gateway 192.168.1.1
range 192.168.1.100 192.168.1.200
dhcp-options
domain-name-server 100.100.0.1
..
..
..
..
dns
proxy
..
..
interface
physical wan
port pci-b0s4
..
physical lan
ipv4
address 192.168.1.1/24
..
port pci-b0s5
ipv6
address 2000:0:0:106::1/64
..
..
vlan wan.100
ipv4
dhcp
..
..
vlan-id 100
link-interface wan
..
..
ipv6-autoconf
enabled true
interface lan
default-lifetime 1800
prefix 2000:0:0:106::/64
..
..
..
nat
source-rule 1 source address 192.168.1.0/24 outbound-interface wan.100 translate-to output-address
..
routing
static
ipv4-route 0.0.0.0/0
next-hop wan.100
..
ipv6-route ::/0
next-hop wan.100
..
..
..
..
system
hostname CPE3
fast-path
port pci-b0s4
port pci-b0s5
..
license
online
serial XXXXXXXX
vrf oob
..
..
..
Here is the full configuration for the internet router within the PPPoE use case: Internet-PPPoE
Internet-PPPoE> show config nodefault
vrf oob
interface
physical mgmt
ipv4
dhcp
..
..
port pci-b0s3
..
..
..
vrf main
interface
physical bng
ipv4
address 109.254.1.2/24
..
port pci-b0s4
ipv6
address 2001:db8::2/64
..
..
loopback google
ipv4
address 8.8.8.8/32
..
ipv6
address 8888::8888/128
..
..
..
routing
bgp
as 65123
ebgp-requires-policy false
neighbor 2001:db8::1
remote-as 65222
address-family
ipv4-unicast
enabled false
..
ipv6-unicast
..
..
..
neighbor 109.254.1.1
remote-as 65222
..
..
..
..
system
hostname Internet-PPPoE
license
online
serial XXXXXXXX
vrf oob
..
..
..
Here is the full configuration for the internet router within the IPoE use case: Internet-IPoE
Internet-IPoE> show config nodefault
vrf oob
interface
physical mgmt
ipv4
dhcp
..
..
port pci-b0s3
..
..
..
vrf main
dhcp
server
dhcp-options
domain-name-server 109.254.1.1
..
subnet 100.100.0.0/24
interface bng
default-gateway 100.100.0.1
range 100.100.0.100 100.100.0.200
..
..
..
interface
physical bng
ipv4
address 109.254.1.2/24
..
port pci-b0s4
ipv6
address 2001:db8::2/64
..
..
loopback google
ipv4
address 8.8.8.8/32
address 4.4.4.4/32
..
ipv6
address 8888::8888/128
address 4444::4444/128
..
..
loopback internet
ipv4
address 200.200.200.200/32
address 100.100.100.100/32
address 1.1.1.1/32
address 2.2.2.2/32
address 3.3.3.3/32
address 10.10.10.10/32
address 20.20.20.20/32
..
..
..
routing
static
ipv4-route 0.0.0.0/0
next-hop blackhole
..
..
bgp
as 65123
ebgp-requires-policy false
address-family
ipv4-unicast
redistribute connected
..
..
neighbor 2001:db8::1
remote-as 65222
address-family
ipv4-unicast
enabled false
..
ipv6-unicast
..
..
..
neighbor 109.254.1.1
remote-as 65222
address-family
ipv4-unicast
default-originate
..
..
..
..
..
..
..
system
hostname Internet-IPoE
fast-path
port pci-b0s4
..
license
online
serial XXXXXXXX
vrf oob
..
..
..