Bridge and Virtual Routing and Fording (VRF)¶
In RARE/freeRtr you have 2 major constructs:
- bridge for L2
- VRF for L3
Bridge (Wikipedia) ¶
A network bridge is a computer networking device that creates a single, aggregate network from multiple communication networks or network segments. This function is called network bridging.
In RARE/freeRtr, bridge in RARE/FreeRtr can be configured with the following command:
FREERTR(cfg)#bridge ?
<num> - number of bridge group
FREERTR(cfg)#bridge 1 ?
<cr>
Warning
Do not forget to export bridge(s) into server p4lang so that the dataplane will take it into account into its hardware forwarding operation
Virtual routing forwarding (Wikipedia) ¶
Virtual Routing Forwarding (VRF)is a technology included inIP (Internet Protocol)network routers that allows users to configure multiple routing table instances to simultaneously co-exist within the same router.VRFsare used for network isolation/virtualization at Layer 3 of the OSI model, the overlappingIP addressescan be used without conflicting because the multiple routing instances are independent and can select different outgoing interfaces. AVRFrequires aforwarding tablethat designates thenext-hopfor each data packet, a list of devices that may be called upon to forward the packet and a set of rules and routing protocols that govern how the packets will be forwarded. These tables prevent traffic from being forwarded outside a specificVRF pathand also keep out traffic that should remain outside theVRF path. Thus, the packets will be forwarded only between interfaces thatbelongs to the same VRF.
In RARE/freeRtr, vrf in RARE/FreeRtr can be configured with the following command:
AMS0001(cfg)#vrf definition MY_?
type <name> to name of vrf
AMS0001(cfg)#vrf definition MY_VRF ?
<cr>
AMS0001(cfg)#exit
Warning
Do not forget to export vrf(s) into server p4lang so that the dataplane will take it into account into its hardware forwarding operation