08-25-2017 11:46 AM - edited 03-03-2019 08:37 AM
Hi,
We have created an test environment with a Cisco 7604 with SIP-400 and 2xGE SPA authenticating against freeradius with radius. Customer routers are authenticating with PAP over PPPoE.
So far everything is working perfect, the only thing i can't figure out is how to control bandwith based on customer subscription with radius attributes.
I have searched the internet for hours but i can't find clu to start with.
Probably we have to create policy maps for each bandwith we want to subscribe. And give a user or group in radius some attributes.
Some additional info which might be usefull to point us the right way.
We are a small ISP serving 400 SMB customers public ipv4 adresses over VLANS with a /30 subnet, so 4 ip addresses from our RIPE space for each customer. Now you might know why we want to switch to PPPoE. xDSL is currently out of scope but also might right behind the corner (we control our network not our management team :)
Please feel free to ask some more details or to point us in a complete different direction its just a PoC we are creating.
Solved! Go to Solution.
08-25-2017 02:47 PM
Hi
I guess your poc is based on pppoe with virtual templates and not pppoeoa or pppoeovlan, right?
I'm asking because you can do the same on all of the then but the radius attribute and/or syntax changes.
For pppoe, you need to:
- create your policy-map locally on the router
- add the following Cisco av-pair attribute (26) on your user profile:
cisco-avpair = "sub-qos-policy-in/out=policy-name"
Hope that's help otherwise let me know.
Thanks
PS: Please don't forget to rate and select as validated answer if this answered your question.
08-25-2017 02:47 PM
Hi
I guess your poc is based on pppoe with virtual templates and not pppoeoa or pppoeovlan, right?
I'm asking because you can do the same on all of the then but the radius attribute and/or syntax changes.
For pppoe, you need to:
- create your policy-map locally on the router
- add the following Cisco av-pair attribute (26) on your user profile:
cisco-avpair = "sub-qos-policy-in/out=policy-name"
Hope that's help otherwise let me know.
Thanks
PS: Please don't forget to rate and select as validated answer if this answered your question.
08-25-2017 03:17 PM
Hi Francesco,
Yes Virtual-Template, i started googling last monday and piece by piece built up an PPPoE environment. Currently ATM is out of scope but what would be the advantage or disadvantage to use PPPoEoVLAN, i've have been reading about it but didn't find any pointers how to configure.
This attribute did the trick thought i allready tried but mayby had a typo in the operator column in mysql.
cisco-avpair = "sub-qos-policy-in/out=policy-name"
Current config 7604 sofar:
|-SNIP aaa group server radius RADIUS_SERVER server 10.10.10.10 auth-port 1645 acct-port 1646 ! aaa authentication ppp CPE_USER group RADIUS_SERVER aaa authorization network default group RADIUS_SERVER ! |-SNIP policy-map 50Mb class class-default shape average 50000000 policy-map 10Mb class class-default shape average 10000000 policy-map 50Mb-upload class class-default police cir 50000000 exceed-action drop policy-map 20Mb class class-default shape average 20000000 policy-map 20Mb-upload class class-default police cir 20000000 exceed-action drop policy-map 10Mb-upload class class-default police cir 10000000 exceed-action drop ! bba-group pppoe Anyinternet virtual-template 1 sessions per-mac limit 2 ! interface Loopback0 ip address 200.200.200.200 255.255.255.255 ! interface GigabitEthernet1/1 no ip address shutdown ! interface GigabitEthernet1/2 ip address 192.168.253.10 255.255.255.0 media-type rj45 ! interface GigabitEthernet3/0/0 description SIP-400-Port0 no ip address negotiation auto pppoe enable group Anyinternet ! interface GigabitEthernet3/0/1 no ip address shutdown speed 1000 negotiation auto ! interface Virtual-Template1 ip unnumbered Loopback0 no peer default ip address ppp authentication pap CPE_USER ! interface Vlan1 no ip address shutdown ! router ospf 200 log-adjacency-changes redistribute connected subnets network 192.168.0.0 0.0.0.255 area 200 network 192.168.253.0 0.0.0.255 area 0 network 200.200.200.200 0.0.0.0 area 200 ! ! no ip http server no ip http secure-server ip route 0.0.0.0 0.0.0.0 192.168.253.254 ! ip radius source-interface GigabitEthernet1/2 ! snmp-server community public RO ! radius-server host 10.10.10.10 auth-port 1645 acct-port 1646 key testrouter
08-25-2017 04:55 PM
Hi
Happy that worked!
You can find some links on Cisco.
Here one for pppoeovlan:
There're some restrictions compared to pppoe but some of the restrictions have been enhanced.
1 of the bigest advantage was to connect multiple clients to the same interface and making policies based on the dot1q tag. This means you were able to shape the bandwidth of your physical interface and give the right bandwidth to different clients instead of sharing this global bandwidth.
Thanks
08-13-2019 02:02 PM
12-16-2024 09:07 PM
Up you config for analized
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide