Site icon

ACI/Cloud Extension Usage Primer (AWS) — When to use Shared Template and When to use Site Only Template

If you followed the previous 2 articles on ACI/AWS Usage configurations, (  stretched Tenant/EPG use case and  AWS use case only  ) you will notice that we used Shared Templates at times and Site Only Templates at other times.  

In my opinion, it’s best to make a logical diagram before starting to configure using MSO.   This will make it very clear on when to use what, so, you don’t have to think too much during the actual configuration.  

Take for example, you wanted to do a similar configuration as the stretched Tenant/EPG use case that we went through earlier, but you did not want to do a stretched EPG.  Instead you wanted to have the EPGs reside in individual sites. The configuration will only have to be slightly modified, but the basic idea is the same.   Let’s look at the diagram below for such a use case.

Figure 1

In the above diagram, you will notice that the topology is very similar to the stretched EPG use case, except that we don’t stretch the EPG this time.  Instead we have a separate EPg on the OnPrem side and a separate EPg on the AWS only side.   We then have to make appropriate contracts between the 2 EPgs as needed. 

So, it’s best to make a list of the templates and which Template to put what object on.  Note the same idea can be extended to more than 2 sites where you would build the required templates.

From the above diagram, we can make a list like this:

Let’s look at another use case.  In this use case we will extend the stretched EPG use case of the previous article. 

We will extend that topology to:

Before we start, let’s draw out the logical diagram first as shown below.

Figure 2

Now, it’s easy to make out list for our incremental configuration (the green objects)

The list would look like this:

Figure 3
Figure 4

I’m not going to go through the step by step configuration any more.  If you followed in your lab the previous 2 articles the configuration will be really easy to do.  I highly suggest you try this out in your own lab.  Since I set this up in my lab, let’s do a quick test to verify it’s working.

Test Results:

From EC2-2 let’s ping the Corporate Net. 100.65.0.1

Figure 5

From EC2-2 let’s ping 8.8.8.8 (direct out of AWS external connection)

Figure 6

From EC2-2 let’s ping EC2-1 (remember our contract only allowed tcp port 1234), so this should not work.

Figure 7

From EC2-2 on EPG-2 let’s test to see if tcp port 1234 is working.  

A quick way of testing this is by using the netcat utility.  (Note before doing this make sure to add an additional cloud EPg selector for your IGW External EPg and add 0.0.0.0/0 in there, otherwise the centos Repositories will not be reachable so your yum install will not work. Once done,  delete that additional selector with 0.0.0.0/0)

Figure 8

References:

Exit mobile version