cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
866
Views
5
Helpful
6
Replies

Local MAC injection in EVPN

twanaothman
Level 1
Level 1

Hello Everyone,
I am testing EVPN+MPLS on NCS5501.
anyone can explain what this command " l2vpn forwarding inject local-mac add mac-address " is doing ? if I have more than a CE in the PE should I add the mentioned command per CE ?
Thanks

6 Replies 6

smailmilak
Level 4
Level 4

Hi, I remember this command from dCloud. This one is used to test your EVPN setup  by injecting any MAC address, where you can check if this MAC is then learned on the other side.

Here is a Cisco Liver pdf

https://www.ciscolive.com/c/dam/r/ciscolive/us/docs/2019/pdf/5eU6DfQV/LTRSPG-2968.pdf

Page 73

Thanks Smailmilak,

I have this Cisco live slides but even here there is no explanation why this command issued.

Without the injection command I am not receiving MAC address from the PE when I have "show evpn evi vpn-id 20 mac".

I want to understand what this command is really doing.

  •  

smailmilak
Level 4
Level 4

It is there only for testing. You don't need to have any CE devices attached from where you would learn MAC addresses.

Check your config. It should be there. 

This is in real device lab NCS5501. I have CE attached to the PE and even without this command CE can ping to CE but I have no Mac when issuing "show evpn evi vpn-id 20 mac"

 

Here is my lab topology

tmp_339d4812-7c15-452b-ad90-53d76c5f111b.png

smailmilak
Level 4
Level 4

Ok in this case you don't need that command. 

Since you can ping CE to CE via EVPN, then it is working. You will find the mac in the bgp table. 

No idea why you don't see the mac with that command. I remember that it was working for me, but it was 1 year ago.

Check here

https://xrdocs.io/ncs5500/tutorials/bgp-evpn-based-single-active-multi-homing/

 

Thanks a lot @smailmilak