]> git.proxmox.com Git - mirror_frr.git/blob - doc/user/vnc.rst
Merge pull request #8139 from volta-networks/fix_ospf6_show_database
[mirror_frr.git] / doc / user / vnc.rst
1 .. _vnc-and-vnc-gw:
2
3 **************
4 VNC and VNC-GW
5 **************
6
7 This chapter describes how to use :abbr:`VNC (Virtual Network Control)`
8 services, including :abbr:`NVA (Network Virtualization Authority)` and
9 :abbr:`VNC-GW (VNC Gateway)` functions. Background information on NVAs,
10 :abbr:`NVE (Network Virtualization Edge)` s, :abbr:`UN (Underlay Network)` s,
11 and :abbr:`VN (Virtual Network)` is available from the
12 `IETF <https://datatracker.ietf.org/wg/nvo3>`_. :abbr:`VNC-GW (VNC Gateway)` s
13 support the import/export of routing information between VNC and :abbr:`CE
14 (customer edge)` routers operating within a VN. Both IP/Layer 3 (L3) VNs, and
15 IP with Ethernet/Layer 2 (L2) VNs are supported.
16
17 BGP, with IP VPNs and Tunnel Encapsulation, is used to distribute VN
18 information between NVAs. BGP based IP VPN support is defined in :rfc:`4364`,
19 and :rfc:`4659`. Encapsulation information is provided via the Tunnel
20 Encapsulation Attribute, :rfc:`5512`.
21
22 The protocol that is used to communicate routing and Ethernet / Layer 2 (L2)
23 forwarding information between NVAs and NVEs is referred to as the Remote
24 Forwarder Protocol (RFP). `OpenFlow` is an example RFP. Specific RFP
25 implementations may choose to implement either a `hard-state` or `soft-state`
26 prefix and address registration model. To support a `soft-state` refresh model,
27 a `lifetime` in seconds is associated with all registrations and responses.
28
29 The chapter also provides sample configurations for basic example scenarios.
30
31 .. _configuring-vnc:
32
33 Configuring VNC
34 ===============
35
36 Virtual Network Control (:abbr:`VNC`) service configuration commands appear in
37 the `router bgp` section of the BGPD configuration file
38 (:ref:`bgp-configuration-examples`). The commands are broken down into the
39 following areas:
40
41 - :dfn:`General VNC` configuration applies to general VNC operation and is
42 primarily used to control the method used to advertise tunnel information.
43
44 - :dfn:`Remote Forwarder Protocol (RFP)` configuration relates to the protocol
45 used between NVAs and NVEs.
46
47 - :dfn:`VNC Defaults` provides default parameters for registered NVEs.
48
49 - :dfn:`VNC NVE Group` provides for configuration of a specific set of
50 registered NVEs and overrides default parameters.
51
52 - :dfn:`Redistribution` and :dfn:`Export` control VNC-GW operation, i.e., the
53 import/export of routing information between VNC and customer edge routers
54 (:abbr:`CE` s) operating within a VN.
55
56
57 .. _general-vnc-configuration:
58
59 General VNC Configuration
60 -------------------------
61
62 .. _rfp-related-configuration:
63
64 RFP Related Configuration
65 -------------------------
66
67 The protocol that is used to communicate routing and Ethernet / L2 forwarding
68 information between NVAs and NVEs is referred to as the Remote Forwarder
69 Protocol (RFP). Currently, only a simple example RFP is included in FRR.
70 Developers may use this example as a starting point to integrate FRR with an
71 RFP of their choosing, e.g., `OpenFlow`. The example code includes the
72 following sample configuration:
73
74 .. clicmd:: rfp example-config-value VALUE
75
76 This is a simple example configuration parameter included as part of the RFP
77 example code. VALUE must be in the range of 0 to 4294967295.
78
79 .. _vnc-defaults-configuration:
80
81 VNC Defaults Configuration
82 --------------------------
83
84 The VNC Defaults section allows the user to specify default values for
85 configuration parameters for all registered NVEs.
86 Default values are overridden by :ref:`vnc-nve-group-configuration`.
87
88 .. clicmd:: vnc defaults
89
90 Enter VNC configuration mode for specifying VNC default behaviors. Use
91 `exit-vnc` to leave VNC configuration mode. `vnc defaults` is optional.
92
93 .. code-block:: frr
94
95 vnc defaults
96 ... various VNC defaults
97 exit-vnc
98
99
100 These are the statements that can appear between ``vnc defaults`` and
101 ``exit-vnc``. Documentation for these statements is given in
102 :ref:`vnc-nve-group-configuration`.
103
104 - :clicmd:`rt import RT-LIST`
105 - :clicmd:`rt export RT-LIST`
106 - :clicmd:`rt both RT-LIST`
107 - :clicmd:`rd ROUTE-DISTINGUISHER`
108 - :clicmd:`l2rd NVE-ID-VALUE`
109 - :clicmd:`response-lifetime LIFETIME|infinite`
110 - :clicmd:`export bgp|zebra route-map MAP-NAME`
111 - :clicmd:`export bgp|zebra no route-map`
112
113 .. clicmd:: exit-vnc
114
115 Exit VNC configuration mode.
116
117 .. _vnc-nve-group-configuration:
118
119 VNC NVE Group Configuration
120 ---------------------------
121
122 A NVE Group corresponds to a specific set of NVEs. A Client NVE is
123 assigned to an NVE Group based on whether there is a match for either
124 its virtual or underlay network address against the VN and/or UN address
125 prefixes specified in the NVE Group definition. When an NVE Group
126 definition specifies both VN and UN address prefixes, then an NVE must
127 match both prefixes in order to be assigned to the NVE Group. In the
128 event that multiple NVE Groups match based on VN and/or UN addresses,
129 the NVE is assigned to the first NVE Group listed in the configuration.
130 If an NVE is not assigned to an NVE Group, its messages will be ignored.
131
132 Configuration values specified for an NVE group apply to all
133 member NVEs and override configuration values specified in the VNC
134 Defaults section.
135
136 **At least one `nve-group` is mandatory for useful VNC operation.**
137
138 .. clicmd:: vnc nve-group NAME
139
140 Enter VNC configuration mode for defining the NVE group `name`.
141 Use `exit` or `exit-vnc` to exit group configuration mode.
142
143 .. code-block:: frr
144
145 vnc nve-group group1
146 ... configuration commands
147 exit-vnc
148
149
150 The following statements are valid in an NVE group definition:
151
152 .. clicmd:: l2rd NVE-ID-VALUE
153
154 Set the value used to distinguish NVEs connected to the same physical
155 Ethernet segment (i.e., at the same location) [#]_.
156
157 The nve-id subfield may be specified as either a literal value in the range
158 1-255, or it may be specified as `auto:vn`, which means to use the
159 least-significant octet of the originating NVE's VN address.
160
161 .. clicmd:: prefix vn|un A.B.C.D/M|X:X::X:X/M
162
163 Specify the matching prefix for this NVE group by either virtual-network
164 address (`vn`) or underlay-network address (`un`). Either or both
165 virtual-network and underlay-network prefixes may be specified. Subsequent
166 virtual-network or underlay-network values within a `vnc nve-group`
167 `exit-vnc` block override their respective previous values.
168
169 These prefixes are used only for determining assignments of NVEs to NVE
170 Groups.
171
172 .. clicmd:: rd ROUTE-DISTINGUISHER
173
174 Specify the route distinguisher for routes advertised via BGP
175 VPNs. The route distinguisher must be in one of these forms:
176
177 - ``IPv4-address:two-byte-integer``
178 - ``four-byte-autonomous-system-number:two-byte-integer``
179 - ``two-byte-autonomous-system-number:four-byte-integer``
180 - ``auto:vn:two-byte-integer``
181
182 Routes originated by NVEs in the NVE group will use the group's specified
183 `route-distinguisher` when they are advertised via BGP. If the `auto` form
184 is specified, it means that a matching NVE has its RD set to
185 ``rd_type=IP=1:IPv4-address=VN-address:two-byte-integer``, for IPv4 VN
186 addresses and
187 ``rd_type=IP=1:IPv4-address=Last-four-bytes-of-VN-address:two-byte-integer``,
188 for IPv6 VN addresses.
189
190 If the NVE group definition does not specify a `route-distinguisher`, then
191 the default `route-distinguisher` is used. If neither a group nor a default
192 `route-distinguisher` is configured, then the advertised RD is set to
193 ``two-byte-autonomous-system-number=0:four-byte-integer=0``.
194
195 .. clicmd:: response-lifetime LIFETIME|infinite
196
197 Specify the response lifetime, in seconds, to be included in RFP response
198 messages sent to NVEs. If the value 'infinite' is given, an infinite
199 lifetime will be used.
200
201 Note that this parameter is not the same as the lifetime supplied by NVEs in
202 RFP registration messages. This parameter does not affect the lifetime value
203 attached to routes sent by this server via BGP.
204
205 If the NVE group definition does not specify a `response-lifetime`, the
206 default `response-lifetime` will be used. If neither a group nor a default
207 `response-lifetime` is configured, the value 3600 will be used. The maximum
208 response lifetime is 2147483647.
209
210 .. clicmd:: rt export RT-LIST
211
212 .. clicmd:: rt import RT-LIST
213
214 .. clicmd:: rt both RT-LIST
215
216 Specify route target import and export lists. `rt-list` is a
217 space-separated list of route targets, each element of which is
218 in one of the following forms:
219
220 - ``IPv4-address:two-byte-integer``
221 - ``four-byte-autonomous-system-number:two-byte-integer``
222 - ``two-byte-autonomous-system-number:four-byte-integer``
223
224 The first form, `rt export`, specifies an `export rt-list`. The `export
225 rt-list` will be attached to routes originated by NVEs in the NVE group
226 when they are advertised via BGP. If the NVE group definition does not
227 specify an `export rt-list`, then the default `export rt-list` is used.
228 If neither a group nor a default `export rt-list` is configured, then no
229 RT list will be sent; in turn, these routes will probably not be
230 processed by receiving NVAs.
231
232 The second form, `rt import` specifies an `import rt-list`, which is a
233 filter for incoming routes. In order to be made available to NVEs in the
234 group, incoming BGP VPN routes must have RT lists that have at least one
235 route target in common with the group's `import rt-list`.
236
237 If the NVE group definition does not specify an import filter, then the
238 default `import rt-list` is used. If neither a group nor a default
239 `import rt-list` is configured, there can be no RT intersections when
240 receiving BGP routes and therefore no incoming BGP routes will be
241 processed for the group.
242
243 The third, `rt both`, is a shorthand way of specifying both lists
244 simultaneously, and is equivalent to `rt export `rt-list`` followed by
245 `rt import `rt-list``.
246
247 .. clicmd:: export bgp|zebra route-map MAP-NAME
248
249 Specify that the named route-map should be applied to routes being exported
250 to bgp or zebra. This parameter is used in conjunction with
251 :ref:`configuring-export-of-routes-to-other-routing-protocols`. This item
252 is optional.
253
254 .. clicmd:: export bgp|zebra no route-map
255
256 Specify that no route-map should be applied to routes being exported to bgp
257 or zebra. This parameter is used in conjunction with
258 :ref:`configuring-export-of-routes-to-other-routing-protocols`. This item
259 is optional.
260
261 .. clicmd:: export bgp|zebra ipv4|ipv6 prefix-list LIST-NAME
262
263 Specify that the named prefix-list filter should be applied to routes being
264 exported to bgp or zebra. Prefix-lists for ipv4 and ipv6 are independent of
265 each other. This parameter is used in conjunction with
266 :ref:`configuring-export-of-routes-to-other-routing-protocols`. This item
267 is optional.
268
269 .. clicmd:: export bgp|zebra no ipv4|ipv6 prefix-list
270
271 Specify that no prefix-list filter should be applied to routes being
272 exported to bgp or zebra. This parameter is used in conjunction with
273 :ref:`configuring-export-of-routes-to-other-routing-protocols`. This item
274 is optional.
275
276 .. _vnc-l2-group-configuration:
277
278 VNC L2 Group Configuration
279 --------------------------
280
281 The route targets advertised with prefixes and addresses registered by an NVE
282 are determined based on the NVE's associated VNC NVE Group Configuration,
283 :ref:`vnc-nve-group-configuration`. Layer 2 (L2) Groups are used to override
284 the route targets for an NVE's Ethernet registrations based on the Logical
285 Network Identifier and label value. A Logical Network Identifier is used to
286 uniquely identify a logical Ethernet segment and is conceptually similar to the
287 Ethernet Segment Identifier defined in :rfc:`7432`. Both the Logical Network
288 Identifier and Label are passed to VNC via RFP prefix and address registration.
289
290 Note that a corresponding NVE group configuration must be present, and that
291 other NVE associated configuration information, notably RD, is not impacted by
292 L2 Group Configuration.
293
294 .. clicmd:: vnc l2-group NAME
295
296 Enter VNC configuration mode for defining the L2 group `name`.
297 Use `exit` or `exit-vnc` to exit group configuration mode.
298
299 .. code-block:: frr
300
301 vnc l2-group group1
302 ... configuration commands
303 exit-vnc
304
305
306
307 Delete the L2 group named `name`.
308
309 The following statements are valid in a L2 group definition:
310
311 .. clicmd:: logical-network-id VALUE
312
313 Define the Logical Network Identifier with a value in the range of
314 0-4294967295 that identifies the logical Ethernet segment.
315
316 .. clicmd:: labels LABEL-LIST
317
318
319 Add or remove labels associated with the group. `label-list` is a
320 space separated list of label values in the range of 0-1048575.
321
322 .. clicmd:: rt import RT-TARGET
323
324 .. clicmd:: rt export RT-TARGET
325
326 .. clicmd:: rt both RT-TARGET
327
328 Specify the route target import and export value associated with the group.
329 A complete definition of these parameters is given above,
330 :ref:`vnc-nve-group-configuration`.
331
332 .. _configuring-redistribution-of-routes-from-other-routing-protocols:
333
334 Configuring Redistribution of Routes from Other Routing Protocols
335 -----------------------------------------------------------------
336
337 Routes from other protocols (including BGP) can be provided to VNC (both for
338 RFP and for redistribution via BGP) from three sources: the zebra kernel
339 routing process; directly from the main (default) unicast BGP RIB; or directly
340 from a designated BGP unicast exterior routing RIB instance.
341
342 The protocol named in the `vnc redistribute` command indicates the route
343 source: `bgp-direct` routes come directly from the main (default) unicast BGP
344 RIB and are available for RFP and are redistributed via BGP;
345 `bgp-direct-to-nve-groups` routes come directly from a designated BGP unicast
346 routing RIB and are made available only to RFP; and routes from other protocols
347 come from the zebra kernel routing process.
348 Note that the zebra process does not need to be active if
349 only `bgp-direct` or `bgp-direct-to-nve-groups` routes are used.
350
351 zebra routes
352 ^^^^^^^^^^^^
353
354 Routes originating from protocols other than BGP must be obtained
355 via the zebra routing process.
356 Redistribution of these routes into VNC does not support policy mechanisms
357 such as prefix-lists or route-maps.
358
359 bgp-direct routes
360 ^^^^^^^^^^^^^^^^^
361
362 `bgp-direct` redistribution supports policy via
363 prefix lists and route-maps. This policy is applied to incoming
364 original unicast routes before the redistribution translations
365 (described below) are performed.
366
367 Redistribution of `bgp-direct` routes is performed in one of three
368 possible modes: `plain`, `nve-group`, or `resolve-nve`.
369 The default mode is `plain`.
370 These modes indicate the kind of translations applied to routes before
371 they are added to the VNC RIB.
372
373 In `plain` mode, the route's next hop is unchanged and the RD is set
374 based on the next hop.
375 For `bgp-direct` redistribution, the following translations are performed:
376
377 - The VN address is set to the original unicast route's next hop address.
378 - The UN address is NOT set. (VN->UN mapping will occur via
379 ENCAP route or attribute, based on `vnc advertise-un-method`
380 setting, generated by the RFP registration of the actual NVE)
381 - The RD is set to as if auto:vn:0 were specified (i.e.,
382 `rd_type=IP=1`:`IPv4-address=VN-address`:`two-byte-integer=0`)
383 - The RT list is included in the extended community list copied from the
384 original unicast route (i.e., it must be set in the original unicast route).
385
386 In `nve-group` mode, routes are registered with VNC as if they came from an NVE
387 in the nve-group designated in the `vnc redistribute nve-group` command. The
388 following translations are performed:
389
390 - The next hop/VN address is set to the VN prefix configured for the
391 redistribute nve-group.
392 - The UN address is set to the UN prefix configured for the redistribute
393 nve-group.
394 - The RD is set to the RD configured for the redistribute nve-group.
395 - The RT list is set to the RT list configured for the redistribute nve-group.
396 If `bgp-direct` routes are being redistributed, any extended communities
397 present in the original unicast route will also be included.
398
399 In `resolve-nve` mode, the next hop of the original BGP route is typically the
400 address of an NVE connected router (CE) connected by one or more NVEs.
401 Each of the connected NVEs will register, via RFP, a VNC host route to the CE.
402 This mode may be though of as a mechanism to proxy RFP registrations of BGP
403 unicast routes on behalf of registering NVEs.
404
405 Multiple copies of the BGP route, one per matching NVE host route, will be
406 added to VNC. In other words, for a given BGP unicast route, each instance of
407 a RFP-registered host route to the unicast route's next hop will result in an
408 instance of an imported VNC route. Each such imported VNC route will have a
409 prefix equal to the original BGP unicast route's prefix, and a next hop equal
410 to the next hop of the matching RFP-registered host route. If there is no
411 RFP-registered host route to the next hop of the BGP unicast route, no
412 corresponding VNC route will be imported.
413
414 The following translations are applied:
415
416 - The Next Hop is set to the next hop of the NVE route (i.e., the
417 VN address of the NVE).
418
419 - The extended community list in the new route is set to the
420 union of:
421
422 - Any extended communities in the original BGP route
423
424 - Any extended communities in the NVE route
425 - An added route-origin extended community with the next hop of the
426 original BGP route
427 is added to the new route.
428 The value of the local administrator field defaults 5226 but may
429 be configured by the user via the `roo-ec-local-admin` parameter.
430
431 - The Tunnel Encapsulation attribute is set to the value of the Tunnel
432 Encapsulation attribute of the NVE route, if any.
433
434
435 bgp-direct-to-nve-groups routes
436 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
437
438 Unicast routes from the main or a designated instance of BGP may be
439 redistributed to VNC as bgp-direct-to-nve-groups routes. These routes are NOT
440 announced via BGP, but they are made available for local RFP lookup in response
441 to queries from NVEs.
442
443 A non-main/default BGP instance is configured using the
444 `router bgp AS view NAME` command as described elsewhere in this document.
445
446 In order for a route in the unicast BGP RIB to be made available to a querying
447 NVE, there must already be, available to that NVE, an (interior) VNC route
448 matching the next hop address of the unicast route. When the unicast route is
449 provided to the NVE, its next hop is replaced by the next hop of the
450 corresponding NVE. If there are multiple longest-prefix-match VNC routes, the
451 unicast route will be replicated for each.
452
453 There is currently no policy (prefix-list or route-map) support for
454 `bgp-direct-to-nve-groups` routes.
455
456 Redistribution Command Syntax
457 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
458
459 .. clicmd:: vnc redistribute ipv4|ipv6 bgp|bgp-direct|ipv6 bgp-direct-to-nve-groups|connected|kernel|ospf|rip|static
460
461 .. clicmd:: vnc redistribute ipv4|ipv6 bgp-direct-to-nve-groups view VIEWNAME
462
463
464 Import (or do not import) prefixes from another routing protocols. Specify
465 both the address family to import (`ipv4` or `ipv6`) and the protocol
466 (`bgp`, `bgp-direct`, `bgp-direct-to-nve-groups`, `connected`, `kernel`,
467 `ospf`, `rip`, or `static`). Repeat this statement as needed for each
468 combination of address family and routing protocol. Prefixes from protocol
469 `bgp-direct` are imported from unicast BGP in the same bgpd process.
470 Prefixes from all other protocols (including `bgp`) are imported via the
471 `zebra` kernel routing process.
472
473 .. clicmd:: vnc redistribute mode plain|nve-group|resolve-nve
474
475 Redistribute routes from other protocols into VNC using the specified mode.
476 Not all combinations of modes and protocols are supported.
477
478 .. clicmd:: vnc redistribute nve-group GROUP-NAME
479
480
481 When using `nve-group` mode, assign (or do not assign) the NVE group
482 `group-name` to routes redistributed from another routing protocol.
483 `group-name` must be configured using `vnc nve-group`.
484
485 The VN and UN prefixes of the nve-group must both be configured, and each
486 prefix must be specified as a full-length (/32 for IPv4, /128 for IPv6)
487 prefix.
488
489 .. clicmd:: vnc redistribute lifetime LIFETIME|infinite
490
491 Assign a registration lifetime, either `lifetime` seconds or `infinite`, to
492 prefixes redistributed from other routing protocols as if they had been
493 received via RFP registration messages from an NVE. `lifetime` can be any
494 integer between 1 and 4294967295, inclusive.
495
496 .. clicmd:: vnc redistribute resolve-nve roo-ec-local-admin 0-65536
497
498 Assign a value to the local-administrator subfield used in the
499 Route Origin extended community that is assigned to routes exported
500 under the `resolve-nve` mode. The default value is `5226`.
501
502 The following four `prefix-list` and `route-map` commands may be specified
503 in the context of an nve-group or not. If they are specified in the context
504 of an nve-group, they apply only if the redistribution mode is `nve-group`,
505 and then only for routes being redistributed from `bgp-direct`. If they are
506 specified outside the context of an nve-group, then they apply only for
507 redistribution modes `plain` and `resolve-nve`, and then only for routes
508 being redistributed from `bgp-direct`.
509
510 .. clicmd:: vnc redistribute bgp-direct (ipv4|ipv6) prefix-list LIST-NAME
511
512 When redistributing `bgp-direct` routes,
513 specifies that the named prefix-list should be applied.
514
515 .. clicmd:: vnc redistribute bgp-direct no (ipv4|ipv6) prefix-list
516
517 When redistributing `bgp-direct` routes,
518 specifies that no prefix-list should be applied.
519
520 .. clicmd:: vnc redistribute bgp-direct route-map MAP-NAME
521
522 When redistributing `bgp-direct` routes,
523 specifies that the named route-map should be applied.
524
525 .. clicmd:: vnc redistribute bgp-direct no route-map
526
527 When redistributing `bgp-direct` routes,
528 specifies that no route-map should be applied.
529
530 .. _configuring-export-of-routes-to-other-routing-protocols:
531
532 Configuring Export of Routes to Other Routing Protocols
533 -------------------------------------------------------
534
535 Routes from VNC (both for RFP and for redistribution via BGP) can be provided
536 to other protocols, either via zebra or directly to BGP.
537
538 It is important to note that when exporting routes to other protocols, the
539 downstream protocol must also be configured to import the routes. For example,
540 when VNC routes are exported to unicast BGP, the BGP configuration must include
541 a corresponding `redistribute vnc-direct` statement.
542
543 .. clicmd:: export bgp|zebra mode none|group-nve|registering-nve|ce
544
545 Specify how routes should be exported to bgp or zebra. If the mode is
546 `none`, routes are not exported. If the mode is `group-nve`, routes are
547 exported according to nve-group or vrf-policy group configuration
548 (:ref:`vnc-nve-group-configuration`): if a group is configured to allow
549 export, then each prefix visible to the group is exported with next hops set
550 to the currently-registered NVEs. If the mode is `registering-nve`, then all
551 VNC routes are exported with their original next hops. If the mode is `ce`,
552 only VNC routes that have an NVE connected CE Router encoded in a Route
553 Origin Extended Community are exported. This extended community must have an
554 administrative value that matches the configured `roo-ec-local-admin` value.
555 The next hop of the exported route is set to the encoded NVE connected CE
556 Router.
557
558 The default for both bgp and zebra is mode `none`.
559
560 .. clicmd:: vnc export bgp|zebra group-nve group GROUP-NAME
561
562 .. clicmd:: vnc export bgp|zebra group-nve no group GROUP-NAME
563
564 When export mode is `group-nve`, export (or do not export) prefixes from the
565 specified nve-group or vrf-policy group to unicast BGP or to zebra. Repeat
566 this statement as needed for each nve-group to be exported. Each VNC prefix
567 that is exported will result in N exported routes to the prefix, each with a
568 next hop corresponding to one of the N NVEs currently associated with the
569 nve-group.
570
571 Some commands have a special meaning under certain export modes.
572
573 :clicmd:`export bgp|zebra ipv4|ipv6 prefix-list LIST-NAME`
574 When export mode is `ce` or `registering-nve`,
575 specifies that the named prefix-list should be applied to routes
576 being exported to bgp or zebra.
577 Prefix-lists for ipv4 and ipv6 are independent of each other.
578
579 :clicmd:`export bgp|zebra no ipv4|ipv6 prefix-list`
580 When export mode is `ce` or `registering-nve`,
581 specifies that no prefix-list should be applied to routes
582 being exported to bgp or zebra.
583
584 :clicmd:`export bgp|zebra route-map MAP-NAME`
585 When export mode is `ce` or `registering-nve`, specifies that the named
586 route-map should be applied to routes being exported to bgp or zebra.
587
588 :clicmd:`export bgp|zebra no route-map`
589 When export mode is `ce` or `registering-nve`, specifies that no route-map
590 should be applied to routes being exported to bgp or zebra.
591
592 When the export mode is `group-nve`, policy for exported routes is specified
593 per-NVE-group or vrf-policy group inside a `nve-group` `RFG-NAME` block via
594 the following commands(:ref:`vnc-nve-group-configuration`):
595
596 :clicmd:`export bgp|zebra route-map MAP-NAME`
597 This command is valid inside a `nve-group` `RFG-NAME` block. It specifies
598 that the named route-map should be applied to routes being exported to bgp
599 or zebra.
600
601 :clicmd:`export bgp|zebra no route-map`
602 This command is valid inside a `nve-group` `RFG-NAME` block. It specifies
603 that no route-map should be applied to routes being exported to bgp or
604 zebra.
605
606 :clicmd:`export bgp|zebra ipv4|ipv6 prefix-list LIST-NAME`
607 This command is valid inside a `nve-group` `RFG-NAME` block. It specifies
608 that the named prefix-list filter should be applied to routes being exported
609 to bgp or zebra. Prefix-lists for ipv4 and ipv6 are independent of each
610 other.
611
612 :clicmd:`export bgp|zebra no ipv4|ipv6 prefix-list`
613 This command is valid inside a `nve-group` `RFG-NAME` block. It specifies
614 that no prefix-list filter should be applied to routes being exported to
615 bgp or zebra.
616
617 .. _manual-address-control:
618
619 Manual Address Control
620 ======================
621
622 The commands in this section can be used to augment normal dynamic VNC. The
623 `add vnc` commands can be used to manually add IP prefix or Ethernet MAC
624 address forwarding information. The `clear vnc` commands can be used to remove
625 manually and dynamically added information.
626
627 .. clicmd:: add vnc prefix (A.B.C.D/M|X:X::X:X/M) vn (A.B.C.D|X:X::X:X) un (A.B.C.D|X:X::X:X) [cost (0-255)] [lifetime (infinite|(1-4294967295))] [local-next-hop (A.B.C.D|X:X::X:X) [local-cost (0-255)]]
628
629 Register an IP prefix on behalf of the NVE identified by the VN and UN
630 addresses. The `cost` parameter provides the administrative preference of
631 the forwarding information for remote advertisement. If omitted, it defaults
632 to 255 (lowest preference). The `lifetime` parameter identifies the period,
633 in seconds, that the information remains valid. If omitted, it defaults to
634 `infinite`. The optional `local-next-hop` parameter is used to configure a
635 nexthop to be used by an NVE to reach the prefix via a locally connected CE
636 router. This information remains local to the NVA, i.e., not passed to other
637 NVAs, and is only passed to registered NVEs. When specified, it is also
638 possible to provide a `local-cost` parameter to provide a forwarding
639 preference. If omitted, it defaults to 255 (lowest preference).
640
641 .. clicmd:: add vnc mac xx:xx:xx:xx:xx:xx virtual-network-identifier (1-4294967295) vn (A.B.C.D|X:X::X:X) un (A.B.C.D|X:X::X:X) [prefix (A.B.C.D/M|X:X::X:X/M)] [cost (0-255)] [lifetime (infinite|(1-4294967295))]
642
643 Register a MAC address for a logical Ethernet (L2VPN) on behalf of the NVE
644 identified by the VN and UN addresses. The optional `prefix` parameter is to
645 support enable IP address mediation for the given prefix. The `cost`
646 parameter provides the administrative preference of the forwarding
647 information. If omitted, it defaults to 255. The `lifetime` parameter
648 identifies the period, in seconds, that the information remains valid. If
649 omitted, it defaults to `infinite`.
650
651 .. clicmd:: clear vnc prefix (\*|A.B.C.D/M|X:X::X:X/M) (\*|[(vn|un) (A.B.C.D|X:X::X:X|\*) [(un|vn) (A.B.C.D|X:X::X:X|\*)] [mac xx:xx:xx:xx:xx:xx] [local-next-hop (A.B.C.D|X:X::X:X)])
652
653 Delete the information identified by prefix, VN address, and UN address.
654 Any or all of these parameters may be wildcarded to (potentially) match more
655 than one registration. The optional `mac` parameter specifies a layer-2 MAC
656 address that must match the registration(s) to be deleted. The optional
657 `local-next-hop` parameter is used to delete specific local nexthop
658 information.
659
660 .. clicmd:: clear vnc mac (\*|xx:xx:xx:xx:xx:xx) virtual-network-identifier (\*|(1-4294967295)) (\*|[(vn|un) (A.B.C.D|X:X::X:X|\*) [(un|vn) (A.B.C.D|X:X::X:X|\*)] [prefix (\*|A.B.C.D/M|X:X::X:X/M)])
661
662 Delete mac forwarding information. Any or all of these parameters may be
663 wildcarded to (potentially) match more than one registration. The default
664 value for the `prefix` parameter is the wildcard value `*`.
665
666 .. clicmd:: clear vnc nve (\*|((vn|un) (A.B.C.D|X:X::X:X) [(un|vn) (A.B.C.D|X:X::X:X)]))
667
668 Delete prefixes associated with the NVE specified by the given VN and UN
669 addresses. It is permissible to specify only one of VN or UN, in which case
670 any matching registration will be deleted. It is also permissible to specify
671 `*` in lieu of any VN or UN address, in which case all registrations will
672 match.
673
674 .. _other-vnc-related-commands:
675
676 Other VNC-Related Commands
677 ==========================
678
679 Note: VNC-Related configuration can be obtained via the `show
680 running-configuration` command when in `enable` mode.
681
682 The following commands are used to clear and display Virtual Network Control
683 related information:
684
685 .. clicmd:: clear vnc counters
686
687 Reset the counter values stored by the NVA. Counter
688 values can be seen using the `show vnc` commands listed above. This
689 command is only available in `enable` mode.
690
691 .. clicmd:: show vnc summary
692
693 Print counter values and other general information
694 about the NVA. Counter values can be reset
695 using the `clear vnc counters` command listed below.
696
697 .. clicmd:: show vnc nves
698
699 .. clicmd:: show vnc nves vn|un ADDRESS
700
701 Display the NVA's current clients. Specifying `address` limits the output to
702 the NVEs whose addresses match `address`. The time since the NVA last
703 communicated with the NVE, per-NVE summary counters and each NVE's addresses
704 will be displayed.
705
706 .. clicmd:: show vnc queries
707
708 .. clicmd:: show vnc queries PREFIX
709
710 Display active Query information. Queries remain valid for the default
711 Response Lifetime (:ref:`vnc-defaults-configuration`) or NVE-group Response
712 Lifetime (:ref:`vnc-nve-group-configuration`). Specifying `prefix` limits
713 the output to Query Targets that fall within `prefix`.
714
715 Query information is provided for each querying NVE, and includes the Query
716 Target and the time remaining before the information is removed.
717
718 .. clicmd:: show vnc registrations [all|local|remote|holddown|imported]
719
720 .. clicmd:: show vnc registrations [all|local|remote|holddown|imported] PREFIX
721
722 Display local, remote, holddown, and/or imported registration information.
723 Local registrations are routes received via RFP, which are present in the
724 NVA Registrations Cache. Remote registrations are routes received via BGP
725 (VPN SAFIs), which are present in the NVE-group import tables. Holddown
726 registrations are local and remote routes that have been withdrawn but whose
727 holddown timeouts have not yet elapsed. Imported information represents
728 routes that are imported into NVA and are made available to querying NVEs.
729 Depending on configuration, imported routes may also be advertised via BGP.
730 Specifying `prefix` limits the output to the registered prefixes that fall
731 within `prefix`.
732
733 Registration information includes the registered prefix, the registering NVE
734 addresses, the registered administrative cost, the registration lifetime and
735 the time since the information was registered or, in the case of Holddown
736 registrations, the amount of time remaining before the information is
737 removed.
738
739 .. clicmd:: show vnc responses [active|removed]
740
741 .. clicmd:: show vnc responses [active|removed] PREFIX
742
743 Display all, active and/or removed response information which are
744 present in the NVA Responses Cache. Responses remain valid for the
745 default Response Lifetime (:ref:`vnc-defaults-configuration`) or
746 NVE-group Response Lifetime (:ref:`vnc-nve-group-configuration`.)
747 When Removal Responses are enabled (:ref:`general-vnc-configuration`),
748 such responses are listed for the Response Lifetime. Specifying
749 `prefix` limits the output to the addresses that fall within
750 `prefix`.
751
752 Response information is provided for each querying NVE, and includes
753 the response prefix, the prefix-associated registering NVE addresses,
754 the administrative cost, the provided response lifetime and the time
755 remaining before the information is to be removed or will become inactive.
756
757 .. clicmd:: show memory vnc
758
759 Print the number of memory items allocated by the NVA.
760
761 .. _example-vnc-and-vnc-gw-configurations:
762
763 Example VNC and VNC-GW Configurations
764 =====================================
765
766 .. _vnc-mesh-nva-config:
767
768 Mesh NVA Configuration
769 ----------------------
770
771 This example includes three NVAs, nine NVEs, and two NVE groups. Note that
772 while not shown, a single physical device may support multiple logical NVEs.
773 :ref:`vnc-fig-vnc-mesh` shows ``code NVA-1`` (192.168.1.100), ``NVA 2``
774 (192.168.1.101), and ``NVA 3`` (192.168.1.102), which are connected in a full
775 mesh. Each is a member of the autonomous system 64512. Each NVA provides VNC
776 services to three NVE clients in the 172.16.0.0/16 virtual-network address
777 range. The 172.16.0.0/16 address range is partitioned into two NVE groups,
778 ``group1`` (172.16.0.0/17) and ``group2`` (172.16.128.0/17).
779
780 Each NVE belongs to either NVE group ``group1`` or NVE group ``group2``. The
781 NVEs ``NVE 1``, ``NVE 2``, ``NVE 4``, ``NVE 7``, and ``NVE 8`` are members of
782 the NVE group ``group1``. The NVEs ``NVE 3``, ``NVE 5``, ``NVE 6``, and ``NVE
783 9`` are members of the NVE group ``group2``.
784
785 Each NVA advertises NVE underlay-network IP addresses using the
786 Tunnel Encapsulation Attribute.
787
788 .. _vnc-fig-vnc-mesh:
789
790 .. figure:: ../figures/fig-vnc-mesh.png
791 :align: center
792 :alt: Three-way Mesh
793
794 A three-way full mesh with three NVEs per NVA.
795
796 :file:`bgpd.conf` for ``NVA 1`` (192.168.1.100):
797
798 .. code-block:: frr
799
800 router bgp 64512
801
802 bgp router-id 192.168.1.100
803
804 neighbor 192.168.1.101 remote-as 64512
805 neighbor 192.168.1.102 remote-as 64512
806
807 address-family ipv4 vpn
808 neighbor 192.168.1.101 activate
809 neighbor 192.168.1.102 activate
810 exit-address-family
811
812 vnc defaults
813 rd 64512:1
814 response-lifetime 200
815 rt both 1000:1 1000:2
816 exit-vnc
817
818 vnc nve-group group1
819 prefix vn 172.16.0.0/17
820 rt both 1000:1
821 exit-vnc
822
823 vnc nve-group group2
824 prefix vn 172.16.128.0/17
825 rt both 1000:2
826 exit-vnc
827
828 exit
829
830 :file:`bgpd.conf` for ``NVA 2`` (192.168.1.101):
831
832 .. code-block:: frr
833
834 router bgp 64512
835
836 bgp router-id 192.168.1.101
837
838 neighbor 192.168.1.100 remote-as 64512
839 neighbor 192.168.1.102 remote-as 64512
840
841 address-family ipv4 vpn
842 neighbor 192.168.1.100 activate
843 neighbor 192.168.1.102 activate
844 exit-address-family
845
846 vnc nve-group group1
847 prefix vn 172.16.0.0/17
848 rd 64512:1
849 response-lifetime 200
850 rt both 1000:1 1000:2
851 exit-vnc
852 exit
853
854 :file:`bgpd.conf` for ``NVA 3`` (192.168.1.102):
855
856 .. code-block:: frr
857
858 router bgp 64512
859
860 bgp router-id 192.168.1.102
861
862 neighbor 192.168.1.101 remote-as 64512
863 neighbor 192.168.1.102 remote-as 64512
864
865 address-family ipv4 vpn
866 neighbor 192.168.1.100 activate
867 neighbor 192.168.1.101 activate
868 exit-address-family
869
870 vnc defaults
871 rd 64512:1
872 response-lifetime 200
873 rt both 1000:1 1000:2
874 exit-vnc
875
876 vnc nve-group group1
877 prefix vn 172.16.128.0/17
878 exit-vnc
879 exit
880
881
882 Mesh NVA and VNC-GW Configuration
883 ---------------------------------
884
885 This example includes two NVAs, each with two associated NVEs, and two VNC-GWs,
886 each supporting two CE routers physically attached to the four NVEs. Note that
887 this example is showing a more complex configuration where VNC-GW is separated
888 from normal NVA functions; it is equally possible to simplify the configuration
889 and combine NVA and VNC-GW functions in a single FRR instance.
890
891 .. _vnc-fig-vnc-gw:
892 .. figure:: ../figures/fig-vnc-gw.png
893 :align: center
894 :alt: FRR VNC Gateway
895
896 Meshed NVEs and VNC-GWs
897
898 As shown in :ref:`vnc-fig-vnc-gw`, NVAs and VNC-GWs are connected in a full iBGP
899 mesh. The VNC-GWs each have two CEs configured as route-reflector clients.
900 Each client provides BGP updates with unicast routes that the VNC-GW reflects
901 to the other client. The VNC-GW also imports these unicast routes into VPN
902 routes to be shared with the other VNC-GW and the two NVAs. This route
903 importation is controlled with the ``vnc redistribute`` statements shown in the
904 configuration. Similarly, registrations sent by NVEs via RFP to the NVAs are
905 exported by the VNC-GWs to the route-reflector clients as unicast routes. RFP
906 registrations exported this way have a next-hop address of the CE behind the
907 connected (registering) NVE. Exporting VNC routes as IPv4 unicast is enabled
908 with the ``vnc export`` command below.
909
910 The configuration for ``VNC-GW 1`` is shown below.
911
912 .. code-block:: frr
913
914 router bgp 64512
915 bgp router-id 192.168.1.101
916 bgp cluster-id 1.2.3.4
917 neighbor 192.168.1.102 remote-as 64512
918 neighbor 192.168.1.103 remote-as 64512
919 neighbor 192.168.1.104 remote-as 64512
920 neighbor 172.16.1.2 remote-as 64512
921 neighbor 172.16.2.2 remote-as 64512
922 !
923 address-family ipv4 unicast
924 redistribute vnc-direct
925 no neighbor 192.168.1.102 activate
926 no neighbor 192.168.1.103 activate
927 no neighbor 192.168.1.104 activate
928 neighbor 172.16.1.2 route-reflector-client
929 neighbor 172.16.2.2 route-reflector-client
930 exit-address-family
931 !
932 address-family ipv4 vpn
933 neighbor 192.168.1.102 activate
934 neighbor 192.168.1.103 activate
935 neighbor 192.168.1.104 activate
936 exit-address-family
937 vnc export bgp mode ce
938 vnc redistribute mode resolve-nve
939 vnc redistribute ipv4 bgp-direct
940 exit
941
942 Note that in the VNC-GW configuration, the neighboring VNC-GW and NVAs each
943 have a statement disabling the IPv4 unicast address family. IPv4 unicast is on
944 by default and this prevents the other VNC-GW and NVAs from learning unicast
945 routes advertised by the route-reflector clients.
946
947 Configuration for ``NVA 2``:
948
949 .. code-block:: frr
950
951 router bgp 64512
952 bgp router-id 192.168.1.104
953 neighbor 192.168.1.101 remote-as 64512
954 neighbor 192.168.1.102 remote-as 64512
955 neighbor 192.168.1.103 remote-as 64512
956 !
957 address-family ipv4 unicast
958 no neighbor 192.168.1.101 activate
959 no neighbor 192.168.1.102 activate
960 no neighbor 192.168.1.103 activate
961 exit-address-family
962 !
963 address-family ipv4 vpn
964 neighbor 192.168.1.101 activate
965 neighbor 192.168.1.102 activate
966 neighbor 192.168.1.103 activate
967 exit-address-family
968 !
969 vnc defaults
970 response-lifetime 3600
971 exit-vnc
972 vnc nve-group nve1
973 prefix vn 172.16.1.1/32
974 response-lifetime 3600
975 rt both 1000:1 1000:2
976 exit-vnc
977 vnc nve-group nve2
978 prefix vn 172.16.2.1/32
979 response-lifetime 3600
980 rt both 1000:1 1000:2
981 exit-vnc
982 exit
983
984 .. TBD make this its own example:
985 ..
986 .. @float Figure,fig:fig-vnc-gw-rr
987 .. @center @image{fig-vnc-gw-rr,400pt,,FRR VNC Gateway with RR}
988 .. @end float
989 .. An NVA can also import unicast routes from BGP without advertising the
990 .. imported routes as VPN routes. Such imported routes, while not
991 .. distributed to other NVAs or VNC-GWs, are are available to NVEs via
992 .. RFP query messages sent to the NVA. @ref{fig:fig-vnc-gw-rr}
993 .. shows an example topology where unicast routes are imported into NVAs
994 .. from a Route Reflector. (@pxref{Route Reflector} for route reflector
995 .. configuration details.) The following three lines can be added to the
996 .. ``NVA 1`` and ``NVA 2`` configurations to import routes into VNC
997 .. for local VNC use:
998 ..
999 .. @verbatim
1000 .. neighbor 192.168.1.105 remote-as 64512
1001 .. vnc redistribute mode plain
1002 .. vnc redistribute ipv4 bgp-direct-to-nve-groups
1003 .. @end verbatim
1004
1005 .. _vnc-with-frr-route-reflector-config:
1006
1007 VNC with FRR Route Reflector Configuration
1008 ------------------------------------------
1009
1010 A route reflector eliminates the need for a fully meshed NVA network by acting
1011 as the hub between NVAs. :ref:`vnc-fig-vnc-frr-route-reflector` shows BGP
1012 route reflector ``BGP Route Reflector 1`` (192.168.1.100) as a route reflector
1013 for NVAs ``NVA 2``(192.168.1.101) and ``NVA 3`` (192.168.1.102).
1014
1015 .. _vnc-fig-vnc-frr-route-reflector:
1016 .. figure:: ../figures/fig-vnc-frr-route-reflector.png
1017 :align: center
1018 :alt: FRR Route Reflector
1019
1020 Two NVAs and a BGP Route Reflector
1021
1022 ``NVA 2`` and ``NVA 3`` advertise NVE underlay-network IP addresses using the
1023 Tunnel Encapsulation Attribute. ``BGP Route Reflector 1`` ``reflects''
1024 advertisements from ``NVA 2`` to ``NVA 3`` and vice versa.
1025
1026 As in the example of :ref:`vnc-mesh-nva-config`, there are two NVE groups. The
1027 172.16.0.0/16 address range is partitioned into two NVE groups, ``group1``
1028 (172.16.0.0/17) and ``group2`` (172.16.128.0/17). The NVE ``NVE 4``, ``NVE
1029 7``, and ``NVE 8`` are members of the NVE group ``group1``. The NVEs ``NVE
1030 5``, ``NVE 6``, and ``NVE 9`` are members of the NVE group ``group2``.
1031
1032 :file:`bgpd.conf` for ``BGP Route Reflector 1`` on 192.168.1.100:
1033
1034 .. code-block:: frr
1035
1036 router bgp 64512
1037
1038 bgp router-id 192.168.1.100
1039
1040 neighbor 192.168.1.101 remote-as 64512
1041 neighbor 192.168.1.101 port 7179
1042 neighbor 192.168.1.101 description iBGP-client-192-168-1-101
1043
1044 neighbor 192.168.1.102 remote-as 64512
1045 neighbor 192.168.1.102 port 7179
1046 neighbor 192.168.1.102 description iBGP-client-192-168-1-102
1047
1048 address-family ipv4 unicast
1049 neighbor 192.168.1.101 route-reflector-client
1050 neighbor 192.168.1.102 route-reflector-client
1051 exit-address-family
1052
1053 address-family ipv4 vpn
1054 neighbor 192.168.1.101 activate
1055 neighbor 192.168.1.102 activate
1056
1057 neighbor 192.168.1.101 route-reflector-client
1058 neighbor 192.168.1.102 route-reflector-client
1059 exit-address-family
1060
1061 exit
1062
1063 :file:`bgpd.conf` for ``NVA 2`` on 192.168.1.101:
1064
1065 .. code-block:: frr
1066
1067 router bgp 64512
1068
1069 bgp router-id 192.168.1.101
1070
1071 neighbor 192.168.1.100 remote-as 64512
1072
1073 address-family ipv4 vpn
1074 neighbor 192.168.1.100 activate
1075 exit-address-family
1076
1077 vnc nve-group group1
1078 prefix vn 172.16.0.0/17
1079 rd 64512:1
1080 response-lifetime 200
1081 rt both 1000:1 1000:2
1082 exit-vnc
1083 exit
1084
1085 :file:`bgpd.conf` for ``NVA 2`` on 192.168.1.102:
1086
1087 .. code-block:: frr
1088
1089 router bgp 64512
1090
1091 bgp router-id 192.168.1.102
1092
1093 neighbor 192.168.1.100 remote-as 64512
1094
1095 address-family ipv4 vpn
1096 neighbor 192.168.1.100 activate
1097 exit-address-family
1098
1099 vnc defaults
1100 rd 64512:1
1101 response-lifetime 200
1102 rt both 1000:1 1000:2
1103 exit-vnc
1104
1105 vnc nve-group group1
1106 prefix vn 172.16.128.0/17
1107 exit-vnc
1108 exit
1109
1110 While not shown, an NVA can also be configured as a route reflector.
1111
1112 .. _vnc-with-commercial-route-reflector-config:
1113
1114 VNC with Commercial Route Reflector Configuration
1115 -------------------------------------------------
1116
1117 This example is identical to :ref:`vnc-with-frr-route-reflector-config`
1118 with the exception that the route reflector is a commercial router. Only the
1119 VNC-relevant configuration is provided.
1120
1121 .. figure:: ../figures/fig-vnc-commercial-route-reflector.png
1122 :align: center
1123 :alt: Commercial Route Reflector
1124
1125 Two NVAs with a commercial route reflector
1126
1127 :file:`bgpd.conf` for BGP route reflector ``Commercial Router`` on 192.168.1.104:::
1128
1129 version 8.5R1.13;
1130 routing-options {
1131 rib inet.0 {
1132 static {
1133 route 172.16.0.0/16 next-hop 192.168.1.104;
1134 }
1135 }
1136 autonomous-system 64512;
1137 resolution {
1138 rib inet.3 {
1139 resolution-ribs inet.0;
1140 }
1141 rib bgp.l3vpn.0 {
1142 resolution-ribs inet.0;
1143 }
1144 }
1145 }
1146 protocols {
1147 bgp {
1148 advertise-inactive;
1149 family inet {
1150 labeled-unicast;
1151 }
1152 group 1 {
1153 type internal;
1154 advertise-inactive;
1155 advertise-peer-as;
1156 import h;
1157 family inet {
1158 unicast;
1159 }
1160 family inet-vpn {
1161 unicast;
1162 }
1163 cluster 192.168.1.104;
1164 neighbor 192.168.1.101;
1165 neighbor 192.168.1.102;
1166 }
1167 }
1168 }
1169 policy-options {
1170 policy-statement h {
1171 from protocol bgp;
1172 then {
1173 as-path-prepend 64512;
1174 accept;
1175 }
1176 }
1177 }
1178
1179 :file:`bgpd.conf` for ``NVA 2`` on 192.168.1.101:
1180
1181 .. code-block:: frr
1182
1183 router bgp 64512
1184
1185 bgp router-id 192.168.1.101
1186
1187 neighbor 192.168.1.100 remote-as 64512
1188
1189 address-family ipv4 vpn
1190 neighbor 192.168.1.100 activate
1191 exit-address-family
1192
1193 vnc nve-group group1
1194 prefix vn 172.16.0.0/17
1195 rd 64512:1
1196 response-lifetime 200
1197 rt both 1000:1 1000:2
1198 exit-vnc
1199 exit
1200
1201 :file:`bgpd.conf` for ``NVA 3`` on 192.168.1.102:
1202
1203 .. code-block:: frr
1204
1205 router bgp 64512
1206
1207 bgp router-id 192.168.1.102
1208
1209 neighbor 192.168.1.100 remote-as 64512
1210
1211 address-family ipv4 vpn
1212 neighbor 192.168.1.100 activate
1213 exit-address-family
1214
1215 vnc defaults
1216 rd 64512:1
1217 response-lifetime 200
1218 rt both 1000:1 1000:2
1219 exit-vnc
1220
1221 vnc nve-group group1
1222 prefix vn 172.16.128.0/17
1223 exit-vnc
1224 exit
1225
1226 VNC with Redundant Route Reflectors Configuration
1227 -------------------------------------------------
1228
1229 This example combines the previous two
1230 (:ref:`vnc-with-frr-route-reflector-config` and
1231 :ref:`vnc-with-commercial-route-reflector-config`) into a redundant route
1232 reflector configuration. BGP route reflectors ``BGP Route Reflector 1`` and
1233 ``Commercial Router`` are the route reflectors for NVAs ``NVA 2`` and ``NVA
1234 3``. The two NVAs have connections to both route reflectors.
1235
1236 .. figure:: ../figures/fig-vnc-redundant-route-reflectors.png
1237 :align: center
1238 :alt: Redundant Route Reflectors
1239
1240 FRR-based NVA with redundant route reflectors
1241
1242 :file:`bgpd.conf` for ``BPGD Route Reflector 1`` on 192.168.1.100:
1243
1244 .. code-block:: frr
1245
1246 router bgp 64512
1247
1248 bgp router-id 192.168.1.100
1249 bgp cluster-id 192.168.1.100
1250
1251 neighbor 192.168.1.104 remote-as 64512
1252
1253 neighbor 192.168.1.101 remote-as 64512
1254 neighbor 192.168.1.101 description iBGP-client-192-168-1-101
1255 neighbor 192.168.1.101 route-reflector-client
1256
1257 neighbor 192.168.1.102 remote-as 64512
1258 neighbor 192.168.1.102 description iBGP-client-192-168-1-102
1259 neighbor 192.168.1.102 route-reflector-client
1260
1261 address-family ipv4 vpn
1262 neighbor 192.168.1.101 activate
1263 neighbor 192.168.1.102 activate
1264 neighbor 192.168.1.104 activate
1265
1266 neighbor 192.168.1.101 route-reflector-client
1267 neighbor 192.168.1.102 route-reflector-client
1268 exit-address-family
1269 exit
1270
1271 :file:`bgpd.conf` for ``NVA 2`` on 192.168.1.101:
1272
1273 .. code-block:: frr
1274
1275 router bgp 64512
1276
1277 bgp router-id 192.168.1.101
1278
1279 neighbor 192.168.1.100 remote-as 64512
1280 neighbor 192.168.1.104 remote-as 64512
1281
1282 address-family ipv4 vpn
1283 neighbor 192.168.1.100 activate
1284 neighbor 192.168.1.104 activate
1285 exit-address-family
1286
1287 vnc nve-group group1
1288 prefix vn 172.16.0.0/17
1289 rd 64512:1
1290 response-lifetime 200
1291 rt both 1000:1 1000:2
1292 exit-vnc
1293 exit
1294
1295 :file:`bgpd.conf` for ``NVA 3`` on 192.168.1.102:
1296
1297 .. code-block:: frr
1298
1299 router bgp 64512
1300
1301 bgp router-id 192.168.1.102
1302
1303 neighbor 192.168.1.100 remote-as 64512
1304 neighbor 192.168.1.104 remote-as 64512
1305
1306 address-family ipv4 vpn
1307 neighbor 192.168.1.100 activate
1308 neighbor 192.168.1.104 activate
1309 exit-address-family
1310
1311 vnc defaults
1312 rd 64512:1
1313 response-lifetime 200
1314 rt both 1000:1 1000:2
1315 exit-vnc
1316
1317 vnc nve-group group1
1318 prefix vn 172.16.128.0/17
1319 exit-vnc
1320 exit
1321
1322 :file:`bgpd.conf` for the Commercial Router route reflector on 192.168.1.104:::
1323
1324 routing-options {
1325 rib inet.0 {
1326 static {
1327 route 172.16.0.0/16 next-hop 192.168.1.104;
1328 }
1329 }
1330 autonomous-system 64512;
1331 resolution {
1332 rib inet.3 {
1333 resolution-ribs inet.0;
1334 }
1335 rib bgp.l3vpn.0 {
1336 resolution-ribs inet.0;
1337 }
1338 }
1339 }
1340 protocols {
1341 bgp {
1342 advertise-inactive;
1343 family inet {
1344 labeled-unicast;
1345 }
1346 group 1 {
1347 type internal;
1348 advertise-inactive;
1349 advertise-peer-as;
1350 import h;
1351 family inet {
1352 unicast;
1353 }
1354 family inet-vpn {
1355 unicast;
1356 }
1357 cluster 192.168.1.104;
1358 neighbor 192.168.1.101;
1359 neighbor 192.168.1.102;
1360 }
1361
1362 group 2 {
1363 type internal;
1364 advertise-inactive;
1365 advertise-peer-as;
1366 import h;
1367 family inet {
1368 unicast;
1369 }
1370 family inet-vpn {
1371 unicast;
1372 }
1373 neighbor 192.168.1.100;
1374 }
1375
1376 }
1377 }
1378 policy-options {
1379 policy-statement h {
1380 from protocol bgp;
1381 then {
1382 as-path-prepend 64512;
1383 accept;
1384 }
1385 }
1386 }
1387
1388 .. [#] The nve-id is carried in the route distinguisher. It is the second octet
1389 of the eight-octet route distinguisher generated for Ethernet / L2
1390 advertisements. The first octet is a constant 0xFF, and the third
1391 through eighth octets are set to the L2
1392 ethernet address being advertised.
1393