22
33VLAB also supports virtual [ externals] ( ../user-guide/external.md ) . These are implemented using
44a virtual machine running [ FRR] ( https://frrouting.org/ ) , which is automatically configured
5- from the topology information to behave like one or more BGP instances advertising a default
6- route towards the internet (assuming the host running the VLAB is connected to the internet).
5+ from the topology information. In the case of BGP-speaking externals, this means running one or
6+ more BGP instances advertising a default route towards the internet (assuming the host running
7+ the VLAB is connected to the internet). For L2 externals, there will be just a direct connection
8+ to an endpoint connected to the internet, with the appropriate static routes configured on the
9+ endpoint to ensure that forwarding will work correctly.
710
8- Here we will explain how to generate a topology with a virtual external, and how to test it
11+ Here we will explain how to generate a topology with a BGP-speaking virtual external, and how to test it
912using either Fabric or Gateway external peerings.
1013
1114## Creating the topology
@@ -22,7 +25,7 @@ a mesh one.
2225 This limitation does not apply to physical switches.
2326
2427The example below shows how to initialize and generate a spine-leaf topology with two
25- ESLAG leaves, one orphan leaf with a virtual external attached to it, and a gateway
28+ ESLAG leaves, one orphan leaf with a virtual BGP-speaking external attached to it, and a gateway
2629attached to the two spines:
2730
2831```
@@ -31,7 +34,7 @@ ubuntu@docs:~/hhfab$ ./hhfab init -f --dev --gw
313409:27:35 INF Generated initial config
323509:27:35 INF Adjust configs (incl. credentials, modes, subnets, etc.) file=fab.yaml
333609:27:35 INF Include wiring (fabric/gateway) files (.yaml) or adjust imported ones dir=include
34- ubuntu@docs:~/hhfab$ ./hhfab vlab gen --mclag-leafs-count=0 --eslag-leaf-groups=2 --orphan-leafs-count=1 --externals=1 --external-orphan-connections=1
37+ ubuntu@docs:~/hhfab$ ./hhfab vlab gen --mclag-leafs-count=0 --eslag-leaf-groups=2 --orphan-leafs-count=1 --externals-bgp =1 --external-orphan-connections=1
353809:28:36 INF Hedgehog Fabricator version=v0.43.1
363909:28:36 INF Building VLAB wiring diagram fabricMode=spine-leaf
374009:28:36 INF >>> spinesCount=2 fabricLinksCount=2 meshLinksCount=0
@@ -40,7 +43,7 @@ ubuntu@docs:~/hhfab$ ./hhfab vlab gen --mclag-leafs-count=0 --eslag-leaf-groups=
404309:28:36 INF >>> mclagLeafsCount=0 mclagSessionLinks=0 mclagPeerLinks=0
414409:28:36 INF >>> orphanLeafsCount=1
424509:28:36 INF >>> mclagServers=0 eslagServers=2 unbundledServers=1 bundledServers=1
43- 09:28:36 INF >>> externalCount=1 externalMclagConnCount=0 externalEslagConnCount=0 externalOrphanConnCount=1
46+ 09:28:36 INF >>> externalBGPCount=1 externalL2Count=0 externalMclagConnCount=0 externalEslagConnCount=0 externalOrphanConnCount=1
444709:28:36 INF Generated wiring file name=vlab.generated.yaml
4548ubuntu@docs:~/hhfab$ ./hhfab vlab up -f -m=manual -r=wait
464909:31:53 INF Hedgehog Fabricator version=v0.43.1
0 commit comments