Do you use MPLS Traffic engineering in your network? If so, then you could either setup parallel tunnels and do load sharing (cef even allows to do unequal bandwidth loadsharing) or you can use PBR in a plain MPLS environment, i.e. no MPLS VPNs. If MPLS VPNs are involved, the whole story gets more complicated, but can also be done.
It really depends on what exactly you would like to achieve and what your network looks like. Can you provide more detailed information?
You will not be able to map traffic from a combination of source address and source port, as its not a valid FEC.
But to somewhat achieve the same you can try to step a little back and think of the managed CPE concept, where in you would be able to classify the ingress traffic entering the ingress PE. Here you can use your source address/port combination to map it to the appropriate PREC/DSCP, and the same gets mapped to the appropriate EXP value when it enters the PE, and there onwards you have the class based tunnel.
But the drawback is you can derive only as many number of combinations as the EXP values, which is 8. Which is true for any other traffic as well.
I believe this can be the closest in terms of putting a certain traffic with source address/port combination onto an LSP.
In the original post you mentioned wanting to do a source address/port based selection.
(port : I have assumed higher transmission ports and not physical ports)
But using this static route you would be doing a destination based selection.
So all traffic going towards that subnet 192.168.0.0/24 would go via the tunnel 1.
Using policy based routing you cannot influence VRF traffic. Only normal transit traffic.
To use policy based routing for VRF, you will have to create additional loopbacks per PE and manipulate the RT values received to point to this next-hop(new loopbacks created). You will be creating tunnels as usual with a static route pointing at each end to this new loopback via the tunnel.
So to sum it up, what needs to be achieved the appropriate solution would depend on that.
Thanks for your very clear response, I became to understand a little more how work traffic selection.
So the only mean to do a traffic selection is
to do a source based selection in using static route.
Or, do a class based selection in using class-based tunnel selection. I must use PBS in this case.Is it right?
But in case of, i need to use 8 values of EXP field to differenciate trafic type (mapping EF, AF.. class) for Qos and in a same case I want to do a source based selection (i.e : map trafic from LAN1 in LSP1, map trafic from LAN2 in LSP2...), how can I proceed?
3) For all traffic from a certain VRF and going to a destination PE you can use the RT manipulation with a Tunnel selection with static route.
4) options 1, 2 and 3 are destination based for source based you have only option of the EXP values, like you can map your actual source address/port to a certain EXP and then map that EXP onto an LSP using the "Class Based Tunnel Selection" But you have only 8 classifications available for the whole PE.
5) This option gives you the flexibility to assign a VRF to incoming traffic based on source IP address "VRF selection using PBR"
Thank you very much for all your responses Swaroop.
Traffic selection appear to be much more difficult than what I thought.
So I still need some clarifications:
In the case or I have two LAN (LAN1->192.168.0.0 and LAN2->100.100.100.0) connected to PE1. I created LSP1 which link PE1 and PE2. So If a want that only trafic from LAN1 use LSP1, I must use the next command :
ip route 192.168.0.0 255.255.255.0 Tunnel1
And If a want that ALL traffic use this LSP, I can use the next command :
tunnel mpls traffic-eng autoroute announce.
Is it all right?
2) Can I use the command "ip route" (static method) to reduct utilization of my LSP (source based differenciation) and in a same time use the command "tunnel mpls traffic-eng exp" (class based tunnel selection) in order to reduct trafic of the LSP according to its type.
3) Does the last option you explain me "VRF selection using PBR" allow to use CBTS in a same time?
1. Introduction Internet security is important with the increasing
attacks that are happening every day. Many internet and browsing
security solutions exist, but some are not very easy to use or maybe the
question is how can I enable them? In this referen...
Cisco Software Manager Server API Guide This document describes the
programmatic interfaces, RESTful APIs, which are supported by Cisco
Software Manager Server (CSM Server). Overview CSM Server supports a set
of finite RESTful APIs. The first step to use ...
If you are using Cisco's new linux-based Cisco Software Manager server,
then you probably want to make sure there is a startup service for
it.I'll assume that you've already installed the CSM server on a
systemd-based linux system. The commands given belo...