Step 1
|
configure terminal
switch# configure terminal
|
Enter configuration mode.
|
Step 2
|
feature ngmvpn
switch(config)# feature ngmvpn
|
Enables the Next-Generation Multicast VPN (ngMVPN) control plane. New address family commands become available in BGP.
Note
|
The no feature ngmvpn command will not remove MVPN configuration under BGP.
|
|
Step 3
|
advertise evpn multicast
switch(config)# advertise evpn multicast
|
Advertises IMET and SMET routes into BGP EVPN towards non-TRM capable switches.
|
Step 4
|
ip igmp snooping vxlan
switch(config)# ip igmp snooping vxlan
|
Configure IGMP snooping for VXLAN VLANs.
|
Step 5
|
ip multicast overlay-spt-only
switch(config)# ip multicast overlay-spt-only
|
Gratuitously originate (S,A) route when source is locally connected. The ip multicast overlay-spt-only command is enabled by default on all MVPN-enabled Cisco Nexus 9000 Series switches (typically leaf nodes).
|
Step 6
|
ip multicast overlay-distributed-dr
switch(config)# ip multicast overlay-distributed-dr
|
Enables distributed anchor DR function on this VTEP.
Note
|
The NVE interface must be shut and unshut while configuring this command.
|
|
Step 7
|
interface nve1
switch(config)# interface nve 1
|
Configure the NVE interface.
|
Step 8
|
[no] shutdown
switch(config-if-nve)# shutdown
|
Shuts down the NVE interface. The no shutdown command brings up the interface.
|
Step 9
|
member vni
vni-range
associate-vrf
switch(config-if-nve)# member vni 200100 associate-vrf
|
Configure the Layer 3 virtual network identifier. The range of vni-range is from 1 to 16,777,214.
|
Step 10
|
mcast-group
ip-prefix
switch(config-if-nve-vni)# mcast-group 225.3.3.3
|
Configures the multicast group on distributed anchor DR.
|
Step 11
|
exit
switch(config-if-nve-vni)# exit
|
|
Step 12
|
interface loopback
loopback_number
switch(config-if-nve)# interface loopback 10
|
Configure the loopback interface on all distributed anchor DR devices.
|
Step 13
|
ip address
ip_address
switch(config-if)# ip address 100.100.1.1/32
|
Configure IP address. This IP address is the same on all distributed anchor DR.
|
Step 14
|
ip router ospf
process-tag
area
ospf-id
switch(config-if)# ip router ospf 100 area 0.0.0.0
|
OSPF area ID in IP address format.
|
Step 15
|
ip pim sparse-mode
switch(config-if)# ip pim sparse-mode
|
Configure sparse-mode PIM on interface.
|
Step 16
|
interface nve1
switch(config-if)# interface nve1
|
|
Step 17
|
shutdown
switch(config-if-nve)# shutdown
|
|
Step 18
|
mcast-routing override source-interface loopback
int-num
switch(config-if-nve)# mcast-routing override source-interface loopback 10
|
Enables that TRM is using a different loopback interface than the VTEPs default source-interface.
The loopback10 variable must be configured on every TRM-enabled VTEP (Anchor DR) in the underlay with the same IP address. This loopback
and the respective override command are needed to serve TRM VTEPs in co-existence with non-TRM VTEPs.
|
Step 19
|
exit
switch(config-if-nve)# exit
|
|
Step 20
|
router bgp 100
switch(config)# router bgp 100
|
Set autonomous system number.
|
Step 21
|
neighbor
ip-addr
switch(config-router)# neighbor 1.1.1.1
|
Configure IP address of the neighbor.
|
Step 22
|
address-family ipv4 mvpn
switch(config-router-neighbor)# address-family ipv4 mvpn
|
|
Step 23
|
send-community extended
switch(config-router-neighbor-af)# send-community extended
|
Send community attribute.
|
Step 24
|
exit
switch(config-router-neighbor-af)# exit
|
|
Step 25
|
exit
switch(config-router)# exit
|
|
Step 26
|
vrf
vrf_name
vrf100
switch(config)# vrf context vrf100
|
|
Step 27
|
ip pim rp-address
ip-address-of-router
group-list
group-range-prefix
switch(config-vrf)# ip pim rp-address 209.165.201.1 group-list 226.0.0.0/8
|
|
Step 28
|
address-family ipv4 unicast
switch(config-vrf)# address-family ipv4 unicast
|
Configure unicast address family.
|
Step 29
|
route-target both auto mvpn
switch(config-vrf-af-ipv4)# route-target both auto mvpn
|
Specify target for mvpn routes.
|
Step 30
|
exit
switch(config-vrf-af-ipv4)# exit
|
|
Step 31
|
exit
|
|
Step 32
|
interface
vlan_id
switch(config)# interface vlan11
|
|
Step 33
|
no shutdown
switch(config-if)# no shutdown
|
|
Step 34
|
vrf member vrf100
switch(config-if)# vrf member vrf100
|
|
Step 35
|
ip address
ip_address
switch(config-if)# ip address 11.1.1.1/24
|
|
Step 36
|
ip pim sparse-mode
eswitch(config-if)# ip pim sparse-mode
|
Configure sparse-mode PIM on the interface.
|
Step 37
|
fabric forwarding mode anycast-gateway
switch(config-if)# fabric forwarding mode anycast-gateway
|
Configure Anycast Gateway Forwarding Mode.
|
Step 38
|
ip pim neighbor-policy
route-map-name
switch(config-if)# ip pim neighbor-policy route-map1
|
Creates an IP PIM neighbor policy with a suitable route-map to deny any IPv4 addresses, preventing PIM from establishing PIM
neighborship on the L2VNI SVI.
|
Step 39
|
exit
|
|
Step 40
|
interface
vlan_id
switch(config)# interface vlan100
|
|
Step 41
|
no shutdown
switch(config-if)# no shutdown
|
|
Step 42
|
vrf member vrf100
switch(config-if)# vrf member vrf100
|
|
Step 43
|
ip forward
switch(config-if)# ip forward
|
Enable IP forwarding on interface.
|
Step 44
|
ip pim sparse-mode
switch(config-if)# ip pim sparse-mode
|
Configure sparse-mode PIM on the interface.
|