<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Nokia SR Linux Knowledge base]]></title><description><![CDATA[micro-segmentation with Nokia SR Linux with layer 2 EVPN VxLAN]]></description><link>https://microsegmentation.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 21:54:25 GMT</lastBuildDate><atom:link href="https://microsegmentation.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Layer 2 micro-segmentation on Nokia SR Linux — MAC-VRF, EVPN-VXLAN, and group-based policies in a Container lab leaf–spine lab]]></title><description><![CDATA[Learn how to implement Layer 2 microsegmentation on Nokia SR Linux using MAC-VRF, EVPN-VXLAN, and Group-Based Policies (GBP). Explore endpoint groups…]]></description><link>https://microsegmentation.hashnode.dev/layer-2-micro-segmentation-on-nokia-sr-linux-mac-vrf-evpn-vxlan-and-group-based-policies-in-a-container-lab-leaf-spine-lab</link><guid isPermaLink="true">https://microsegmentation.hashnode.dev/layer-2-micro-segmentation-on-nokia-sr-linux-mac-vrf-evpn-vxlan-and-group-based-policies-in-a-container-lab-leaf-spine-lab</guid><category><![CDATA[nokia]]></category><category><![CDATA[srlinux]]></category><category><![CDATA[microsegmentation]]></category><category><![CDATA[mac-vrf]]></category><category><![CDATA[evpn]]></category><category><![CDATA[vxlan]]></category><dc:creator><![CDATA[Ankit Goswami]]></dc:creator><pubDate>Wed, 18 Nov 2026 03:08:54 GMT</pubDate><content:encoded><![CDATA[<p>Reproduce Nokia’s Layer 2–only GBP model on a 2× spine / 4× leaf CLOS fabric with endpoint groups and ingress enforcement.</p>
<p><strong>1. Executive summary</strong></p>
<p>Enterprise and data-center networks need to limit lateral movement without creating large, hard-to-maintain ACLs. Nokia SR Linux micro-segmentation solves this with group-based policies (GBPs). Endpoints are assigned to groups, each group has a numeric tag, and a GBP ACL permits or denies traffic based on source and destination tags instead of long lists of IP or MAC addresses.</p>
<p>In the Layer 2-only model, segmentation lives entirely in MAC-VRFs on 7220 IXR-D2/D3/D4/D5 class platforms:</p>
<ul>
<li>Bridged sub-interfaces map hosts to groups.</li>
<li>Tags are carried in EVPN routes as the Group Policy ID extended community.</li>
<li>Enforcement happens on the ingress leaf, using a MAC table lookup.</li>
</ul>
<p><strong>Lab topology — Container lab leaf–spine CLOS</strong></p>
<p>This article documents the model on a Container lab topology with two spines, four leaves and four clients. It mirrors a production EVPN-VXLAN fabric and is easy to reproduce.</p>
<img src="https://cdn.hashnode.com/uploads/covers/6afd11e654af94234163c4b9/ab03af73-75c7-442d-9993-9b9dd5093c85.png" alt="" style="display:block;margin:0 auto" />

