Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Commit cb02452

Browse files
OSPF: WIP formatting documentation for ospf
1 parent 71bbc56 commit cb02452

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

source/networking/virtual_private_cloud_config.rst

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,3 +1438,51 @@ Editing, Restarting, and Removing a Virtual Private Cloud
14381438
:alt: button to remove a VPC
14391439
.. |restart-vpc.png| image:: /_static/images/restart-vpc.png
14401440
:alt: button to restart a VPC
1441+
1442+
Dynamic Routing between VPCs
1443+
----------------------------
1444+
1445+
  Currently the inter VPC traffic has to go thru the public gateway. This means the traffic has to be nat-ed across public internet via core-routers, which is inefficient in itself. A more efficient approach will be to route the traffic within cloudstack and even better if no nating is involved.
1446+
1447+
  OSPF provides a way to connect two VPCs using the optimal route between them without needing nat-ing. OSPF achieves this by maintaining and advertising the most efficient routes between various OSPF enabled routers. When a new VPC is added its OSPF enabled router advertises the routes to other routers, thereby each of them learn to route traffic properly between them. 
1448+
1449+
Quagga implements OSPF (v2, v3) and is found suitable to run on debian based VPC virtual router to provide dynamic routing. Quagga is an advanced software routing package that provides a suite of TCP/IP-based routing protocols and provides implementations of OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4 for Unix-like platforms, particularly FreeBSD, Linux, Solaris and NetBSD.
1450+
1451+
Configuring dynamic VPCs
1452+
~~~~~~~~~~~~~~~~~~~~~~~~
1453+
1454+
- Enable OSPF in the zone: Login as admin and then goto: Infrastructure->Zones, select the zone in which you want to enable ospf and click the tab “Dynamically Routed”. Following are the options that you can change:
1455+
1456+
#. Dynamic Routing Enabled: true will enable the zone for dynamic routing .
1457+
#. Dynamic Routing Protocol: At this point only Ospf is supported. The other valid value is Bgp. 
1458+
#. OSPF Area Id: The ospf area id, will be set in quagga config. Default is ‘0’.
1459+
#. Hello Interval: Set number of seconds for HelloInterval timer value. Setting this value, Hello packet will be sent every timer value seconds on the specified interface. The default value is 10 seconds. 
1460+
#. Dead Interval: Set number of seconds for RouterDeadInterval timer value used for Wait Timer and Inactivity Timer. This value must be the same for all routers attached to a common network. The default value is 40 seconds.
1461+
#. Retransmit Interval: Set number of seconds for RxmtInterval timer value. This value is used when retransmitting Database Description and Link State Request packets. The default value is 5 seconds.
1462+
#. Transit Delay: Set number of seconds for InfTransDelay value. LSAs’ age should be incremented by this value when transmitting. The default value is 1 seconds.
1463+
#. Authentication: Dropdown with 2 options: MD5 or Text Plain
1464+
#. Password: The password for OSPF Area
1465+
#. Zone Super CIDR: For using dynamic routing a zone level super-cidr is required. This will be carved into network sub levels and into the created routed tiers. Default value is set to 200.100.0.0/16
1466+
1467+
- Create Dynamic VPC Service Offering: Goto Service Offerings and then select VPC Offering. From here you can add VPC Offering. One of the supported services should be “VPCDynamicRouting” in order for the VPC to be dynamically routing enabled.
1468+
1469+
A example set of enabled services on VPC are:
1470+
Supported Services: Dhcp, Dns, SourceNat, PortForwarding, Lb, UserData, StaticNat, VPCDynamicRouting
1471+
1472+
- Create Dynamic VPC Network tier offering: Goto Service Offerings and then select Network Offering. From here you can add Network Offering. Select “VPC” and add “VPCDynamicRouting” as one of the supported services.
1473+
1474+
A example set of enabled services on VPC network are:
1475+
1476+
Supported Services: Dhcp, Dns, SourceNat, PortForwarding, Lb, UserData, StaticNat, NetworkACL, VPCDynamicRouting
1477+
1478+
- Create VPCs: Now you can create dynamically routed VPCs by selecting the dynamic service offering for VPC. In a regular VPC you need to provide a cidr, but since in dynamically routed VPC the VPCs will get a share from the zone level super cidr. So instead of a cidr you need to specify a netmask, cloudstack allocates a suitable subnet that caters to the netmask that you specified. In case no such range exists the VPC creation fails.
1479+
1480+
- Create VPC tiers: Create a dynamic VPC tier by selecting the dynamic network offering.
1481+
1482+
- Create ACLs: To provide access across tiers create appropriate ACL rules to allow traffic to the VMs.
1483+
1484+
- Create VMs: Create VMs in the dynamic tiers. These VMs can reach across VPCs given that the ACLs allow the traffic.
1485+
1486+
1487+
1488+

0 commit comments

Comments
 (0)