By default, VPLS 1 and 2 are not configured for selective learning, so all MAC addresses are global:
*A:PE1# show service id [1,2] fdb | match expression ", Service|Sel Learned FDB"
Forwarding Database, Service 1
Sel Learned FDB : Disabled
Forwarding Database, Service 2
Sel Learned FDB : Disabled
*A:PE1#
Traffic is sent into the services, resulting in the following MAC addresses being learned:
*A:PE1# show service fdb-mac
===============================================================================
Service Forwarding Database
===============================================================================
ServId MAC Source-Identifier Type Last Change
Age
-------------------------------------------------------------------------------
1 00:00:00:00:01:01 sap:5/1/1:1 L/0 01/31/17 08:44:37
1 00:00:00:00:01:02 sap:5/1/1:1 L/0 01/31/17 08:44:37
1 00:00:00:00:01:03 eMpls: EvpnS 01/31/17 08:41:38
P
10.251.72.58:262142
1 00:00:00:00:01:04 eMpls: EvpnS 01/31/17 08:41:38
P
10.251.72.58:262142
2 00:00:00:00:02:01 sap:2/1/2:2 L/0 01/31/17 08:44:37
2 00:00:00:00:02:02 sap:2/1/2:2 L/0 01/31/17 08:44:37
2 00:00:00:02:02:03 sap:2/1/1:2 L/0 01/31/17 08:44:37
2 00:00:00:02:02:04 sap:2/1/1:2 L/0 01/31/17 08:44:37
-------------------------------------------------------------------------------
No. of Entries: 8
-------------------------------------------------------------------------------
Legend: L=Learned O=Oam P=Protected-MAC C=Conditional S=Static Lf=Leaf
===============================================================================
*A:PE1#
A total of eight MAC addresses are learned. There are two MAC addresses learned locally on SAP 5/1/1:1 in service VPLS 1 (type ‟L”), and another two MAC addresses learned using EVPN with the sticky bit set, also in service VPLS 1 (type ‟EvpnS”). A further two sets of two MAC addresses are learned on SAP 2/1/1:2 and 2/1/2:2 in service VPLS 2 (type ‟L”).
The system and line card FDB usage is shown as follows:
*A:PE1# show service system fdb-usage
===============================================================================
FDB Usage
===============================================================================
System
-------------------------------------------------------------------------------
Limit: 511999
Allocated: 8
Free: 511991
Global: 8
-------------------------------------------------------------------------------
Line Cards
-------------------------------------------------------------------------------
Card Selective Allocated Limit Free
-------------------------------------------------------------------------------
1 0 8 511999 511991
2 0 8 511999 511991
5 0 8 511999 511991
-------------------------------------------------------------------------------
===============================================================================
*A:PE1#
The system MAC address limit is 511999, of which eight are allocated, and the rest are free. All eight MAC addresses are global and are allocated on cards 1, 2, and 5. There are no selective MAC addresses. This output can be reduced to specific line cards by specifying the card’s slot ID as a parameter to the command.
To see the MAC address information per service, tools dump commands can be used, as follows for VPLS 1. The following output displays the card status:
*A:PE1# tools dump service id 1 fdb card-status
===============================================================================
VPLS FDB Card Status at 01/31/2017 08:44:38
===============================================================================
Card Allocated PendAlloc PendFree
-------------------------------------------------------------------------------
1 4 0 0
2 4 0 0
5 4 0 0
===============================================================================
*A:PE1#
All of the line cards have four FDB entries allocated in VPLS 1. The ‟PendAlloc” and ‟PendFree” columns show the number of pending MAC address allocate and free operations, which are all zero.
The following output displays the MAC address status for VPLS 1:
*A:PE1# tools dump service id 1 fdb mac-status
===============================================================================
VPLS FDB MAC status at 01/31/2017 08:44:38
===============================================================================
MAC Address Type Status : Card list
-------------------------------------------------------------------------------
00:00:00:00:01:01 Global Allocated : All
00:00:00:00:01:02 Global Allocated : All
00:00:00:00:01:03 Global Allocated : All
00:00:00:00:01:04 Global Allocated : All
===============================================================================
*A:PE1#
The type and card list for each MAC address in VPLS 1 is displayed. VPLS 1 has learned four MAC addresses: the two local MAC addresses on SAP 5/1/1:1 and the two EvpnS MAC addresses. Each MAC address has an FDB entry allocated on all line cards. This output can be further reduced by optionally including a specified MAC address, a specific card, and the operational pending state.