Fdb Manage
This scenario shows how to manage entries from the FDB of a bridge or VXLAN interface.
Add bridge FDB entry
Description
Add an entry to the FDB of a bridge.
Scenario
Step 1: Set the following configuration in DUT0
:
set interfaces bridge br0 fdb entry 1 mac 'de:ad:be:ef:6c:10' set interfaces ethernet eth0 bridge-group bridge br0 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Run command interfaces bridge br0 show fdb
at DUT0
and check if output contains the following tokens:
de:ad:be:ef:6c:10Show output
------------------------------------------------- bridge port mac state flags ------------------------------------------------- br0 eth0 de:ad:be:ef:6c:10 permanent self br0 eth0 01:00:5e:00:00:01 permanent self br0 eth0 33:33:00:00:00:02 permanent self br0 eth0 33:33:00:00:00:01 permanent self br0 eth0 33:33:ff:ef:6c:10 permanent self br0 br0 33:33:00:00:00:01 permanent self br0 br0 33:33:00:00:00:02 permanent self br0 br0 01:00:5e:00:00:6a permanent self br0 br0 33:33:00:00:00:6a permanent self br0 br0 01:00:5e:00:00:01 permanent self br0 br0 33:33:ff:d9:ad:8e permanent self br0 br0 de:ad:be:ef:6c:10 permanent br0 br0 de:ad:be:ef:6c:10 permanent
Delete bridge FDB entry
Description
Add and delete an entry from the FDB of a bridge.
Scenario
Step 1: Set the following configuration in DUT0
:
set interfaces bridge br0 fdb entry 1 mac 'de:ad:be:ef:6c:10' set interfaces ethernet eth0 bridge-group bridge br0 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Run command interfaces bridge show fdb
at DUT0
and check if output contains the following tokens:
de:ad:be:ef:6c:10Show output
------------------------------------------------- bridge port mac state flags ------------------------------------------------- br0 eth0 de:ad:be:ef:6c:10 permanent self br0 eth0 01:00:5e:00:00:01 permanent self br0 eth0 33:33:00:00:00:02 permanent self br0 eth0 33:33:00:00:00:01 permanent self br0 eth0 33:33:ff:ef:6c:10 permanent self br0 br0 33:33:00:00:00:01 permanent self br0 br0 33:33:00:00:00:02 permanent self br0 br0 01:00:5e:00:00:6a permanent self br0 br0 33:33:00:00:00:6a permanent self br0 br0 01:00:5e:00:00:01 permanent self br0 br0 33:33:ff:76:b8:ae permanent self br0 br0 de:ad:be:ef:6c:10 permanent br0 br0 de:ad:be:ef:6c:10 permanent
Step 3: Set the following configuration in DUT0
:
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 4: Run command interfaces bridge show fdb
at DUT0
and check if output does not contain the following tokens:
de:ad:be:ef:6c:10Show output
------------------------------- bridge port mac state flags -------------------------------
Add VXLAN FDB entry
Description
Add an entry to the FDB of a VXLAN interface.
Scenario
Step 1: Set the following configuration in DUT0
:
set interfaces vxlan vxlan0 fdb entry 1 mac '00:00:00:00:00:00' destination 10.1.2.3 set interfaces vxlan vxlan0 vni 33 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Run command interfaces vxlan vxlan0 show fdb
at DUT0
and check if output contains the following tokens:
00:00:00:00:00:00Show output
---------------------------------------------------------------- vxlan port mac state flags destination ---------------------------------------------------------------- vxlan0 vxlan0 00:00:00:00:00:00 permanent self 10.1.2.3
Delete VXLAN FDB entry
Description
Add and delete an entry from the FDB of a VXLAN interface.
Scenario
Step 1: Set the following configuration in DUT0
:
set interfaces vxlan vxlan0 fdb entry 1 mac '00:00:00:00:00:00' destination 10.1.2.3 set interfaces vxlan vxlan0 vni 33 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Run command interfaces vxlan show fdb
at DUT0
and check if output contains the following tokens:
00:00:00:00:00:00Show output
---------------------------------------------------------------- vxlan port mac state flags destination ---------------------------------------------------------------- vxlan0 vxlan0 00:00:00:00:00:00 permanent self 10.1.2.3
Step 3: Set the following configuration in DUT0
:
set interfaces vxlan vxlan0 vni 33 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 4: Run command interfaces vxlan show fdb
at DUT0
and check if output does not contain the following tokens:
00:00:00:00:00:00Show output
------------------------------------------- vxlan port mac state flags destination -------------------------------------------