PacketLab
VXLAN · VXLAN data-plane deployments

Flood-and-Learn Multicast Data Plane

Use the IP multicast tree for BUM delivery and learn remote MAC locations from received data.

One RP, two leaf VTEPs

Example platform: Nexus 9300/9000v · NX-OS 9.3(9) command model. Commands are platform-specific. Use a release and hardware/image with the stated VXLAN, multicast and routing features. All outputs and packet excerpts below are constructed teaching examples, not lab recordings.

SPINE1 transports IP traffic and acts as the PIM sparse-mode RP at 10.255.0.1. LEAF1 and LEAF2 source VXLAN from 10.255.0.2 and .3. H1 is 10.10.10.11/24 and H2 is .22/24 on VLAN 10. The VNI is 10010 and its ASM group is 239.1.1.1.

Independent lab · multicastIllustrative topology
Physical topology of multicast; addressing and roles appear in the following table.
Solid lines are physical connections; crossings are not junctions. The tenant service terminates on leaves, not on transit spines. Port addresses and host settings are listed below.
Physical linkAddress at first endpointAddress at second endpoint
SPINE1 Ethernet1/1 ↔ LEAF1 Ethernet1/1192.0.2.1/30192.0.2.2/30
SPINE1 Ethernet1/2 ↔ LEAF2 Ethernet1/1192.0.2.5/30192.0.2.6/30
DeviceLoopback0 / router ID
SPINE110.255.0.1/32
LEAF110.255.0.2/32
LEAF210.255.0.3/32

Unicast reachability and the RPF path

The independent recipe advertises every source loopback and routed link through OSPF. PIM reverse-path forwarding uses the unicast topology to decide the valid upstream direction toward a source or RP; multicast is not simply a second ordinary unicast route.

LEAF2 · illustrative output, selected fields
LEAF2# show ip route 10.255.0.1
10.255.0.1/32, ubest/mbest: 1/0
    *via 192.0.2.5, Eth1/1, [110/41], ospf-UNDERLAY, intra

Enable PIM and a common RP

All three switches · global multicast settings

feature pim
ip pim rp-address 10.255.0.1 group-list 239.1.1.0/24

Every transport-facing interface and loopback0

interface Ethernet1/1
  ip pim sparse-mode
interface loopback0
  ip pim sparse-mode

SPINE1 also enables PIM on Ethernet1/2. These are multicast additions to the complete OSPF configuration below. The group is in administratively scoped ASM space, not the 232/8 SSM range. SPINE1 is a single RP and therefore a deliberate redundancy limitation.

Associate VNI 10010 with the group

Both leaves · multicast NVE member

interface nve1
  no shutdown
  source-interface loopback0
  member vni 10010
    mcast-group 239.1.1.1

Both leaves also enable the overlay/VNI features, map VLAN 10 with vn-segment 10010 and attach H1/H2 to Ethernet1/2. The RP does not need a tenant VLAN or NVE interface. Only member VTEPs decapsulate; the VNI must still be valid locally even if several VNIs share a group.

Verify joins, forwarding and learning

LEAF1 · illustrative output, selected fields
LEAF1# show ip pim neighbor
Neighbor       Interface
192.0.2.1     Ethernet1/1
SPINE1 · illustrative output, selected fields
SPINE1# show ip mroute 239.1.1.1
(*, 239.1.1.1), RP 10.255.0.1
  Incoming interface: loopback0
  Outgoing interface list: Ethernet1/1, Ethernet1/2
(10.255.0.2, 239.1.1.1)
  Incoming interface: Ethernet1/1
  Outgoing interface list: Ethernet1/2

This reduced example is a possible shared-tree/source-state snapshot after traffic, not an exact timer transcript. Verify the active source, RPF interface and receiver-facing outgoing list for the live stage. A PIM neighbor alone does not prove group forwarding.

Trace request, reply and subsequent data

First ARP request · reconstructed packet fields, not a recorded capture
Outer IP: 10.255.0.2 -> 239.1.1.1
UDP destination: 4789; VNI: 10010
Inner Ethernet: H1 MAC -> broadcast
Remote leaf learns H1 MAC -> VTEP 10.255.0.2
ARP reply and known unicast · reconstructed packet fields, not a recorded capture
Outer IP: 10.255.0.3 -> 10.255.0.2
Inner Ethernet: H2 MAC -> H1 MAC
Return source learning: H2 MAC -> VTEP 10.255.0.3

