cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1967
Views
7
Helpful
10
Replies

Quick Question about L2OUT

BertiniB
Level 1
Level 1

Hello,

I am studying for ACI and I came across a situation. I have this subnet that currently only exists in my legacy network, so there are no current EPGs with Bridge Domains in such subnet. If I want to bring the gateway to ACI, would I create a normal EPG or a L2OUT? Is Layer 2 Out only used when extending already existing EPGs with the same subnet to a legacy L2 network?
I am struggling to see the purpose of L2OUT, some say it is useless others say it gives more granularity (security).

EDIT: How would I create a contract between L2OUTs? I can`t get it to work.

BertiniB_0-1692677365536.png

 

1 Accepted Solution

Accepted Solutions

Hi @BertiniB ,


So I could use the normal EPGs in two ways, right?
- Create an EPG, add a Physical Domain and assign a Static Port. This way the Legacy Network is contained in an isolated EPG and I can make it behave as an L2OUT would behave with External EPG.

- Use an already existing EPG, add a Physical Domain and assign a new Static Port. This way I can use the contracts of the already existing EPG, and they will behave as they were all in the same VLAN.

Is this line of though correct? As I said I am new to ACI, just got my CCNA rsrs.


Absolutely spot on. Mark you own answer as correct!  The bit about "they will behave as they were all in the same VLAN" is close enough to correct - all VLAN rules change in ACI. For instance, two endpoints in two different VLANs can potentially belong to the same EPG (in this scenario, most likely one of the VLANs was dynamically allocated to a VM Portgroup by ACI and the other statically mapped.  

And congratulations on CCNA. Welcome to the exciting world of computer networking and software development! Hope you have a long and rewarding career.

RedNectar aka Chris Welsh.
Forum Tips: 1. Paste images inline - don't attach. 2. Always mark helpful and correct answers, it helps others find what they need.

View solution in original post

10 Replies 10

RedNectar
VIP
VIP

Hi @BertiniB ,

Quick rely - I have 20 sec

DO NOT EVER USE L2OUTS use regular EPGs

RedNectar aka Chris Welsh.
Forum Tips: 1. Paste images inline - don't attach. 2. Always mark helpful and correct answers, it helps others find what they need.

So I would create a normal EPG, and use the same Bridge Domain? An then make a contract between this newly created EPG and the one with the devices connected directly to ACI?

EDIT: Also, If so, to attach the legacy network I would attach a Physical Domain and a Static Port, right?

seonandla
Level 1
Level 1

When considering how to bring a subnet from your legacy network into an ACI environment, you have a couple of options: using a normal EPG or an L2Out. Let's break down the use cases for each and address your questions.

Normal EPG:

If you want to use the subnet in the ACI fabric and allow communication between endpoints within the fabric, you can create a normal EPG with a Bridge Domain. This is the most straightforward option when your goal is to enable communication between endpoints within the ACI fabric.
L2Out:

L2Out is generally used when you want to extend your ACI fabric to communicate with devices or networks outside of the ACI fabric. This is particularly useful when you need to maintain connectivity with legacy networks or devices that are not part of the ACI fabric. L2Out allows you to connect ACI to an external Layer 2 network. It's typically used for scenarios where you need to stretch VLANs and maintain the same subnet between the ACI fabric and the external network. It can be used to maintain compatibility with existing devices in your legacy network.
L2Out is not typically used for internal communication within the ACI fabric, but rather for connectivity between the ACI fabric and external networks.
The purpose of L2Out is not to provide more granularity or security within the ACI fabric, but rather to facilitate communication between the ACI fabric and external Layer 2 networks that are not part of the ACI fabric.

Regarding your question about creating a contract between L2Outs: Contracts in ACI are used to define communication policies between EPGs. They are not used to define communication between L2Outs. L2Outs are meant to connect to external networks, and communication policies for these connections are often defined on the external devices themselves rather than within the ACI fabric

So I would use the L2OUT when my routing is done outside of ACI for that subnet?

 

BertiniB
Level 1
Level 1

Ok, Seems that If I create a contract manually with one L2OUT as the Provider and another as the Consumer, I can make the two L2OUTs communicate with each other. But this seems shady haha.

RedNectar
VIP
VIP

Hi @BertiniB ,

I have a little more time now.


I am studying for ACI and I came across a situation. I have this subnet that currently only exists in my legacy network, so there are no current EPGs with Bridge Domains in such subnet. If I want to bring the gateway to ACI, would I create a normal EPG or a L2OUT?

Like I said before, create a normal Application EPG. EPGs are very flexible and easy to use. L2Outs are complicated and very restrictive - locked to a single VLAN

Is Layer 2 Out only used when extending already existing EPGs with the same subnet to a legacy L2 network?

No, there is NO use case for L2Out that can't be handled better by a normal Application EPG

I am struggling to see the purpose of L2OUT, some say it is useless others say it gives more granularity (security).

There is NO purpose for L2Outs - it is useless and no more secure than a normal EPG

EDIT: How would I create a contract between L2OUTs? I can`t get it to work.

