DCI Verification
For the DCI verification, the Inter-VLAN, Intra-VLAN and Inter-VRF flows are discussed here, so we can understand the path taken for the scenarios. For more information on VLAN Grouping used for test setup refer to Table 1.
Type 2 – Type 5 Seamless Stitching: Intra-VLAN Route Verification
(3-stage single leaf1--> 5-stage compute leaf1)
Below is a flow walkthrough for the Intra-VLAN. The route chosen is Type2. As an example, the VLAN and the host IPs from DC1 and DC4 are provided here.
Blue VRF, vlan 1400 source 10.10.0.10 (DC1), vlan 1400 destination 10.10.0.85 (DC4)
- MAC-IP route for 10.10.0.85 is present in ethernet-switching
table for the evpn-1 mac-vrf instance, in DC1.
regress@dc1-single-001-leaf1> show ethernet-switching mac-ip-table instance evpn-1 vlan-name vn1400 | match 10.10.0.85 10.10.0.85 00:10:94:0a:00:55 DR,K,RTS esi.4584 00:02:ff:00:00:00:01:00:00:01
- The bgp.evpn route table Type2 route received from each 3stage
border leaf switches (below shows loopback IP of both border leaf
switches, VNI11400.
regress@dc1-single-001-leaf1> show route table evpn-1.evpn.0 | match 10.10.0.85 2:192.168.255.2:65534::11400::00:10:94:0a:00:55::10.10.0.85/304 MAC/IP 2:192.168.255.3:65534::11400::00:10:94:0a:00:55::10.10.0.85/304 MAC/IP
- On 3-stage Borderleaf 1, the translation vni is configured for
11400.
regress@dc1-borderleaf-001-leaf1-re0> show configuration | display set | match 41400 set routing-instances evpn-1 protocols evpn interconnect interconnected-vni-list 41400 set routing-instances evpn-1 vlans vn1400 vxlan translation-vni 41400
- Border leaf switch learns about host IP 10.10.0.85 from the
5-stage border leaf switch via the DCI overlay (note the
translation VNI 41400).
regress@dc1-borderleaf-001-leaf1-re0> show route table evpn-1.evpn.0 | match 10.10.0.85 2:192.168.252.8:65533::41400::00:10:94:0a:00:55::10.10.0.85/304 MAC/IP regress@dc1-borderleaf-001-leaf1-re0> show route table evpn-1.evpn.0 match-prefix 2:192.168.252.8:65533::41400::00:10:94:0a:00:55::10.10.0.85 detail evpn-1.evpn.0: 21747 destinations, 31920 routes (21747 active, 0 holddown, 0 hidden) Restart Complete 2:192.168.252.8:65533::41400::00:10:94:0a:00:55::10.10.0.85/304 MAC/IP (1 entry, 1 announced) *BGP Preference: 170/-101 Route Distinguisher: 192.168.252.8:65533 Next hop type: Indirect, Next hop index: 0 Address: 0x55dfe0bb153c Next-hop reference count: 130 Kernel Table Id: 0 Source: 192.168.252.8 <<<< Loopback IP of DC4 border leaf switch1 Protocol next hop: 192.168.252.8 Label operation: Push 41400 Label TTL action: prop-ttl Load balance label: Label 41400: None; Indirect next hop: 0x2 no-forward INH Session ID: 0 Indirect next hop: INH non-key opaque: (nil) INH key opaque: (nil) State: <Secondary Active Ext> Local AS: 64514 Peer AS: 64708 Age: 1:24:48 Metric2: 0 Validation State: unverified Task: BGP_64708.192.168.252.8 Announcement bits (1): 0-evpn-1-evpn AS path: 64708 I Communities: 3:20001 21000:26000 no-advertise target:65655L:1 encapsulation:vxlan(0x8) Import Accepted Route Label: 41400 <<<< Translation VNI ESI: 00:08:ff:00:00:00:01:00:00:01 Localpref: 100 Router ID: 192.168.252.8 Primary Routing Table: bgp.evpn.0 Thread: junos-main
Type 2 – Type 5 Seamless Stitching: Inter-VLAN Flow Walkthrough
(3-stage leaf1 --> 5-stage compute leaf1)
Below is a flow walkthrough for the Inter-VLAN. The route chosen is Type 5. As an example, the VLAN and the host IPs from DC1 and DC4. Note that the VLANs are different.
Red VRF, vlan 1000 source 10.1.0.10 (DC1), vlan 1200 destination 10.4.0.85 (DC4)
- MAC-IP route is NOT present on 3stage leaf1 because vlan 1200
is not present on the leaf in DC1
regress@dc1-single-001-leaf1> show route table evpn-1.evpn.0 | match 10.4.0.85
- Type 5 route is present in RED VRF, learned via 3-stage DC1
border leaf switches. Loopback 192.168.255.2 and 192.168.255.3 are
loopback IPs of DC1 border leaf switches.
regress@dc1-single-001-leaf1> show route table red.evpn.0 | match 10.4.0.85 Feb 21 08:42:43 5:192.168.255.2:2::0::10.4.0.85::32/248 5:192.168.255.3:2::0::10.4.0.85::32/248
- BGP evpn route in detail shows Type 5 route, VNI 20001.
regress@dc1-single-001-leaf1> show route table bgp.evpn.0 match-prefix 5:192.168.255.2:2::0::10.4.0.85* extensive Feb 21 08:47:42 bgp.evpn.0: 21141 destinations, 39836 routes (21141 active, 0 holddown, 0 hidden) Restart Complete 5:192.168.255.2:2::0::10.4.0.85::32/248 (2 entries, 1 announced) *BGP Preference: 170/-101 Route Distinguisher: 192.168.255.2:2 Next hop type: Indirect, Next hop index: 0 Address: 0x7648c14 Next-hop reference count: 3896 Kernel Table Id: 0 Source: 192.168.255.0 Protocol next hop: 192.168.255.2 Label operation: Push 20001 …(output truncated) Route Label: 20001 <<<<< Red VRF VNI ID Overlay gateway address: 0.0.0.0 ESI 00:00:00:00:00:00:00:00:00:00 Localpref: 100 Router ID: 192.168.255.0 Primary Routing Table: bgp.evpn.0 Thread: junos-main Indirect next hops: 1 Protocol next hop: 192.168.255.2 ResolvState: Resolved Label operation: Push 20001 Label TTL action: prop-ttl Load balance label: Label 20001: None; Indirect next hop: 0x2 no-forward INH Session ID: 0 Indirect next hop: INH non-key opaque: 0x0 INH key opaque: 0x0 Indirect path forwarding next hops: 2 Next hop type: Router Next hop: 10.0.1.8 via et-0/0/48.0 Session Id: 0 Next hop: 10.0.1.18 via et-0/0/49.0 Session Id: 0 192.168.255.2/32 Originating RIB: inet.0 Node path count: 1 Forwarding nexthops: 2 Next hop type: Router Next hop: 10.0.1.8 via et-0/0/48.0 Session Id: 0 Next hop: 10.0.1.18 via et-0/0/49.0 Session Id: 0 BGP Preference: 170/-101 Route Distinguisher: 192.168.255.2:2 Next hop type: Indirect, Next hop index: 0 Address: 0x7648c14 Next-hop reference count: 3896 Kernel Table Id: 0 Source: 192.168.255.1 Protocol next hop: 192.168.255.2 Label operation: Push 20001 Label TTL action: prop-ttl Load balance label: Label 20001: None; Indirect next hop: 0x2 no-forward INH Session ID: 0 Indirect next hop: INH non-key opaque: 0x0 INH key opaque: 0x0 State: <Secondary Ext> Inactive reason: Active preferred Local AS: 64518 Peer AS: 64513 Age: 1:33:11 Metric2: 0 Validation State: unverified Task: BGP_64513.192.168.255.1 AS path: 64513 64514 64708 64706 64701 64702 64704 I Communities: 0:14 3:20001 21000:26000 target:20001:1 encapsulation:vxlan(0x8) router-mac:d4:99:6c:7f:71:df Import Accepted Route Label: 20001 Overlay gateway address: 0.0.0.0 ESI 00:00:00:00:00:00:00:00:00:00 Localpref: 100 Router ID: 192.168.255.1 Primary Routing Table: bgp.evpn.0 Thread: junos-main Indirect next hops: 1 Protocol next hop: 192.168.255.2 ResolvState: Resolved Label operation: Push 20001 Label TTL action: prop-ttl Load balance label: Label 20001: None; Indirect next hop: 0x2 no-forward INH Session ID: 0 Indirect next hop: INH non-key opaque: 0x0 INH key opaque: 0x0 Indirect path forwarding next hops: 2 Next hop type: Router Next hop: 10.0.1.8 via et-0/0/48.0 Session Id: 0 Next hop: 10.0.1.18 via et-0/0/49.0 Session Id: 0 192.168.255.2/32 Originating RIB: inet.0 Node path count: 1 Forwarding nexthops: 2 Next hop type: Router Next hop: 10.0.1.8 via et-0/0/48.0 Session Id: 0 Next hop: 10.0.1.18 via et-0/0/49.0 Session Id: 0
- As seen in previous steps, Type 5 VNI is 20001. Configuration
snippets show Red VRF Type 5 VNI.
regress@dc1-single-001-leaf1> show configuration | display set | match 20001 Feb 21 08:45:21 set routing-instances red protocols evpn ip-prefix-routes vni 20001 set routing-instances red vrf-target target:20001:1
- Notice that the 3-stage border leaf switch1 (DC1) receives both
Type 2 and Type 5 route for host via the DCI BGP overlay. The Type
2 route would be rejected by 3-stage Leaf1 because vlan 1200 is not
present.
regress@dc1-borderleaf-001-leaf1-re0> show route table bgp.evpn.0 | match 10.4.0.85 Feb 21 08:50:33 2:192.168.252.8:65533::11200::00:10:94:04:00:55::10.4.0.85/304 MAC/IP 5:192.168.252.8:65531::0::10.4.0.85::32/248
- Border leaf switch1 uses the Type 5 route from red VRF to route
traffic towards DC4.
regress@dc1-borderleaf-001-leaf1-re0> show route 10.4.0.85 table red.inet.0 extensive Feb 21 08:51:59 red.inet.0: 1665 destinations, 3170 routes (1663 active, 0 holddown, 2 hidden) 10.4.0.85/32 (2 entries, 1 announced) TSI: KRT in-kernel 10.4.0.85/32 -> {composite(8353)} Page 0 idx 0, (group l3rtr type External) Type 1 val 0x55dfecad9420 (adv_entry) Advertised metrics: Nexthop: Self AS path: [64514] 64708 64706 64701 64702 64704 I Communities: target:65655L:1111 Advertise: 00000001 Path 10.4.0.85 Vector len 4. Val: 0 *EVPN Preference: 170/-101 Next hop type: Indirect, Next hop index: 0 Address: 0x55dfe0bc91dc Next-hop reference count: 1238 Kernel Table Id: 0 Next hop type: Router, Next hop index: 8340 Next hop: 172.29.0.2 via et-0/0/12:2.3200, selected Session Id: 91 Protocol next hop: 192.168.252.8 Composite next hop: 0x55dfe92b5180 8353 INH Session ID: 154 Composite next hop: CNH non-key opaque: (nil), CNH key opaque: (nil) VXLAN tunnel rewrite: MTU: 0, Flags: 0x0 Encap table ID: 0, Decap table ID: 53 Encap VNI: 20001, Decap VNI: 20001 Source VTEP: 192.168.255.2, Destination VTEP: 192.168.252.8 SMAC: d4:99:6c:7f:71:df, DMAC: e4:23:3c:6a:b4:06 Indirect next hop: 0x55dfe0dba408 8351 INH Session ID: 154 Indirect next hop: INH non-key opaque: (nil) INH key opaque: (nil) State: <Active Int Ext VxlanLocalRT> Age: 1:41:19 Metric2: 0 Validation State: unverified Localpref: 100 Task: red-EVPN-L3-context Announcement bits (3): 1-red-EVPN-L3-context 2-KRT 4-BGP_RT_Background AS path: 64708 64706 64701 64702 64704 I Communities: 3:20001 21000:26000 target:65655L:1111 Thread: junos-main Composite next hops: 1 Protocol next hop: 192.168.252.8 Metric: 0 ResolvState: Resolved Composite next hop: 0x55dfe92b5180 8353 INH Session ID: 154 Composite next hop: CNH non-key opaque: (nil), CNH key opaque: (nil) VXLAN tunnel rewrite: MTU: 0, Flags: 0x0 Encap table ID: 0, Decap table ID: 53 Encap VNI: 20001, Decap VNI: 20001
Type 2 – Type 5 Seamless Stitching: Inter-VRF Flow Walkthrough
(3-stage leaf1 --> 5-stage compute leaf1)
Below is a flow walkthrough for the Inter-VRF. The route chosen by the Border leaf switch is the default route to the MX304 router external gateway where inter-vrf routing is performed and then after sending the packet back to the border leaf switch Type 5 route is chosen to remote border leaf switch. As an example walk through, the VLAN and the host IPs from DC1 and DC4. Note that the VRFs are different.
Red VRF vlan 400 source 10.0.0.10, Blue VRF vlan 1400 destination 10.10.0.85
- The 3-stage leaf switch receives the packet in a RED VLAN. Even
though the route is present in the BLUE VRF, the leaf is only able
to do a route lookup from the RED VRF, which only points to a
DEFAULT ROUTE to the border leaf.
regress@dc1-single-001-leaf1> show route 10.10.0.85 Feb 21 08:55:55 blue.inet.0: 1662 destinations, 3770 routes (1662 active, 0 holddown, 0 hidden) Restart Complete @ = Routing Use Only, # = Forwarding Use Only + = Active Route, - = Last Active, * = Both 10.10.0.85/32 @[EVPN/170] 01:44:46 > to 10.0.1.8 via et-0/0/48.0 to 10.0.1.18 via et-0/0/49.0 [EVPN/170] 01:44:45 > to 10.0.1.8 via et-0/0/48.0 to 10.0.1.18 via et-0/0/49.0 #[Multipath/255] 01:44:45, metric2 0 > to 10.0.1.8 via et-0/0/48.0 to 10.0.1.18 via et-0/0/49.0 > to 10.0.1.8 via et-0/0/48.0 to 10.0.1.18 via et-0/0/49.0 red.inet.0: 1662 destinations, 3770 routes (1662 active, 0 holddown, 0 hidden) Restart Complete @ = Routing Use Only, # = Forwarding Use Only + = Active Route, - = Last Active, * = Both 0.0.0.0/0 @[EVPN/170] 01:57:36 > to 10.0.1.8 via et-0/0/48.0 to 10.0.1.18 via et-0/0/49.0 [EVPN/170] 01:57:13 > to 10.0.1.8 via et-0/0/48.0 to 10.0.1.18 via et-0/0/49.0 #[Multipath/255] 01:57:13, metric2 0 > to 10.0.1.8 via et-0/0/48.0 to 10.0.1.18 via et-0/0/49.0 > to 10.0.1.8 via et-0/0/48.0 to 10.0.1.18 via et-0/0/49.0
- 3-stage single leaf switch, uses default route to 3-stage
borderleaf 1, via Type 5 VRF VNI 20001.
regress@dc1-single-001-leaf1> show route table red.inet.0 extensive Feb 21 08:58:58 red.inet.0: 1662 destinations, 3770 routes (1662 active, 0 holddown, 0 hidden) Restart Complete 0.0.0.0/0 (3 entries, 1 announced) State: <CalcForwarding> TSI: KRT in-kernel 0.0.0.0/0 -> {list:composite(4557), composite(4590)} @EVPN Preference: 170/-101 Next hop type: Indirect, Next hop index: 0 Address: 0x764c394 Next-hop reference count: 641 Kernel Table Id: 0 Next hop type: Router, Next hop index: 0 Next hop: 10.0.1.8 via et-0/0/48.0, selected Session Id: 0 Next hop: 10.0.1.18 via et-0/0/49.0 Session Id: 0 Protocol next hop: 192.168.255.2 Composite next hop: 0xc9e2138 4557 INH Session ID: 553 Composite next hop: CNH non-key opaque: 0x0, CNH key opaque: 0x0 VXLAN tunnel rewrite: MTU: 0, Flags: 0x0 Encap table ID: 0, Decap table ID: 14 Encap VNI: 20001, Decap VNI: 20001 Source VTEP: 192.168.255.6, Destination VTEP: 192.168.255.2 SMAC: c8:13:37:21:95:00, DMAC: d4:99:6c:7f:71:df Indirect next hop: 0x791fa00 524291 INH Session ID: 553 Indirect next hop: INH non-key opaque: 0x0 INH key opaque: 0x0
- 3-stage border leaf switch1 receives packet on red VNI 20001
and does the same route lookup, resolving again to a default route.
This default route points to external MX.
regress@dc1-borderleaf-001-leaf1-re0> show route 10.10.0.85 Feb 21 09:00:10 blue.inet.0: 1665 destinations, 3170 routes (1663 active, 0 holddown, 2 hidden) Restart Complete @ = Routing Use Only, # = Forwarding Use Only + = Active Route, - = Last Active, * = Both 10.10.0.85/32 *[EVPN/170] 01:49:30 > to 172.29.0.2 via et-0/0/12:2.3200 [EVPN/170] 01:49:28 > to 10.0.1.0 via et-0/0/2.0 to 10.0.1.10 via et-0/0/3.0 red.inet.0: 1665 destinations, 3170 routes (1663 active, 0 holddown, 2 hidden) Restart Complete @ = Routing Use Only, # = Forwarding Use Only + = Active Route, - = Last Active, * = Both 0.0.0.0/0 *[BGP/170] 3d 00:43:01, localpref 100 AS path: 65000 I, validation-state: unverified > to 10.200.0.1 via et-0/0/8:0.199 [EVPN/170] 02:01:55 > to 10.0.1.0 via et-0/0/2.0 to 10.0.1.10 via et-0/0/3.0
- MX304 router receives packet from RED logical interface on Borderleaf, and forwards back to DC1 border leaf switch1 on BLUE logical interface.
- DC1 border leaf switch1 can now do a route lookup in blue VRF,
resolving to Type 5 VNI for BLUE across DCI.
regress@dc1-borderleaf-001-leaf1-re0> show route 10.10.0.85 table blue.inet.0 extensive Feb 21 09:03:20 blue.inet.0: 1665 destinations, 3170 routes (1663 active, 0 holddown, 2 hidden) Restart Complete 10.10.0.85/32 (2 entries, 1 announced) TSI: KRT in-kernel 10.10.0.85/32 -> {composite(8349)} Page 0 idx 0, (group l3rtr type External) Type 1 val 0x55dfec5ef4b0 (adv_entry) Advertised metrics: Nexthop: Self AS path: [64514] 64708 64706 64701 64702 64704 I Communities: target:65655L:2222 Advertise: 00000001 Path 10.10.0.85 Vector len 4. Val: 0 *EVPN Preference: 170/-101 Next hop type: Indirect, Next hop index: 0 Address: 0x55dfe0bc7bfc Next-hop reference count: 1238 Kernel Table Id: 0 Next hop type: Router, Next hop index: 8340 Next hop: 172.29.0.2 via et-0/0/12:2.3200, selected Session Id: 91 Protocol next hop: 192.168.252.8 Composite next hop: 0x55dfe92b26c0 8349 INH Session ID: 152 Composite next hop: CNH non-key opaque: (nil), CNH key opaque: (nil) VXLAN tunnel rewrite: MTU: 0, Flags: 0x0 Encap table ID: 0, Decap table ID: 51 Encap VNI: 20002, Decap VNI: 20002 Source VTEP: 192.168.255.2, Destination VTEP: 192.168.252.8 SMAC: d4:99:6c:7f:71:df, DMAC: e4:23:3c:6a:b4:06 Indirect next hop: 0x55dfe0db6f88 8345 INH Session ID: 152 Indirect next hop: INH non-key opaque: (nil) INH key opaque: (nil) State: <Active Int Ext VxlanLocalRT> Age: 1:52:40 Metric2: 0 Validation State: unverified Localpref: 100 Task: blue-EVPN-L3-context Announcement bits (3): 1-blue-EVPN-L3-context 2-KRT 4-BGP_RT_Background AS path: 64708 64706 64701 64702 64704 I Communities: 3:20001 21000:26000 target:65655L:2222 Thread: junos-main Composite next hops: 1 Protocol next hop: 192.168.252.8 Metric: 0 ResolvState: Resolved Composite next hop: 0x55dfe92b26c0 8349 INH Session ID: 152 Composite next hop: CNH non-key opaque: (nil), CNH key opaque: (nil) VXLAN tunnel rewrite: MTU: 0, Flags: 0x0 Encap table ID: 0, Decap table ID: 51 Encap VNI: 20002, Decap VNI: 20002 {master} regress@dc1-borderleaf-001-leaf1-re0> show configuration | display set | match 20002 Feb 21 09:03:41 set routing-instances blue protocols evpn ip-prefix-routes vni 20002 set routing-instances blue vrf-target target:20002:1
- DC4 border leaf switch receives the packet and forwards to DC4
compute pod leaf switch1 on L3 VNI 20002.
blue.inet.0: 1665 destinations, 3151 routes (1663 active, 0 holddown, 2 hidden) Restart Complete 10.10.0.85/32 (1 entry, 1 announced) TSI: KRT in-kernel 10.10.0.85/32 -> {composite(9670)} Page 0 idx 0, (group l3rtr type External) Type 1 val 0x56479e5c0e18 (adv_entry) Advertised metrics: Nexthop: Self AS path: [64708] 64706 64701 64702 64704 I Communities: target:20002:1 Advertise: 00000001 Path 10.10.0.85 Vector len 4. Val: 0 *EVPN Preference: 170/-101 Next hop type: Indirect, Next hop index: 0 Address: 0x5647938279fc Next-hop reference count: 623 Kernel Table Id: 0 Next hop type: Router, Next hop index: 0 Next hop: 10.0.4.32 via et-0/0/48.0, selected Session Id: 0 Next hop: 10.0.4.36 via et-0/0/49.0 Session Id: 0 Protocol next hop: 192.168.252.6 Composite next hop: 0x564797a45f00 9670 INH Session ID: 244 Composite next hop: CNH non-key opaque: (nil), CNH key opaque: (nil) VXLAN tunnel rewrite: MTU: 0, Flags: 0x0 Encap table ID: 0, Decap table ID: 51 Encap VNI: 20002, Decap VNI: 20002 Source VTEP: 192.168.252.8, Destination VTEP: 192.168.252.6 SMAC: e4:23:3c:6a:b4:06, DMAC: d0:81:c5:d8:1c:e0 Indirect next hop: 0x564793970788 9669 INH Session ID: 244 Indirect next hop: INH non-key opaque: (nil) INH key opaque: (nil) State: <Active Int Ext VxlanLocalRT> Age: 1:58:15 Metric2: 0 Validation State: unverified Localpref: 100 Task: blue-EVPN-L3-context Announcement bits (3): 1-blue-EVPN-L3-context 2-KRT 4-BGP_RT_Background AS path: 64706 64701 64702 64704 I Communities: 0:12 0:14 9:20007 21002:26000 target:20002:1 Thread: junos-main Composite next hops: 1 Protocol next hop: 192.168.252.6 ResolvState: Resolved Composite next hop: 0x564797a45f00 9670 INH Session ID: 244 Composite next hop: CNH non-key opaque: (nil), CNH key opaque: (nil) VXLAN tunnel rewrite: MTU: 0, Flags: 0x0
- Compute pod leaf switch1 receives packet on L3 VNI. The nexthop
for the L3 route is IRB interface, which is present in MAC-VRF
instance.
regress@leaf001-001-1> show route 10.10.0.85 extensive table blue.inet.0 Feb 21 09:07:30 blue.inet.0: 1662 destinations, 3952 routes (1662 active, 0 holddown, 0 hidden) Restart Complete 10.10.0.85/32 (1 entry, 1 announced) *EVPN Preference: 7 Next hop type: Interface, Next hop index: 0 Address: 0x7647a14 Next-hop reference count: 21 Kernel Table Id: 0 Next hop: via irb.1400, selected State: <Active Int Ext> Age: 1:59:35 Validation State: unverified Task: evpn-1-evpn Announcement bits (2): 0-Resolve tree 9 1-blue-EVPN-L3-context AS path: I Thread: junos-main {master:0} regress@leaf001-001-1> show ethernet-switching mac-ip-table instance evpn-1 | match 10.10.0.85 Feb 21 09:08:35 10.10.0.85 00:10:94:0a:00:55 DL,K,RT,AD xe-0/0/0.0
Type 2 Seamless Stitching: Intra-VLAN
The flow is similar to Type 2 – Type 5 Seamless Stitching: Intra-VLAN Route verification. An example is provided here, the same VLAN and VRF with destination is used here.
Blue VRF, vlan 1400 source 10.10.0.10 (DC1), vlan 1400 destination 10.10.0.160 (DC3)
The server leaf switch finds the Type 2 route in the mac-vrf evpn-1.evpn.0 route table. Hence the route chosen in this case is Type 2 route.
regress@dc1-single-001-leaf1> show route table evpn-1.evpn.0 | match 10.10.0 Feb 21 06:45:22 2:192.168.255.2:65534::11400::00:10:94:0a:00:a0::10.10.0.160/304 MAC/IP 2:192.168.255.2:65534::11400::00:10:94:0a:00:a1::10.10.0.161/304 MAC/IP 2:192.168.255.2:65534::11400::00:10:94:0a:00:a2::10.10.0.162/304 MAC/IP 2:192.168.255.2:65534::11400::00:10:94:0a:00:a3::10.10.0.163/304 MAC/IP 2:192.168.255.2:65534::11400::00:10:94:0a:00:a4::10.10.0.164/304 MAC/IP 2:192.168.255.2:65534::11400::00:10:94:0a:00:a5::10.10.0.165/304 MAC/IP 2:192.168.255.2:65534::11400::00:10:94:0a:00:a6::10.10.0.166/304 MAC/IP 2:192.168.255.2:65534::11400::00:10:94:0a:00:a7::10.10.0.167/304 MAC/IP 2:192.168.255.2:65534::11400::00:10:94:0a:00:a8::10.10.0.168/304 MAC/IP
Type 2 Seamless Stitching: Inter-VRF
For Inter-VRF route the chosen path is the default route to the MX gateway from border leaf switch for inter-VRF routing. It uses Type 2 routes from border leaf switch to the remote data center collapsed leaf switch. In this case the path terminates at the collapsed leaf switch since it hosts the Host server. Below is the example.
Red VRF vlan 400 source 10.0.0.10 (DC1), Blue VRF vlan 1400 destination 10.10.0.160 (DC3)
- 3-stage leaf switch receives the packet in a RED VLAN. Even
though the route is present in the BLUE VRF, the leaf is only able
to do a route lookup from the RED VRF. This only points to a
DEFAULT ROUTE to the border leaf.
regress@dc1-single-001-leaf1> show route table red.inet.0 red.inet.0: 130 destinations, 176 routes (130 active, 0 holddown, 0 hidden) Restart Complete @ = Routing Use Only, # = Forwarding Use Only + = Active Route, - = Last Active, * = Both 0.0.0.0/0 @[EVPN/170] 2d 22:28:58 > to 10.0.1.8 via et-0/0/48.0 to 10.0.1.18 via et-0/0/49.0 [EVPN/170] 2d 22:29:28 > to 10.0.1.8 via et-0/0/48.0 to 10.0.1.18 via et-0/0/49.0 #[Multipath/255] 2d 22:28:58, metric2 0 > to 10.0.1.8 via et-0/0/48.0 to 10.0.1.18 via et-0/0/49.0 > to 10.0.1.8 via et-0/0/48.0 to 10.0.1.18 via et-0/0/49.0
- MX receives packet from RED logical interface (IFL) on Borderleaf, and forwards back to DC1 border leaf switch1 on BLUE logical interface (IFL).
- Border leaf switch 1 (DC1) receives the packet back and
performs a lookup of the route in the blue.inet.0 table where it
finds the IRB route. Then it performs a second lookup for the irb
route in the mac-ip-table for evpn1 instance.
regress@dc1-borderleaf-001-leaf1-re0> show route table blue.inet.0 10.10.0.160 extensive {master} regress@dc1-borderleaf-001-leaf1-re0> show route 10.10.0.160 table blue.inet.0 blue.inet.0: 31 destinations, 72 routes (29 active, 0 holddown, 2 hidden) Restart Complete @ = Routing Use Only, # = Forwarding Use Only + = Active Route, - = Last Active, * = Both 10.10.0.0/24 *[Direct/0] 00:24:09 > via irb.1400 [EVPN/170] 00:24:08 > to 10.0.1.0 via et-0/0/2.0 to 10.0.1.10 via et-0/0/3.0 [EVPN/170] 00:24:09 > to 10.0.1.0 via et-0/0/2.0 to 10.0.1.10 via et-0/0/3.0 [EVPN/170] 00:24:09 > to 10.0.1.0 via et-0/0/2.0 to 10.0.1.10 via et-0/0/3.0 [EVPN/170] 00:23:57 > to 10.0.1.0 via et-0/0/2.0 to 10.0.1.10 via et-0/0/3.0 regress@dc1-borderleaf-001-leaf1-re0> show route 10.10.0.160 10.10.0.0/24 (5 entries, 1 announced) TSI: Page 0 idx 0, (group l3rtr type External) Type 1 val 0x55dfe6521df8 (adv_entry) Advertised metrics: Nexthop: Self AS path: [64514] I Communities: Advertise: 00000001 Path 10.10.0.0 Vector len 4. Val: 0 *Direct Preference: 0 Next hop type: Interface, Next hop index: 0 Address: 0x55dfe0bca7bc Next-hop reference count: 1 Kernel Table Id: 0 Next hop: via irb.1400, selected State: <Active Int> Age: 25:13 Validation State: unverified Task: IF Announcement bits (3): 0-Resolve tree 11 1-blue-EVPN-L3-context 4-BGP_RT_Background AS path: I Thread: junos-main {master} regress@dc1-borderleaf-001-leaf1-re0> show ethernet-switching mac-ip-table instance evpn-1 | match 10.10.0.160 Feb 21 10:05:59 10.10.0.160 00:10:94:0a:00:a0 DR,K,RT esi.15932 00:06:ff:00:00:00:01:00:00:01