BUM uses the multicast tree; learned unicast can use a direct unicast outer destination. An ARP reply is not required to return to the multicast group merely because its request used that group.

When transport works but flooding does not

If host ARP fails while VTEP pings work, inspect the VNI/group mapping, RP selection, PIM neighbors, RPF and outgoing receiver interfaces. Correct a wrong mcast-group to 239.1.1.1 on the affected leaf; restore PIM sparse mode on any missing transport interface, then repeat a fresh ARP and end-host ping. Do not suppress flooding before a replacement discovery mechanism exists.

Complete independent lab configurations

Start with clean isolated lab devices. These are the complete scenario configurations, not changes to apply on top of a different lesson. Physical ports must match the address table. Virtual-image data-plane capabilities can differ from physical switches; these examples have not been executed on live devices.

Download configuration reference

SPINE1

hostname SPINE1
feature ospf
feature pim
ip pim rp-address 10.255.0.1 group-list 239.1.1.0/24
router ospf UNDERLAY
  router-id 10.255.0.1
interface loopback0
  ip address 10.255.0.1/32
  ip router ospf UNDERLAY area 0.0.0.0
  ip pim sparse-mode
interface Ethernet1/1
  no switchport
  mtu 9216
  ip address 192.0.2.1/30
  ip ospf network point-to-point
  ip ospf cost 40
  ip router ospf UNDERLAY area 0.0.0.0
  ip pim sparse-mode
  no shutdown
interface Ethernet1/2
  no switchport
  mtu 9216
  ip address 192.0.2.5/30
  ip ospf network point-to-point
  ip ospf cost 40
  ip router ospf UNDERLAY area 0.0.0.0
  ip pim sparse-mode
  no shutdown

LEAF1

hostname LEAF1
feature ospf
feature pim
ip pim rp-address 10.255.0.1 group-list 239.1.1.0/24
router ospf UNDERLAY
  router-id 10.255.0.2
interface loopback0
  ip address 10.255.0.2/32
  ip router ospf UNDERLAY area 0.0.0.0
  ip pim sparse-mode
interface Ethernet1/1
  no switchport
  mtu 9216
  ip address 192.0.2.2/30
  ip ospf network point-to-point
  ip ospf cost 40
  ip router ospf UNDERLAY area 0.0.0.0
  ip pim sparse-mode
  no shutdown
feature nv overlay
feature vn-segment-vlan-based
vlan 10
  vn-segment 10010
interface Ethernet1/2
  switchport
  switchport mode access
  switchport access vlan 10
  spanning-tree port type edge
  no shutdown
interface nve1
  no shutdown
  source-interface loopback0
  member vni 10010
    mcast-group 239.1.1.1

LEAF2

hostname LEAF2
feature ospf
feature pim
ip pim rp-address 10.255.0.1 group-list 239.1.1.0/24
router ospf UNDERLAY
  router-id 10.255.0.3
interface loopback0
  ip address 10.255.0.3/32
  ip router ospf UNDERLAY area 0.0.0.0
  ip pim sparse-mode
interface Ethernet1/1
  no switchport
  mtu 9216
  ip address 192.0.2.6/30
  ip ospf network point-to-point
  ip ospf cost 40
  ip router ospf UNDERLAY area 0.0.0.0
  ip pim sparse-mode
  no shutdown
feature nv overlay
feature vn-segment-vlan-based
vlan 10
  vn-segment 10010
interface Ethernet1/2
  switchport
  switchport mode access
  switchport access vlan 10
  spanning-tree port type edge
  no shutdown
interface nve1
  no shutdown
  source-interface loopback0
  member vni 10010
    mcast-group 239.1.1.1
HostAddressGateway
H110.10.10.11/24none
H210.10.10.22/24none

Further reading

Key Takeaways

  • Multicast VXLAN maps a VNI’s BUM traffic to a group.
  • Unicast routing supplies the source/RP reverse-path information.
  • PIM joins and receiver forwarding state matter beyond neighbor adjacency.
  • Remote source MACs can be learned from received VXLAN data.
  • Learned unicast need not follow the multicast tree.

Flood-and-Learn Multicast Data Plane Quiz

Six questions · four options each · select one answer per question. Submit all answers to see your score and explanations.

1. Which outer destination carries the first ARP request here?
2. What is SPINE1’s extra role?
3. Where does PIM obtain reverse-path information?
4. Must an ARP reply use outer multicast?
5. Does a PIM adjacency prove the receiver is in the outgoing group tree?
6. Can a VTEP accept every VNI merely because it receives the multicast group?