Command Line Reference
EVPN Configuration
21 min
evpn configuration evpn configuration show evpn show evpn \[command] show evpn \[purpose] display the current evpn configuration \[view] system view \[use cases] sonic# show evpn l2 vnis 2 l3 vnis 0 advertise gateway mac ip no advertise svi mac ip no advertise svi mac yes duplicate address detection disable detection max moves 5, time 180 evpn mh mac holdtime 60s, neigh holdtime 60s startup delay 180s, start delay timer uplink cfg cnt 0, uplink active cnt 0 show evpn access vlan show evpn access vlan \[command] show evpn access vlan \[ vlan id ] \[purpose] display the vlan information in the current evpn configuration \[view] system view \[use cases] sonic# show evpn access vlan vlan svi l2 vni vxlan if # members 1000 vlan1000 16777215 vxlan16777215 2 2000 vlan2000 2000 vxlan2000 0 show evpn es show evpn es \[command] show evpn es {detail} \[purpose] display the esi value of the multi homing group interface 、df role and its remote vtep information \[view] system view \[use cases] sonic# show evpn es type b bypass, l local, r remote, n non df esi type es if vteps 03 00 11 22 33 44 55 00 00 65 lr ethernet1 120 1 1 122 03 00 11 22 33 44 55 00 00 66 lr ethernet2 120 1 1 81 03 00 11 22 33 44 55 00 00 67 r 120 1 1 81 show evpn es evi show evpn es evi \[command] show evpn es evi \[ vni vni id | json | detail ] \[purpose] display the mapping relationships between local esis and vnis \[parameter] parameter description vni id specify the vni to be displayed \[view] system view \[use cases] sonic# show evpn es evi type l local, r remote vni esi type 16777215 03 00 11 22 33 44 55 00 00 65 l 16777215 03 00 11 22 33 44 55 00 00 66 l show evpn arp cache show evpn arp cache \[command] show evpn arp cache vni { vni id | all } \[purpose] display the arp entries in evpn, including both local and synchronized entries \[parameter] parameter description vni id specify the vni to be displayed \[view] system view \[use cases] sonic# show evpn arp cache vni all vni 16777215 #arp (ipv4 and ipv6, local and remote) 1 flags i=local inactive, p=peer active, x=peer proxy neighbor type flags state mac remote es/vtep seq #'s 123 1 1 11 remote active 00 00 02 00\ aa 01 03 00 11 22 33 44 55 00 00 67 0/0 show evpn mac show evpn mac \[command] show evpn mac vni { vni id | all } \[purpose] display the mac entries in evpn, including both local and synchronized entries \[parameter] parameter description vni id specify the vni to be displayed \[view] system view \[use cases] sonic# show evpn mac vni all vni 16777215 #macs (local and remote) 2 flags n=sync neighs, i=local inactive, p=peer active, x=peer proxy mac type flags intf/remote es/vtep vlan seq #'s 00 00 02 00\ aa 01 remote 03 00 11 22 33 44 55 00 00 67 0/0 00 00 00\ ff\ ff 00 local vlan1000 0/0 evpn mh mac holdtime evpn mh mac holdtime \[command] evpn mh mac holdtime time no evpn mh mac holdtime time \[purpose] configure the retention time for mac addresses synchronized via evpn \[parameter] parameter description time unit seconds, range 0 86400, default 60 \[view] interface view、lag view \[use cases] sonic# evpn mh mac holdtime 60 evpn mh neigh holdtime evpn mh neigh holdtime \[command] evpn mh neigh holdtime time no evpn mh neigh holdtime time \[purpose] configure the retention time for arp entries synchronized via evpn \[parameter] parameter description time unit seconds, range 0 86400, default 60 \[view] interface view、lag view \[use cases] sonic# evpn mh neigh holdtime 60 evpn mh es id evpn mh es id \[command] evpn mh es id es id no evpn mh es id \[purpose] configure the esi value for the interface in a multi homing scenario, interfaces belonging to the same multi homing group must have the same esi value the esi value, which uniquely identifies an interface in a multi homing group, is formed by combining the es id and the es sys mac \[parameter] parameter description es id range 1 16777215 \[view] interface view、lag view \[use cases] sonic(config)# interface ethernet 3 sonic(config if 3)# evpn mh es id 101 evpn mh es sys mac evpn mh es sys mac \[command] evpn mh es sys mac es sys mac no evpn mh es sys mac \[purpose] configure the es sys mac value for the interface in a multi homing scenario, the es sys mac for interfaces in the same group must be identical the esi value, which is used to identify an interface in a multi homing group, is formed by combining the es id and the es sys mac \[parameter] parameter description es sys mac the es sys mac address for the interface must be in mac address format \[view] interface view、lag view \[use cases] sonic(config)# interface ethernet 3 sonic(config if 3)# evpn mh es sys mac 00 11 22 33 44 55 evpn mh es df pref evpn mh es df pref \[command] evpn mh es df pref priority no evpn mh es df pref \[purpose] configure the priority of interface \[parameter] parameter description priority range 1 65535, default 32767 \[view] interface view、lag view \[usage scenario] in a multi homing scenario, interfaces within the multi homing group negotiate the designated forwarder (df) role an interface with a higher priority value has higher precedence; when priorities are equal, the vtep with the smaller ip address has higher precedence \[use cases] sonic(config)# interface ethernet 3 sonic(config if 3)# evpn mh es df pref 100 mh group id mh group id \[command] mh group id id no mh group id \[purpose] configure the interface on the leaf device to an mh group \[parameter] parameter description id range 1 16777215 \[view] interface view、lag view \[usage scenario] for dual homed terminals connected to different leaf devices, configure the same mh group id on the respective interfaces to guarantee successful terminal onboarding and seamless migration \[notes] executing this command effectively sets the es id and es sys mac the key distinction is that the mh group approach applies a uniform es sys mac to all leaf interfaces, while manually configuring es sys mac allows for per interface assignment \[use cases] sonic(config)# interface ethernet 3 sonic((config if 3)# mh group id 1 address family l2vpn evpn address family l2vpn evpn \[command] address family l2vpn evpn \[purpose] enter the evpn address family view \[view] bgp view \[usage scenario] when using bgp to dynamically establish vxlan tunnels, this command must be executed in the bgp view to enter the evpn address family configuration view and establish bgp evpn peers \[use cases] sonic(config)# router bgp 65100 sonic(config router)# address family l2vpn evpn sonic(config router af)# neighbor activate neighbor activate \[command] neighbor { a b c d | x\ x x \ x| string } activate no neighbor { a b c d | x\ x x \ x| string } activate \[purpose] enable the configuration of a bgp evpn peer \[parameter] parameter description a b c d ipv4 address x\ x x \ x ipv6 address string specify the name of the peer group \[view] evpn address family view \[use cases] sonic(config)# router bgp 65100 sonic(config router)# address family l2vpn evpn sonic(config router af)# neighbor 1 1 1 1 activate advertise all vni advertise all vni \[command] advertise all vni no advertise all vni \[purpose] configure the advertisement of all local vnis to peers \[view] evpn address family view \[use cases] sonic(config)# router bgp 65100 sonic(config router)# address family l2vpn evpn sonic(config router af)# advertise all vni