<p><strong>2.</strong> <strong>Why micro-segmentation?</strong></p>
<p>Traditional per-IP or per-MAC ACLs scale poorly. Every client-to-server rule adds entries, and the table quickly runs out of TCAM space. Micro-segments, such as DNS, printing, applications and guest access, need default-deny between segments, with explicit allow rules only where business policy requires them.</p>
<p>GBPs reduce this to a few group-level rules. For example, "tag 10 to tag 30: accept" replaces hundreds of host-specific entries.</p>
<p>On SR Linux, GBPs attach to IP-VRF or MAC-VRF instances—not <code>default</code>.</p>
<p><strong>3. Architecture: the Layer 2-only model</strong></p>
<p>Use your Nokia L2-only figure (endpoints → MAC-VRF on 7220 → EVPN-VXLAN → remote MAC-VRF → endpoints).</p>
<table>
<thead>
<tr>
<th>Element</th>
<th>Role in L2-only model</th>
</tr>
</thead>
<tbody><tr>
<td>MAC-VRF</td>
<td>Broadcast domain (bridge table + EVPN)</td>
</tr>
<tr>
<td>Bridged sub interface</td>
<td>Host attachment; group binds here</td>
</tr>
<tr>
<td>GBP tag</td>
<td>numeric value assigned to a logical group</td>
</tr>
<tr>
<td>GBP ACL</td>
<td>Matches L2 source tag vs L2 dest tag (unicast)</td>
</tr>
<tr>
<td>EVPN-VXLAN</td>
<td>Stretches BD across leaves; tags in EVPN routes</td>
</tr>
<tr>
<td>Node enforcement</td>
<td>Ingress leaf applies ACL before forwarding (intra-VRF)</td>
</tr>
</tbody></table>
<p><strong>4. Lab topology and groups</strong></p>
<p>The lab has four clients in one EVPN bridge domain (<code>mac-vrf-100</code>), split into two groups:</p>
<table>
<thead>
<tr>
<th align="left"><strong>Client</strong></th>
<th align="left"><strong>Group</strong></th>
<th align="left"><strong>IP address</strong></th>
<th align="left"><strong>Tag</strong></th>
</tr>
</thead>
<tbody><tr>
<td align="left">printer</td>
<td align="left">red</td>
<td align="left">192.168.100.10</td>
<td align="left">10</td>
</tr>
<tr>
<td align="left">Web Server</td>
<td align="left">white</td>
<td align="left">192.168.100.20</td>
<td align="left">20</td>
</tr>
<tr>
<td align="left">Print Server</td>
<td align="left">red</td>
<td align="left">192.168.100.30</td>
<td align="left">10</td>
</tr>
<tr>
<td align="left">database server</td>
<td align="left">white</td>
<td align="left">192.168.100.40</td>
<td align="left">20</td>
</tr>
</tbody></table>
<p>The policy allows traffic only inside a group. Printer and Print Server can talk to each other, and Web Server and database server can talk to each other. Cross-group traffic is dropped.</p>
<p><strong>5. Configuration</strong></p>
<p>The steps below apply to all four leaves (<code>leaf1-65001</code>, <code>leaf2-65002</code>, <code>leaf3-65003</code>, <code>leaf4-65004</code>).</p>
<h3>Step 1: Enable GBP MAC lookup</h3>
<p>Run this on each leaf:</p>
<pre><code class="language-plaintext">enter candidate
set / platform resource-management group-based-policy mac-lookup true
commit save
</code></pre>
<p><code>mac-lookup true</code> enables a source MAC lookup in the MAC table, so the GBP tag can be found in the MAC-VRF. This command requires a chassis reboot.</p>
<pre><code class="language-plaintext">A:admin@leaf2-65002# info from state platform resource-management group-based-policy
    chassis-reboot-required false
    mac-lookup true
    lpm-source-lookup false
