50
•
VXLAN 10 uses the unicast mode for flood traffic.
Configure IGMP snooping on the switches to implement Layer 2 multicast forwarding and reduce the
burden of replicating known multicast traffic for VTEPs in VXLAN 10.
Figure 19 Network diagram
Table 7 Interface and IP address assignment
Device
Interface
IP address
Device
Interface
IP address
Switch A
Vlan-int11
11.1.1.1/24
Switch C
Vlan-int13
13.1.1.3/24
Switch A
Loop0
1.1.1.1/32
Switch C
Loop0
3.3.3.3/32
Switch B
Vlan-int12
12.1.1.2/24
Switch D
Vlan-int11
11.1.1.4/24
Switch B
Loop0
2.2.2.2/32
Switch D
Vlan-int12
12.1.1.4/24
Switch D
Vlan-int13
13.1.1.4/24
Configuration procedure
1.
Assign an IP address and subnet mask to each interface on the transport network, as shown
in
. (Details not shown.)
2.
Configure OSPF on all the switches in the transport network. (Details not shown.)
3.
Configure Switch A:
# Enable L2VPN.
<SwitchA> system-view
[SwitchA] l2vpn enable
# Enable Layer 2 forwarding for VXLANs.
[SwitchA] undo vxlan ip-forwarding
# Create a VSI named
vpna
, and create VXLAN 10.
[SwitchA] vsi vpna
[SwitchA-vsi-vpna] vxlan 10
[SwitchA-vsi-vpna-vxlan-10] quit
[SwitchA-vsi-vpna] quit
# Enable IGMP snooping globally.
[SwitchA] igmp-snooping
[SwitchA -igmp-snooping] quit
# Enable IGMP snooping and dropping unknown multicast data packets for VSI
vpna
.
Switch A
Switch C
Transport network
Switch D
HGE1/0/1
HGE1/0/1
Switch B
Server 2
VM 2
Server 1
VM 1
Server 3
VM 3
HGE1/0/1
Loop0
Loop0
Loop0
VLAN 2
VLAN 2
VLAN 2
Vlan-int11
Vlan-int13
Vlan-int12
Vlan-int11
Vlan-int13
Vlan-int12