|
56 | 56 | subnet: 10.10.100.0/24 |
57 | 57 | vlan: 1100 |
58 | 58 |
|
| 59 | + bgp-on-host: # Another subnet with hosts peering with leaves via BGP |
| 60 | + subnet: 10.10.50.0/25 |
| 61 | + hostBGP: true |
| 62 | +
|
59 | 63 | permit: # Defines which subnets of the current VPC can communicate to each other, applied on top of subnets "isolated" flag (doesn't affect VPC peering) |
60 | 64 | - [subnet-1, subnet-2, subnet-3] # 1, 2 and 3 subnets can communicate to each other |
61 | 65 | - [subnet-4, subnet-5] # Possible to define multiple lists |
@@ -108,6 +112,24 @@ packet: |
108 | 112 | Fabric and will be in `VrfV<VPC-name>` format, for example `VrfVvpc-1` for a VPC named `vpc-1` in the Fabric API. |
109 | 113 | * _CircuitID_ (suboption 1) identifies the VLAN which, together with the VRF (VPC) name, maps to a specific VPC subnet. |
110 | 114 |
|
| 115 | +### HostBGP subnets |
| 116 | + |
| 117 | +At times, it is useful to have BGP running directly on the host and peering with the Fabric: one such case is |
| 118 | +to support active-active multi-homed servers, or simply to have redundancy when other techniques such |
| 119 | +as MCLAG or ESLAG are not available, for example because of hardware limitations. |
| 120 | + |
| 121 | +Consider this scenario: `server-1` is connected to two different Fabric switches `sw-1` and `sw-2`, and attached to |
| 122 | +`vpc-1/subnet-1` on both of them. This subnet is configured as `hostBGP`; the switches will be configured to peer with |
| 123 | +`server-1` using unnumbered BGP (IPv4 unicast address family), only importing /32 prefixes in the subnet of the VPC and |
| 124 | +exporting routes learned from other VPC peers. Similarly, BGP is running on `server-1`, unnumbered BGP sessions are |
| 125 | +established with each leaf, and one or more Virtual IPs (VIPs) in the VPC subnet are advertised. With this setup, the |
| 126 | +host is part of the VPC and can be reached via one of the advertised VIPs from either link to the Fabric. |
| 127 | + |
| 128 | +It is important to keep in mind that Hedgehog Fabric does not directly operate the host servers attached to it; |
| 129 | +running subnets in HostBGP mode requires running a routing suite and configuring it accordingly. To facilitate this |
| 130 | +process, however, we do provide a container image which can autogenerate a valid configuration, given some input parameters. |
| 131 | +For more details, see [the related section in the Host Settings page](host-settings.md#hostbgp-container). |
| 132 | + |
111 | 133 | ## VPCAttachment |
112 | 134 |
|
113 | 135 | A VPCAttachment represents a specific VPC subnet assignment to the `Connection` object which means a binding between an |
@@ -279,5 +301,3 @@ user@server ~$ ip route |
279 | 301 | 10.10.0.1/24 via 10.10.0.1 dev enp2s1.1000 proto dhcp src 10.10.0.4 metric 1024 # Route for VPC subnet gateway |
280 | 302 | 10.10.0.1 dev enp2s1.1000 proto dhcp scope link src 10.10.0.4 metric 1024 |
281 | 303 | ``` |
282 | | - |
283 | | - |
|
0 commit comments