Don't try. Stick with EPGs

Re @seonandla comments

"L2Out is generally used when you want to extend your ACI fabric to communicate with devices or networks outside of the ACI fabric. This is particularly useful when you need to maintain connectivity with legacy networks or devices that are not part of the ACI fabric."

I disagree that L2Outs are any more useful than regular EPGs.  You can configure a regular EPG to behave exactly like a L2Out, with the flexibility of future choice and not having to reconfigure your configuration when things change and another VLAN is required.

RedNectar aka Chris Welsh.
Forum Tips: 1. Paste images inline - don't attach. 2. Always mark helpful and correct answers, it helps others find what they need.

Thanks for the reply @RedNectar.

So I could use the normal EPGs in two ways, right?
- Create an EPG, add a Physical Domain and assign a Static Port. This way the Legacy Network is contained in an isolated EPG and I can make it behave as an L2OUT would behave with External EPG.

- Use an already existing EPG, add a Physical Domain and assign a new Static Port. This way I can use the contracts of the already existing EPG, and they will behave as they were all in the same VLAN.

Is this line of though correct? As I said I am new to ACI, just got my CCNA rsrs.

Hi @BertiniB ,


So I could use the normal EPGs in two ways, right?
- Create an EPG, add a Physical Domain and assign a Static Port. This way the Legacy Network is contained in an isolated EPG and I can make it behave as an L2OUT would behave with External EPG.

- Use an already existing EPG, add a Physical Domain and assign a new Static Port. This way I can use the contracts of the already existing EPG, and they will behave as they were all in the same VLAN.

Is this line of though correct? As I said I am new to ACI, just got my CCNA rsrs.


Absolutely spot on. Mark you own answer as correct!  The bit about "they will behave as they were all in the same VLAN" is close enough to correct - all VLAN rules change in ACI. For instance, two endpoints in two different VLANs can potentially belong to the same EPG (in this scenario, most likely one of the VLANs was dynamically allocated to a VM Portgroup by ACI and the other statically mapped.  

And congratulations on CCNA. Welcome to the exciting world of computer networking and software development! Hope you have a long and rewarding career.

RedNectar aka Chris Welsh.
Forum Tips: 1. Paste images inline - don't attach. 2. Always mark helpful and correct answers, it helps others find what they need.

BertiniB
Level 1
Level 1

Thanks @RedNectar for the answer and kind words!

I marked your aswer as correct haha, since it has the correction regarding the VLAN statement. Thanks!

 

Hi, 

If you want to move a Legacy environment L3 subnet gateway to ACI but still some hosts will be left on legacy. Note- You need to perform it during maintenance.

1.) Create a L3 EPG in ACI with IP subnet need to be moved

2.) Add a physical domain to the EPG, Physical domain should be attached to a VLAN pool having same VLAN ID (Assume VLAN X) which need to be moved 

3.) Connect the legacy switch to ACI with redundant or single network connection

4.) Add a policy(policy A) to the physical port where legacy switch is connected

5.) Delete the L3 gateway from legacy switch

6.) Go to new EPG static binding, attach the policy A with Vlan "X"

7.) Configure port as trunk on legacy switch side so packet sent to ACI tagged with Vlan "X"

8.) Now hosts connected to legacy switches should be able to use IP gateway configured in ACI

9.) Once all the hosts moved from Legacy to ACI, you can delete the static binding from ACI.

I hope this helps !!

Review Cisco Networking for a $25 gift card

Save 25% on Day-2 Operations Add-On License