08-05-2004 07:42 AM - edited 03-02-2019 05:33 PM
I have been trying to traffic shape individual PPPoE sessions using a Virtual-Template and it's not working. I've tried this using, 'traffic-shape rate' and 'service-policy' and it excepts the configuration but doesn't seem to shape the sessions. I found the documentation for both methods on the Cisco web site and apparently this can be done.
I found something that I think may be causing problems but I'm not sure. I believe that when a PPPoE session is established it creates a subinterface off the Virtual-Template. I have used the, 'test virtual-template 1 subinterface' command it says the router supports subinterfaces. The strange thing is according to the documentation I should see the subinterface specific configuration for the traffic shaping under the subinterface but I don't.
Has anyone set this up before and do you have any idea how I can get this working?
08-05-2004 12:32 PM
Hello Michael,
can you post your configuration, including the traffic shaping you have configured ?
Regards,
Georg
08-06-2004 02:57 AM
CPR00227-test#show version
Cisco IOS Software, C2600 Software (C2600-TELCO-M), Version 12.3(7)T3, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2004 by Cisco Systems, Inc.
Compiled Mon 19-Jul-04 19:37 by eaarmas
ROM: System Bootstrap, Version 12.2(8r) [cmong 8r], RELEASE SOFTWARE (fc1)
CPR00227-test uptime is 3 days, 18 hours, 9 minutes
System returned to ROM by power-on
System image file is "flash:c2600-telco-mz.123-7.T3.bin"
Cisco 2621XM (MPC860P) processor (revision 0x200) with 89088K/9216K bytes of memory.
Processor board ID JAE07480SJL (1977444283)
M860 processor: part number 5, mask 2
2 FastEthernet interfaces
1 Serial interface
32K bytes of NVRAM.
49152K bytes of processor board System flash (Read/Write)
Configuration register is 0x2102
This image supports System Controller functionality
---
Using the, 'traffic-shape rate' method:
vpdn enable
vpdn source-ip 10.1.1.1
subscriber profile my_service_list
pppoe service isp1.co.uk
!
bba-group pppoe my_service_list
virtual-template 1
service profile my_service_list
!
interface FastEthernet0/1
description Wireless LAN
no ip address
duplex auto
speed auto
pppoe enable group my_service_list
no cdp enable
!
interface Virtual-Template1
description PPPoE Session
mtu 1492
bandwidth 512
ip unnumbered Loopback0
traffic-shape rate 512000 8000 8000 1000
no peer default ip address
no keepalive
!
---
Using the, 'service policy' method:
vpdn enable
vpdn source-ip 10.1.1.1
subscriber profile my_service_list
pppoe service isp1.co.uk
!
policy-map PPPoE-SESSION-TRAFFIC
class class-default
police cir 512000 bc 96000 be 192000
conform-action transmit
exceed-action drop
violate-action drop
!
bba-group pppoe my_service_list
virtual-template 1
service profile my_service_list
!
interface FastEthernet0/1
description Wireless LAN
no ip address
duplex auto
speed auto
pppoe enable group my_service_list
no cdp enable
!
interface Virtual-Template1
description PPPoE Session
mtu 1492
bandwidth 512
ip unnumbered Loopback0
service-policy input PPPoE-SESSION-TRAFFIC
service-policy output PPPoE-SESSION-TRAFFIC
no peer default ip address
no keepalive
!
---
In the tests we have done our PPPoE sessions max out at 2 meg. We would like them to be restricted to 512k.
The documentation I found describing the, 'traffic-shape rate' configuration states I should see the traffic shaping subinterface specific configuration, but I'm not. I do however see that Virtual-Template subinterfaces are supported so this should be working.
Cisco URL:
What the document says I should be seeing:
---
Examples
The following example tests virtual template 1 to determine if it can support subinterfaces. The output shows that the traffic-shape rate 50000 8000 8000 1000 command that is configured on virtual template 1 prevents the virtual template from being able to support subinterfaces.
Router# test virtual-template 1 subinterface
Subinterfaces cannot be created using Virtual-Template1
Interface specific commands:
traffic-shape rate 50000 8000 8000 1000
---
What I'm seeing:
CPR00227-test#test virtual-template 1 subinterface
Subinterfaces may be created using Virtual-Template1
CPR00227-test#
I'm not seeing the, 'Interface specific commands' which I think is the problem here. For some reason when the subinterface is created when the PPPoE session is established it's not carrying through the traffic shaping configuration.
Any ideas?
08-06-2004 04:30 AM
Hello,
try and configure the service policy under your physical FastEthernet0/1 interface:
interface FastEthernet0/1
description Wireless LAN
no ip address
duplex auto
speed auto
pppoe enable group my_service_list
--> service-policy output PPPoE-SESSION-TRAFFIC
no cdp enable
Regards,
GP
08-06-2004 05:11 AM
If I do that I will limit bandwidth for the entire interface. ie. All PPPoE sessions.
I want to traffic shape each individual PPPoE session. Each session will use a subinterface off the Virtual-Template.
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