cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
373
Views
3
Helpful
6
Replies

ACI segmentation with physical domain of a subnet

Rem Markov
Level 1
Level 1

Hey there fellows!
I'm having a bit of trouble understanding the best practice of segmentation in ACI.
I'll explain the use case.
We currently have an EPG called "cluster", that has a BD /20 associated with it,

There are contracts applied to it and everything works  great.
We received the need to "segment" the existed EPG into 2 parts.
/21 for LoadBalancer and /21 for Nodes.

I would like to create 2 uSegs. apply the same contracts as in the "cluster" EPG,
create uSeg Attribute to match the IP of 192.200.0.0/21 and 192.200.0.8/21 accordingly to uSeg A and uSeg B.
And attach the same Physical Domain as to the "cluster" EPG.

After it is done, I try to remove the existing Contracts from the "cluster" EPG, but I lose communication and it doesn't appear to work.
Am I misunderstanding the usecase? is it possible.

The uSegs and the "cluster" EPG are part of the same BD and Physical Domain.

RemMarkov_0-1743685864948.png

 

6 Replies 6

Rem Markov
Level 1
Level 1

Any ideas ?

Hi @Rem Markov ,

I saw this previously, saw "µseg EPGS" and cringed. And forgot about it. 

Since you've had no replies, I suspect many others have had the same reaction.

If I had to do this, I'd split the EPG into two EPGs - one for load balancer and one for nodes. However, I'm not really sure why the load balancers are being split off.

Perhaps my comment my spur someone who is a fan of µSeg EPGs to tell me I'm wrong and give you better advice.

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.

I truly understand that people here really dislike useg, and I too find it a weird concept.

 

Now I would love to avoid it, but the question is how can I segment on BD to 2 epg when the segmentation should be by IP address?

Is there a better way?

Hi @Rem Markov ,


 

Now I would love to avoid it, but the question is how can I segment on BD to 2 epg when the segmentation should be by IP address?

  • Firstly, forget whatever you learned about "VLAN=subnet"
  • Secondly, allocate another VLAN for say the nodes (as apposed to the load balancers in your description). Make sure it is in the same VLAN Pool as your existing "cluster" VLAN 
  • Next, create the new EPG for the nodes - let's call it Nodes_EPG
  • Statically map every port where nodes attach to this EPG for the new VLAN
  • Apply the same contracts and direction to the Nodes_EPG as you have for the "cluster" EPG
    • This is assuming you want this - see NOTE below
  • Create and apply a contract that allow the Nodes to reach the load balancers (and/or vice versa) for the permitted protocols you want to allow
    • NOTE: If you wish to allow ALL traffic between the Nodes and the load balancers, and you are indeed allowing exactly the same traffic to the Nodes_EPG as the "cluster" EPG, then scrap all these steps and DO NOTHING - leave it as it is, otherwise you are just creating work for work's sake (OK if you charge by the hour)
  • Finally, configure the Access Ports or Hypervisor Port Group for all Nodes to be the VLAN you've linked to the Nodes_EPG
  • Job done.

 

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.

I suppose it is a way of doing it, but i'm a bit confused.

Lets say now I have a vlan for "nodes" where is the vlan for load balancers?

Also, the case is like that,

I have 10 leafs and all the leaves have some servers attached to them.

I want to have one vlan running on each of the attached interfaces, the only segmentation I want is purely ip based.

Lets say on node A which is connected to leaf 103 eth1/4 might have some loadbalancers on his and also the node ips.

 

Hi @Rem Markov ,

Sounds like you haven't completed step 1 from my last answer: RedNectar_0-1745270538554.png

 

  • Firstly, forget whatever you learned about "VLAN=subnet"

so - to your question


Lets say on node A which is connected to leaf 103 eth1/4 might have some loadbalancers on his and also the node ips.


Then you:

  • assign interface leaf 103 eth1/4 to the Loadbalancers_EPG on VLAN x (x=existing VLAN)
  • assign interface leaf 103 eth1/4 to the Nodes_EPG on VLAN y (y=new VLAN as described in the last answer)

Alternatively, you can configure the AAEP so that VLAN y always gets traffic assigned to the Nodes_EPG - which is far easier but makes troubleshooting a little tricker later on. I'd suggest you use the same method that has been used previously.

Check some of my previous answers for more information about "mapping up" and "mapping down" if you are not familiar with the two ways of assigning VLANs to EPGs

https://community.cisco.com/t5/application-centric-infrastructure/what-would-be-the-benefits-of-using-the-aaep-application-epg/m-p/4765796/highlight/true#M13502

https://community.cisco.com/t5/application-centric-infrastructure/aaep-to-epg-setup-without-static-ports/m-p/5006737/highlight/true#M15205

 

 

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.

Review Cisco Networking for a $25 gift card

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