</code></pre>
<p>If <code>leaf-chassis-reboot-required</code> is <code>false</code>, the running hardware matches the saved configuration, there is no need of reboot.</p>
<p><strong>Step 2: Enable GBP in BGP EVPN</strong></p>
<p>Under the BGP EVPN instance of every network instance that uses GBP, enable GBP handling with <code>group-based-policy add-community</code> and <code>install-from-community</code>. This distributes the tags in EVPN and programs them into the MAC table.</p>
<pre><code class="language-plaintext">--{ + running }--[ network-instance mac-vrf-100 protocols bgp-evpn bgp-instance 1 group-based-policy ]--
A:admin@leaf1-65001# info flat
set / network-instance mac-vrf-100 protocols bgp-evpn bgp-instance 1 group-based-policy add-community true
set / network-instance mac-vrf-100 protocols bgp-evpn bgp-instance 1 group-based-policy install-from-community true
</code></pre>
<p><strong>Step 3: Define the groups on every leaf</strong></p>
<p>Define the groups in all network instances, even those that don't use them. This keeps the configuration consistent across the fabric.</p>
<p><em><strong>admin@leaf1-65001</strong></em></p>
<pre><code class="language-plaintext">A:admin@leaf1-65001# info flat network-instance * group-based-policy group *
set / network-instance mac-vrf-100 group-based-policy group red tag-value 10
set / network-instance mac-vrf-100 group-based-policy group white tag-value 20
</code></pre>
<p><em><strong>admin@leaf2-65002</strong></em></p>
<pre><code class="language-plaintext">A:admin@leaf2-65002# info flat network-instance * group-based-policy group *
set / network-instance mac-vrf-100 group-based-policy group red tag-value 10
set / network-instance mac-vrf-100 group-based-policy group white tag-value 20
</code></pre>
<p><em><strong>admin@leaf3-65003</strong></em></p>
<pre><code class="language-plaintext">A:admin@leaf3-65003# info flat network-instance * group-based-policy group *
set / network-instance mac-vrf-100 group-based-policy group red tag-value 10
</code></pre>
<p><em><strong>admin@leaf4-65004</strong></em></p>
<pre><code class="language-plaintext">A:admin@leaf4-65004# info flat network-instance * group-based-policy group *
set / network-instance mac-vrf-100 group-based-policy group white tag-value 20
</code></pre>
<p><strong>Step 4: Associate endpoints with groups</strong></p>
<p>Bind each client's bridged sub-interface to its group on the leaf it connects to.</p>
<p><em><strong>admin@leaf1-65001</strong></em></p>
<pre><code class="language-plaintext">A:admin@leaf1-65001# info flat network-instance * group-based-policy interface *
set / network-instance mac-vrf-100 group-based-policy interface lag1.100 group [ red ]
</code></pre>
<p><em><strong>admin@leaf2-65002</strong></em></p>
<pre><code class="language-plaintext">A:admin@leaf2-65002# info flat network-instance * group-based-policy interface *
set / network-instance mac-vrf-100 group-based-policy interface ethernet-1/1.0 group [ white ]
set / network-instance mac-vrf-100 group-based-policy interface lag1.100 group [ red ]
</code></pre>
<p><em><strong>admin@leaf3-65003</strong></em></p>
<pre><code class="language-plaintext">A:admin@leaf3-65003# info flat network-instance * group-based-policy interface *
set / network-instance mac-vrf-100 group-based-policy interface ethernet-1/1.0 group [ red ]
</code></pre>
<p><em><strong>admin@leaf4-65004</strong></em></p>
<pre><code class="language-plaintext">A:admin@leaf4-65004# info flat network-instance * group-based-policy interface *
set / network-instance mac-vrf-100 group-based-policy interface ethernet-1/1.0 group [ white ]
</code></pre>
<h3><strong>Step 5: Define the inter-group policy</strong></h3>
<p><em><strong>admin@leaf1-65001</strong></em></p>
<pre><code class="language-plaintext">--{ + running }--[ network-instance mac-vrf-100 group-based-policy acl ]--
A:admin@leaf1-65001# info flat
set / network-instance mac-vrf-100 group-based-policy acl entry 10 match protocol icmp
set / network-instance mac-vrf-100 group-based-policy acl entry 10 match source-group [ red ]
set / network-instance mac-vrf-100 group-based-policy acl entry 10 match destination-group [ red ]
set / network-instance mac-vrf-100 group-based-policy acl entry 10 action collect-stats true
set / network-instance mac-vrf-100 group-based-policy acl entry 10 action accept
set / network-instance mac-vrf-100 group-based-policy acl entry 99 action collect-stats true
set / network-instance mac-vrf-100 group-based-policy acl entry 99 action drop
</code></pre>
<p><em><strong>admin@leaf2-65002</strong></em></p>
<pre><code class="language-plaintext">--{ + running }--[ network-instance mac-vrf-100 group-based-policy acl ]--
A:admin@leaf2-65002# info flat
set / network-instance mac-vrf-100 group-based-policy acl entry 10 match protocol icmp
set / network-instance mac-vrf-100 group-based-policy acl entry 10 match source-group [ red ]
set / network-instance mac-vrf-100 group-based-policy acl entry 10 match destination-group [ red ]
set / network-instance mac-vrf-100 group-based-policy acl entry 10 action collect-stats true
set / network-instance mac-vrf-100 group-based-policy acl entry 20 match protocol icmp
set / network-instance mac-vrf-100 group-based-policy acl entry 20 match source-group [ white ]
set / network-instance mac-vrf-100 group-based-policy acl entry 20 match destination-group [ white ]
set / network-instance mac-vrf-100 group-based-policy acl entry 20 action collect-stats true
set / network-instance mac-vrf-100 group-based-policy acl entry 20 action accept
set / network-instance mac-vrf-100 group-based-policy acl entry 99 action collect-stats true
set / network-instance mac-vrf-100 group-based-policy acl entry 99 action drop
</code></pre>
<p><em><strong>admin@leaf3-65003</strong></em></p>
<pre><code class="language-plaintext">--{ + running }--[ network-instance mac-vrf-100 group-based-policy acl ]--
A:admin@leaf3-65003# info flat
set / network-instance mac-vrf-100 group-based-policy acl entry 10 match protocol icmp
set / network-instance mac-vrf-100 group-based-policy acl entry 10 match source-group [ red ]
set / network-instance mac-vrf-100 group-based-policy acl entry 10 match destination-group [ red ]
set / network-instance mac-vrf-100 group-based-policy acl entry 10 action collect-stats true
set / network-instance mac-vrf-100 group-based-policy acl entry 99 action collect-stats true
set / network-instance mac-vrf-100 group-based-policy acl entry 99 action drop
</code></pre>
<p><em><strong>admin@leaf4-65004</strong></em></p>
<pre><code class="language-plaintext">--{ + running }--[ network-instance mac-vrf-100 group-based-policy acl ]--
A:admin@leaf4-65004# info flat
set / network-instance mac-vrf-100 group-based-policy acl entry 10 match protocol icmp
set / network-instance mac-vrf-100 group-based-policy acl entry 10 match source-group [ white ]
set / network-instance mac-vrf-100 group-based-policy acl entry 10 match destination-group [ white ]
set / network-instance mac-vrf-100 group-based-policy acl entry 10 action log true
set / network-instance mac-vrf-100 group-based-policy acl entry 10 action collect-stats true
set / network-instance mac-vrf-100 group-based-policy acl entry 10 action accept
set / network-instance mac-vrf-100 group-based-policy acl entry 99 action log true
set / network-instance mac-vrf-100 group-based-policy acl entry 99 action collect-stats true
set / network-instance mac-vrf-100 group-based-policy acl entry 99 action drop
</code></pre>
<h5>6. Verification</h5>
<h3>MAC table with GBP tags</h3>
<p>Each MAC address shows its GBP tag. Local MACs are learned on the access interface, and remote MACs are learned over EVPN-VXLAN.</p>
<p>The following show commands display the GBP tags associated with each MAC.</p>
<pre><code class="language-html">A:admin@leaf1-65001# show network-instance mac-vrf-100 bridge-table mac-table all
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Mac-table of network instance mac-vrf-100
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
+-----------------+-----------------+-----------------+-----------------+-----------------+-----------------+-----------------+-----------------+-----------------+
|     Address     |   Destination   |   Dest Index    |      Type       |     Active      |      Aging      | Not-Programmed  |    GBP Tags     |   Last Update   |
|                 |                 |                 |                 |                 |                 |     Reason      |                 |                 |
+=================+=================+=================+=================+=================+=================+=================+=================+=================+
| AA:C1:AB:00:C0: | vxlan-interface | 846928184708    | evpn            | true            | N/A             | none            | 10 (red)        | 2026-11-        |
| 23              | :vxlan1.100     |                 |                 |                 |                 |                 |                 | 25T18:06:30.000 |
|                 | vtep:100.0.2.3  |                 |                 |                 |                 |                 |                 | Z               |
|                 | vni:100         |                 |                 |                 |                 |                 |                 |                 |
| AA:C1:AB:68:BB: | vxlan-interface | 846928184710    | evpn            | true            | N/A             | none            | 20 (white)      | 2026-11-        |
| 5C              | :vxlan1.100     |                 |                 |                 |                 |                 |                 | 25T03:13:19.000 |
|                 | vtep:100.0.2.2  |                 |                 |                 |                 |                 |                 | Z               |
|                 | vni:100         |                 |                 |                 |                 |                 |                 |                 |
| AA:C1:AB:78:1C: | vxlan-interface | 846928184715    | evpn            | true            | N/A             | none            | 20 (white)      | 2026-11-        |
| 4D              | :vxlan1.100     |                 |                 |                 |                 |                 |                 | 25T03:21:50.000 |
|                 | vtep:100.0.2.4  |                 |                 |                 |                 |                 |                 | Z               |
|                 | vni:100         |                 |                 |                 |                 |                 |                 |                 |
| AA:C1:AB:F8:60: | lag1.100        | 5               | learnt          | true            | 300             | none            | 10 (red)        | 2026-11-        |
| F3              |                 |                 |                 |                 |                 |                 |                 | 25T18:06:28.000 |
|                 |                 |                 |                 |                 |                 |                 |                 | Z               |
+-----------------+-----------------+-----------------+-----------------+-----------------+-----------------+-----------------+-----------------+-----------------+
Total Irb Macs                 :    0 Total    0 Active
Total Static Macs              :    0 Total    0 Active
Total Duplicate Macs           :    0 Total    0 Active
Total Learnt Macs              :    1 Total    1 Active
Total Evpn Macs                :    3 Total    3 Active
Total Evpn static Macs         :    0 Total    0 Active
Total Irb anycast Macs         :    0 Total    0 Active
Total Proxy Antispoof Macs     :    0 Total    0 Active
Total Reserved Macs            :    0 Total    0 Active
Total Eth-cfm Macs             :    0 Total    0 Active
Total Irb Vrrps                :    0 Total    0 Active
</code></pre>
<p><em><strong>Remote MAC learned with tag 10</strong></em></p>
<p>The Print Server's MAC (<code>AA:C1:AB:00:C0:23</code>) is learned from leaf3 (<code>100.0.2.3</code>) with GBP tag 10 (red):</p>
<pre><code class="language-plaintext">A:admin@leaf1-65001# show network-instance mac-vrf-100 bridge-table mac-table mac AA:C1:AB:00:C0:23
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Mac-table of network instance mac-vrf-100
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Mac                     : AA:C1:AB:00:C0:23
Destination             : vxlan-interface:vxlan1.100 vtep:100.0.2.3 vni:100
Dest Index              : 846928184708
Type                    : evpn
Programming Status      : Success
Aging                   : N/A
Last Update             : 2026-11-25T18:06:30.000Z
Duplicate Detect time   : N/A
Hold down time remaining: N/A
GBP Tags                : 10 (red)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
</code></pre>
<p><em><strong>Remote MAC learned with tag 20</strong></em></p>
<p>The Web Server's MAC (<code>AA:C1:AB:68:BB:5C</code>) is learned from leaf2 (<code>100.0.2.2</code>) with GBP tag 20 (white):</p>
<pre><code class="language-plaintext">A:admin@leaf1-65001# show network-instance mac-vrf-100 bridge-table mac-table mac AA:C1:AB:68:BB:5C
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Mac-table of network instance mac-vrf-100
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Mac                     : AA:C1:AB:68:BB:5C
Destination             : vxlan-interface:vxlan1.100 vtep:100.0.2.2 vni:100
Dest Index              : 846928184710
Type                    : evpn
Programming Status      : Success
Aging                   : N/A
Last Update             : 2026-11-25T03:13:19.000Z
Duplicate Detect time   : N/A
Hold down time remaining: N/A
GBP Tags                : 20 (white)
</code></pre>
<h3>ACL statistics</h3>
<p>The GBP ACL counts matched packets per entry. Entry 10 accepts ICMP within the red group, so it counts the printer-to-Print Server pings. Entry 99 drops everything else, so it counts the blocked cross-group traffic.</p>
<pre><code class="language-plaintext">A:admin@leaf1-65001# show acl gbp-filter mac-vrf-100
====================================================================================================================================================================================
Network Instance: mac-vrf-100
Entries         : 2
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Entry 10
  Match               : protocol=icmp, [red:10](*)-&gt;[red:10](*)
  Action              : accept
  Collect Stats       : true
  Match Packets       : 4047
  Last Match          : 5 minutes ago
Entry 99
  Match               : protocol=&lt;undefined&gt;, [any](*)-&gt;[any](*)
  Action              : drop
  Collect Stats       : true
  Match Packets       : 316
  Last Match          : 5 minutes ago
</code></pre>
<h2>7. Conclusion</h2>
<p>With GBP, segmentation policy is defined by group tags, not by host addresses. Tags are carried in EVPN, so the policy stays consistent across the fabric, and enforcement happens at the ingress leaf in the Layer 2 domain. The verification outputs show the expected results: tags appear in the MAC table, tags arrive with remote MACs, and the ACL counters confirm the accept and drop behavior.</p>
]]></content:encoded></item></channel></rss>