summaryrefslogtreecommitdiff
path: root/docs/configexamples/l3vpn-hub-and-spoke.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/configexamples/l3vpn-hub-and-spoke.rst')
-rw-r--r--docs/configexamples/l3vpn-hub-and-spoke.rst76
1 files changed, 34 insertions, 42 deletions
diff --git a/docs/configexamples/l3vpn-hub-and-spoke.rst b/docs/configexamples/l3vpn-hub-and-spoke.rst
index 04db424e..8e1d0051 100644
--- a/docs/configexamples/l3vpn-hub-and-spoke.rst
+++ b/docs/configexamples/l3vpn-hub-and-spoke.rst
@@ -104,9 +104,10 @@ Configuration
Step-1: Configuring IGP and enabling MPLS LDP
=============================================
-At the first step we need to configure the IP/MPLS backbone network using OSPF as
-IGP protocol and LDP as label-switching protocol for the base connectivity between
-**P** (rovider), **P** (rovider) **E** (dge) and **R** (oute) **R** (eflector) nodes:
+At the first step we need to configure the IP/MPLS backbone network using OSPF
+as IGP protocol and LDP as label-switching protocol for the base connectivity
+between **P** (rovider), **P** (rovider) **E** (dge) and **R** (oute) **R**
+(eflector) nodes:
- VyOS-P1:
@@ -328,17 +329,14 @@ VPN (L3VPN) routes between them:
.. code-block:: none
- set protocols bgp local-as '65001'
+ set protocols bgp system-as '65001'
set protocols bgp neighbor 10.0.0.7 address-family ipv4-vpn route-reflector-client
set protocols bgp neighbor 10.0.0.7 peer-group 'RR_VPNv4'
set protocols bgp neighbor 10.0.0.8 address-family ipv4-vpn route-reflector-client
set protocols bgp neighbor 10.0.0.8 peer-group 'RR_VPNv4'
- set protocols bgp neighbor 10.0.0.9 address-family ipv4-vpn route-reflector-client
- set protocols bgp neighbor 10.0.0.9 peer-group 'RR_VPNv4'
set protocols bgp neighbor 10.0.0.10 address-family ipv4-vpn route-reflector-client
set protocols bgp neighbor 10.0.0.10 peer-group 'RR_VPNv4'
set protocols bgp parameters cluster-id '10.0.0.1'
- set protocols bgp parameters default no-ipv4-unicast
set protocols bgp parameters log-neighbor-changes
set protocols bgp parameters router-id '10.0.0.1'
set protocols bgp peer-group RR_VPNv4 remote-as '65001'
@@ -348,17 +346,14 @@ VPN (L3VPN) routes between them:
.. code-block:: none
- set protocols bgp local-as '65001'
+ set protocols bgp system-as '65001'
set protocols bgp neighbor 10.0.0.7 address-family ipv4-vpn route-reflector-client
set protocols bgp neighbor 10.0.0.7 peer-group 'RR_VPNv4'
set protocols bgp neighbor 10.0.0.8 address-family ipv4-vpn route-reflector-client
set protocols bgp neighbor 10.0.0.8 peer-group 'RR_VPNv4'
- set protocols bgp neighbor 10.0.0.9 address-family ipv4-vpn route-reflector-client
- set protocols bgp neighbor 10.0.0.9 peer-group 'RR_VPNv4'
set protocols bgp neighbor 10.0.0.10 address-family ipv4-vpn route-reflector-client
set protocols bgp neighbor 10.0.0.10 peer-group 'RR_VPNv4'
set protocols bgp parameters cluster-id '10.0.0.1'
- set protocols bgp parameters default no-ipv4-unicast
set protocols bgp parameters log-neighbor-changes
set protocols bgp parameters router-id '10.0.0.2'
set protocols bgp peer-group RR_VPNv4 remote-as '65001'
@@ -368,12 +363,11 @@ VPN (L3VPN) routes between them:
.. code-block:: none
- set protocols bgp local-as '65001'
+ set protocols bgp system-as '65001'
set protocols bgp neighbor 10.0.0.1 address-family ipv4-vpn nexthop-self
set protocols bgp neighbor 10.0.0.1 peer-group 'RR_VPNv4'
set protocols bgp neighbor 10.0.0.2 address-family ipv4-vpn nexthop-self
set protocols bgp neighbor 10.0.0.2 peer-group 'RR_VPNv4'
- set protocols bgp parameters default no-ipv4-unicast
set protocols bgp parameters log-neighbor-changes
set protocols bgp parameters router-id '10.0.0.7'
set protocols bgp peer-group RR_VPNv4 remote-as '65001'
@@ -383,12 +377,11 @@ VPN (L3VPN) routes between them:
.. code-block:: none
- set protocols bgp local-as '65001'
+ set protocols bgp system-as '65001'
set protocols bgp neighbor 10.0.0.1 address-family ipv4-vpn nexthop-self
set protocols bgp neighbor 10.0.0.1 peer-group 'RR_VPNv4'
set protocols bgp neighbor 10.0.0.2 address-family ipv4-vpn nexthop-self
set protocols bgp neighbor 10.0.0.2 peer-group 'RR_VPNv4'
- set protocols bgp parameters default no-ipv4-unicast
set protocols bgp parameters log-neighbor-changes
set protocols bgp parameters router-id '10.0.0.8'
set protocols bgp peer-group RR_VPNv4 remote-as '65001'
@@ -398,12 +391,11 @@ VPN (L3VPN) routes between them:
.. code-block:: none
- set protocols bgp local-as '65001'
+ set protocols bgp system-as '65001'
set protocols bgp neighbor 10.0.0.1 address-family ipv4-vpn nexthop-self
set protocols bgp neighbor 10.0.0.1 peer-group 'RR_VPNv4'
set protocols bgp neighbor 10.0.0.2 address-family ipv4-vpn nexthop-self
set protocols bgp neighbor 10.0.0.2 peer-group 'RR_VPNv4'
- set protocols bgp parameters default no-ipv4-unicast
set protocols bgp parameters log-neighbor-changes
set protocols bgp parameters router-id '10.0.0.10'
set protocols bgp peer-group RR_VPNv4 remote-as '65001'
@@ -432,7 +424,7 @@ import/export based on the pre-defined parameters.
set vrf name BLUE_SPOKE protocols bgp address-family ipv4-unicast redistribute connected
set vrf name BLUE_SPOKE protocols bgp address-family ipv4-unicast route-target vpn export '65035:1011'
set vrf name BLUE_SPOKE protocols bgp address-family ipv4-unicast route-target vpn import '65035:1030'
- set vrf name BLUE_SPOKE protocols bgp local-as '65001'
+ set vrf name BLUE_SPOKE protocols bgp system-as '65001'
set vrf name BLUE_SPOKE protocols bgp neighbor 10.50.50.2 address-family ipv4-unicast as-override
set vrf name BLUE_SPOKE protocols bgp neighbor 10.50.50.2 remote-as '65035'
@@ -454,7 +446,7 @@ import/export based on the pre-defined parameters.
set vrf name BLUE_HUB protocols bgp address-family ipv4-unicast redistribute connected
set vrf name BLUE_HUB protocols bgp address-family ipv4-unicast route-target vpn export '65035:1030'
set vrf name BLUE_HUB protocols bgp address-family ipv4-unicast route-target vpn import '65035:1011 65050:2011 65035:1030'
- set vrf name BLUE_HUB protocols bgp local-as '65001'
+ set vrf name BLUE_HUB protocols bgp system-as '65001'
set vrf name BLUE_HUB protocols bgp neighbor 10.80.80.2 address-family ipv4-unicast as-override
set vrf name BLUE_HUB protocols bgp neighbor 10.80.80.2 remote-as '65035'
@@ -476,7 +468,7 @@ import/export based on the pre-defined parameters.
set vrf name BLUE_SPOKE protocols bgp address-family ipv4-unicast redistribute connected
set vrf name BLUE_SPOKE protocols bgp address-family ipv4-unicast route-target vpn export '65035:1011'
set vrf name BLUE_SPOKE protocols bgp address-family ipv4-unicast route-target vpn import '65035:1030'
- set vrf name BLUE_SPOKE protocols bgp local-as '65001'
+ set vrf name BLUE_SPOKE protocols bgp system-as '65001'
set vrf name BLUE_SPOKE protocols bgp neighbor 10.60.60.2 address-family ipv4-unicast as-override
set vrf name BLUE_SPOKE protocols bgp neighbor 10.60.60.2 remote-as '65035'
@@ -504,13 +496,13 @@ configured L3VPN parameters.
set interfaces ethernet eth0 address '10.50.50.2/24'
# BGP for peering with PE
- set protocols bgp 65035 address-family ipv4-unicast network 10.0.0.80/32
- set protocols bgp 65035 neighbor 10.50.50.1 ebgp-multihop '2'
- set protocols bgp 65035 neighbor 10.50.50.1 remote-as '65001'
- set protocols bgp 65035 neighbor 10.50.50.1 update-source 'eth0'
- set protocols bgp 65035 parameters default no-ipv4-unicast
- set protocols bgp 65035 parameters log-neighbor-changes
- set protocols bgp 65035 parameters router-id '10.50.50.2'
+ set protocols bgp system-as 65035
+ set protocols bgp address-family ipv4-unicast network 10.0.0.80/32
+ set protocols bgp neighbor 10.50.50.1 ebgp-multihop '2'
+ set protocols bgp neighbor 10.50.50.1 remote-as '65001'
+ set protocols bgp neighbor 10.50.50.1 update-source 'eth0'
+ set protocols bgp parameters log-neighbor-changes
+ set protocols bgp parameters router-id '10.50.50.2'
- VyOS-CE1-HUB:
@@ -521,14 +513,14 @@ configured L3VPN parameters.
set interfaces ethernet eth0 address '10.80.80.2/24'
# BGP for peering with PE
- set protocols bgp 65035 address-family ipv4-unicast network 10.0.0.100/32
- set protocols bgp 65035 address-family ipv4-unicast redistribute connected
- set protocols bgp 65035 neighbor 10.80.80.1 ebgp-multihop '2'
- set protocols bgp 65035 neighbor 10.80.80.1 remote-as '65001'
- set protocols bgp 65035 neighbor 10.80.80.1 update-source 'eth0'
- set protocols bgp 65035 parameters default no-ipv4-unicast
- set protocols bgp 65035 parameters log-neighbor-changes
- set protocols bgp 65035 parameters router-id '10.80.80.2'
+ set protocols bgp system-as 65035
+ set protocols bgp address-family ipv4-unicast network 10.0.0.100/32
+ set protocols bgp address-family ipv4-unicast redistribute connected
+ set protocols bgp neighbor 10.80.80.1 ebgp-multihop '2'
+ set protocols bgp neighbor 10.80.80.1 remote-as '65001'
+ set protocols bgp neighbor 10.80.80.1 update-source 'eth0'
+ set protocols bgp parameters log-neighbor-changes
+ set protocols bgp parameters router-id '10.80.80.2'
- VyOS-CE2-SPOKE:
@@ -539,13 +531,13 @@ configured L3VPN parameters.
set interfaces ethernet eth0 address '10.60.60.2/24'
# BGP for peering with PE
- set protocols bgp 65035 address-family ipv4-unicast network 10.0.0.90/32
- set protocols bgp 65035 neighbor 10.60.60.1 ebgp-multihop '2'
- set protocols bgp 65035 neighbor 10.60.60.1 remote-as '65001'
- set protocols bgp 65035 neighbor 10.60.60.1 update-source 'eth0'
- set protocols bgp 65035 parameters default no-ipv4-unicast
- set protocols bgp 65035 parameters log-neighbor-changes
- set protocols bgp 65035 parameters router-id '10.60.60.2'
+ set protocols bgp system-as 65035
+ set protocols bgp address-family ipv4-unicast network 10.0.0.90/32
+ set protocols bgp neighbor 10.60.60.1 ebgp-multihop '2'
+ set protocols bgp neighbor 10.60.60.1 remote-as '65001'
+ set protocols bgp neighbor 10.60.60.1 update-source 'eth0'
+ set protocols bgp parameters log-neighbor-changes
+ set protocols bgp parameters router-id '10.60.60.2'