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