NAT64: Move IPv6-IPv4 virtual reassembly code from MAP-T to common library (VPP-708)
[vpp.git] / src / vnet / sr / sr_steering.md
1 # Steering packets into a SR Policy     {#srv6_steering_doc}
2
3 To steer packets in Transit into an SR policy (T.Insert, T.Encaps and T.Encaps.L2 behaviors), the user needs to create an 'sr steering policy'.
4
5     sr steer l3 2001::/64 via sr policy index 1
6     sr steer l3 2001::/64 via sr policy bsid cafe::1
7     sr steer l3 2001::/64 via sr policy bsid cafe::1 fib-table 3
8     sr steer l3 10.0.0.0/16 via sr policy bsid cafe::1
9     sr steer l2 TenGE0/1/0 via sr policy bsid cafe::1
10
11 Disclaimer: The T.Encaps.L2 will steer L2 frames into an SR Policy. Notice that creating an SR steering policy for L2 frames will actually automatically *put the interface into promiscous mode*.