In your case you need to do QoS pre-classify on your "int tun0" then apply the 
service-policy to the physical interface 

+ for your non-tunnel traffic i.e Internet traffic leaving the physical 
interface then within the same policy have a parent shaper to 5mb where it 
handles traffic into class-default & then a sub-policy is called is for the GRE 
tunnel shaping to 1mb

Where Do I Apply the Service Policy?

You can apply a service policy to either the tunnel interface or to the 
underlying physical interface. The decision of where to apply the policy 
depends on the QoS objectives. It also depends on which header you need to use 
for classification.

Apply the policy to the tunnel interface without qos-preclassify when you want 
to classify packets based on the pre-tunnel header.

Apply the policy to the physical interface without qos-preclassify when you 
want to classify packets based on the post-tunnel header. In addition, apply 
the policy to the physical interface when you want to shape or police all 
traffic belonging to a tunnel, and the physical interface supports several 
tunnels.

Apply the policy to a physical interface and enable qos-preclassify on a tunnel 
interface when you want to classify packets based on the pre-tunnel header.



Example would be:

class-map GRE
 match access-group GRE

policy-map GRE
 class GRE
  shape average 1000000

policy-map QoS
 class class-default
  shape average 5000000
  service-policy GRE

int f0/0
 policy-map QoS

int tun0
 qos-preclassify

Don't forget the HUB end needs a similar overall QoS design applied too

--
BR

Tony

> On 10 May 2014, at 07:49, Imran Ali <[email protected]> wrote:
> 
> HI
> 
> i have  a  Gre vpn  from which we are connecting  our branch office  to HQ .
> 
> our service provider has given us Ethernet  link .  total bandwidth is   5
> mbps.
> 
> 
> LAN-----> FW----->ROUTER---------->INTERNET +GRE
> 
> We have placed  a firewall as  to do nat and routes  internet traffic to
> our internet cloud and routes  all  HQ  traffic to GRE .
> 
> Questions:  how can i reserve my  bandwidth  let  say 1 mb  for GRE and 4
> mb for traffic for internet .
> 
> do i need to use traffic shaping on gre interface or  Ethernet ?
> 
> 
> does router  considers  qos policies  after packets are being encapsulated
> by GRE Header or before ?
> _______________________________________________
> Free CCIE R&S, Collaboration, Data Center, Wireless & Security Videos ::
> 
> iPexpert on YouTube: www.youtube.com/ipexpertinc
_______________________________________________
Free CCIE R&S, Collaboration, Data Center, Wireless & Security Videos ::

iPexpert on YouTube: www.youtube.com/ipexpertinc

Reply via email to