J-PBR - sourceMACrewrite (DONE)
J-PBR - sourceMACrewrite (DONE)
J-PBR - sourceMACrewrite (DONE)
0 release
PBR Source MAC rewrite
Minako Higuchi
Technical Marketing Engineer, INSBU
Last update: 03/09/2020
Overview
• ACI PBR rewrites destination MAC to make traffic go to a service
device but doesn’t change source MAC. Thus the service node sees
the source MAC address of the source endpoint, which could cause a
problem if the service node uses “source MAC based forwarding”
instead of IP based forwarding.
• This is the feature enhancement to provide an option to change
source MAC to service BD SVI MAC.
• Consideration: When enabling source MAC rewrite feature, it requires that
service BD uses the reserved default BD MAC.
© 2015 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 2
Source MAC based forwarding
• This is typically used to avoid asymmetric path or to simplify routing
configuration in the service device as it doesn’t have to rely on
routing.
• Each vendor has different terminology for the feature
• F5: Auto Last Hop
• Citrix: MAC-Based Forwarding (MBF)
© 2015 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 3
Design and configuration considerations
• When enabling source MAC rewrite feature, it requires that service
BD uses the reserved default BD MAC (00:22:bd:f8:19:ff). Custom
MAC can’t be used in the service BD.
• APIC has validation to make sure the service BD using default BD MAC. If
not, service graph rendering is failed and APIC raises a fault.
• This feature is supported on 2nd gen leaf onward, not on 1st gen.
• Source MAC rewrite option is at PBR policy level. If same PBR
destination IP is used in different PBR policies with inconsistent
source MAC rewrite configuration: one with disabled and the other
with enabled, Source MAC rewrite is enabled.
© 2015 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 4
Default setting
© 2015 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5
In this case, source MAC rewrite is NOT enabled
© 2015 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 6
VRF1
In this case, source MAC rewrite is NOT enabled
© 2015 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8
Topology
EPG EPG
PBR device
Web App
© 2015 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9
VRF1
In this case, source MAC rewrite is enabled
Src IP: 192.168.1.1 *Source MAC for the flow is Leaf BD-MAC
Src MAC: Leaf BD-MAC
Dest IP: 192.168.1.2
Dest MAC: PBR-MAC
© 2015 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 10
VRF1
Traffic flow (return traffic) Source MAC rewrite is not
mandatory for this direction
in this example.
2: policy applied (PBR)
5: Routing to consumer ToR Src IP: 192.168..1.2
DL (Don’t Learn Bit): 1 Src MAC: Leaf BD-MAC
Dest IP: 192.168.1.1 1: traffic from App to Web
6: traffic to Web Dest MAC: PBR-MAC Src class: App
Src IP: 192.168.1.2 Segment ID: Service-BD Dest Class: Web
Src MAC: Leaf BD-MAC
Dest IP: 192.168.1.1 Src IP: 192.168.1.2
Dest MAC: Web-MAC Src MAC: App-MAC
Dest IP: 192.168.1.1
Dest MAC: Web-MAC
© 2015 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 11
VRF1
New option
© 2015 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12
Topology
192.168.100.100 192.168.200.100
EPG EPG
PBR-MAC-con PBR-MAC-prov
Web DB
Shadow EPG Shadow EPG
192.168.1.1/24 Svc-consumer Svc-provider 192.168.2.1/24
MAC: Web-MAC MAC: DB-MAC
VRF1
© 2015 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 13
In this case, source MAC rewrite is enabled
© 2015 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 14
Traffic flow (return traffic) Source MAC rewrite is not
mandatory for this direction
in this example.
© 2015 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 15
In this case, source MAC rewrite is not required because
source (Web) and PBR device are in same BD
One-arm design
Traffic flow example
One BD for consumer, provider and service
© 2015 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 16
In this case, source MAC rewrite is not required because
source (Web) and PBR device are in same BD
Topology
BD1 (192.168.1.254/24)
EPG EPG
PBR device
Web App
© 2015 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 17
VRF1
In this case, source MAC rewrite is NOT enabled
BD1 (192.168.1.254/24)
© 2015 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 18
VRF1
In this case, source MAC rewrite is NOT enabled
BD1 (192.168.1.254/24)
© 2015 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 19
VRF1
Configuration
© 2015 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 20
ACI configuration
© 2015 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 21
Sample F5 configuration for test
Just for
forwarding.
All VLANs
No SNAT
© 2015 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 22