From c7227ec57bbb1ab1d9c95ee73c3db04f894c6112 Mon Sep 17 00:00:00 2001 From: fett0 Date: Mon, 15 Nov 2021 12:41:31 -0300 Subject: doc: L3vpn: configuration basic --- docs/configuration/vrf/index.rst | 45 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) (limited to 'docs/configuration') diff --git a/docs/configuration/vrf/index.rst b/docs/configuration/vrf/index.rst index e329d48e..1f8e00c9 100644 --- a/docs/configuration/vrf/index.rst +++ b/docs/configuration/vrf/index.rst @@ -366,8 +366,7 @@ address-family. rd vpn export Specifies the route distinguisher to be added to a route exported from the - current unicast VRF to VPN. Create new VRF instance with ``. The name - is used when placing individual interfaces into the VRF. + current unicast VRF to VPN. .. cfgcmd:: set vrf name protocols bgp address-family route-target vpn @@ -452,4 +451,46 @@ are in place. Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt 10.0.0.7 4 65001 2860 2870 0 0 0 1d23h34m 2 10 +.. _l3vpn-vrf example configuration: + +Example +======= + +L3VPN VRF Basic Setting +----------------------- + +The following example as setting a basic l3vpn between nodes: + +**Node 1:** + +.. code-block:: none + + set vrf name GREEN protocols bgp address-family ipv4-unicast export vpn + set vrf name GREEN protocols bgp address-family ipv4-unicast import vpn + set vrf name GREEN protocols bgp address-family ipv4-unicast label vpn export 'auto' + set vrf name GREEN protocols bgp address-family ipv4-unicast network 172.16.80.0/24 + set vrf name GREEN protocols bgp address-family ipv4-unicast rd vpn export '172.16.80.1:2011' + set vrf name GREEN protocols bgp address-family ipv4-unicast redistribute connected + set vrf name GREEN protocols bgp address-family ipv4-unicast route-target vpn export '65050:2011' + set vrf name GREEN protocols bgp address-family ipv4-unicast route-target vpn import '65050:2011' + set vrf name GREEN protocols bgp local-as '65001' + set vrf name GREEN protocols bgp neighbor 172.16.80.2 address-family ipv4-unicast as-override + set vrf name GREEN protocols bgp neighbor 172.16.80.2 remote-as '65050 + +**Node 2:** + +.. code-block:: none + + set vrf name GREEN protocols bgp address-family ipv4-unicast export vpn + set vrf name GREEN protocols bgp address-family ipv4-unicast import vpn + set vrf name GREEN protocols bgp address-family ipv4-unicast label vpn export 'auto' + set vrf name GREEN protocols bgp address-family ipv4-unicast network 172.16.100.0/24 + set vrf name GREEN protocols bgp address-family ipv4-unicast rd vpn export '172.16.100.1:2011' + set vrf name GREEN protocols bgp address-family ipv4-unicast redistribute connected + set vrf name GREEN protocols bgp address-family ipv4-unicast route-target vpn export '65050:2011' + set vrf name GREEN protocols bgp address-family ipv4-unicast route-target vpn import '65050:2011' + set vrf name GREEN protocols bgp local-as '65001' + set vrf name GREEN protocols bgp neighbor 172.16.100.2 address-family ipv4-unicast as-override + set vrf name GREEN protocols bgp neighbor 172.16.100.2 remote-as '65050' + .. include:: /_include/common-references.txt -- cgit v1.2.3 From a2e70ea25c6a289953be1a82fd88a7d60fa2f4d5 Mon Sep 17 00:00:00 2001 From: fett0 Date: Tue, 16 Nov 2021 16:44:28 -0300 Subject: doc: L3vpn: change part --- docs/configuration/vrf/index.rst | 41 ---------------------------------------- 1 file changed, 41 deletions(-) (limited to 'docs/configuration') diff --git a/docs/configuration/vrf/index.rst b/docs/configuration/vrf/index.rst index 1f8e00c9..05904209 100644 --- a/docs/configuration/vrf/index.rst +++ b/docs/configuration/vrf/index.rst @@ -451,46 +451,5 @@ are in place. Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt 10.0.0.7 4 65001 2860 2870 0 0 0 1d23h34m 2 10 -.. _l3vpn-vrf example configuration: - -Example -======= - -L3VPN VRF Basic Setting ------------------------ - -The following example as setting a basic l3vpn between nodes: - -**Node 1:** - -.. code-block:: none - - set vrf name GREEN protocols bgp address-family ipv4-unicast export vpn - set vrf name GREEN protocols bgp address-family ipv4-unicast import vpn - set vrf name GREEN protocols bgp address-family ipv4-unicast label vpn export 'auto' - set vrf name GREEN protocols bgp address-family ipv4-unicast network 172.16.80.0/24 - set vrf name GREEN protocols bgp address-family ipv4-unicast rd vpn export '172.16.80.1:2011' - set vrf name GREEN protocols bgp address-family ipv4-unicast redistribute connected - set vrf name GREEN protocols bgp address-family ipv4-unicast route-target vpn export '65050:2011' - set vrf name GREEN protocols bgp address-family ipv4-unicast route-target vpn import '65050:2011' - set vrf name GREEN protocols bgp local-as '65001' - set vrf name GREEN protocols bgp neighbor 172.16.80.2 address-family ipv4-unicast as-override - set vrf name GREEN protocols bgp neighbor 172.16.80.2 remote-as '65050 - -**Node 2:** - -.. code-block:: none - - set vrf name GREEN protocols bgp address-family ipv4-unicast export vpn - set vrf name GREEN protocols bgp address-family ipv4-unicast import vpn - set vrf name GREEN protocols bgp address-family ipv4-unicast label vpn export 'auto' - set vrf name GREEN protocols bgp address-family ipv4-unicast network 172.16.100.0/24 - set vrf name GREEN protocols bgp address-family ipv4-unicast rd vpn export '172.16.100.1:2011' - set vrf name GREEN protocols bgp address-family ipv4-unicast redistribute connected - set vrf name GREEN protocols bgp address-family ipv4-unicast route-target vpn export '65050:2011' - set vrf name GREEN protocols bgp address-family ipv4-unicast route-target vpn import '65050:2011' - set vrf name GREEN protocols bgp local-as '65001' - set vrf name GREEN protocols bgp neighbor 172.16.100.2 address-family ipv4-unicast as-override - set vrf name GREEN protocols bgp neighbor 172.16.100.2 remote-as '65050' .. include:: /_include/common-references.txt -- cgit v1.2.3