error 400 invalid configuration : subnets with matching

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 02:03 AM - edited 03-30-2022 04:17 AM
Dear ALL,
When I configure CISCO ACI, create a new bd, and when vrf is selected, I cannot continue to submit, and the following error is reported
error 400 invalid configuration : subnets with matching ips cannot have diffierent scopes:
172.28.177.254/24
May I ask the experts what is the reason? How to solve it?
Thanks!
- Labels:
-
Cisco ACI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 05:00 AM
What are the scope options you've set on the Subnet (Advertise Externally/Shared between VRFs)?
Where are you creating the IP subnet, under the BD or under the EPG?
Robert

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 06:47 AM
Hi Robert ,
1、Advertise Externally
2、Creating the IP subnet under the EPG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 07:05 AM
You likely have defined the same subnet under a Bridge domain. You can't define a subnet under both a BD and EPG with different scopes (Advertise Externally or Shared).
Robert

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 11:07 PM
@Robert Burns @But confirmed that the same subnet has not been created for the time bein
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 01:05 PM - edited 03-30-2022 11:34 PM
Hi @eric888888 ,
This is a new feature in v4.2 (approx) to help avoid having different scopes defined for the same subnet when you have the subnet defined both under the BD AND an EPG that links to that BD
Remember, you only need subnets defined under an EPG if it is sharing that subnet between VRFs, so
- Find the EPG that is defined under an EPG moquery -c fvSubnet | egrep ^dn
- validate that the subnet really needs to be defined under the subnet (i.e. the EPG is providing a contract to another VRF/Tenant)
- if not, you probably should remove it OR
- IF the subnet is indeed required under the EPG (because it IS providing a contract to another VRF), then
- if no other EPGs are using this subnet,
- remove the subnet from the BD OR
- make sure the scope is set to Shared between VRFs in both places
- else [other EPGs are using this subnet]
- make sure the scope is set to Shared between VRFs in both places
- endif
- if no other EPGs are using this subnet,
Of course, your design MAY have subnets defied under the EPG everywhere, and none under the BDs - that is you choice, but not one I would recommend because it is not as flexible as defining Subnets under the BDs
I hope this helps.
Don't forget to mark answers as correct if it solves your problem. This helps others find the correct answer if they search for the same problem.
Forum Tips: 1. Paste images inline - don't attach. 2. Always mark helpful and correct answers, it helps others find what they need.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 10:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 11:34 PM
OK my approximation guess of v5.2 was out by a version. I'll edit it
Forum Tips: 1. Paste images inline - don't attach. 2. Always mark helpful and correct answers, it helps others find what they need.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2022 01:10 AM
But confirmed that the same subnet has not been created for the time bein
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2022 01:45 AM
Hi @eric888888 ,
Can you please post the output of this command issued at the APIC CLI?
- moquery -c fvSubnet | egrep ^dn
Forum Tips: 1. Paste images inline - don't attach. 2. Always mark helpful and correct answers, it helps others find what they need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2022 07:59 AM
Hey Guys!!
I Have the same Behavior
Under the BD Configuring the Subnet! Clearly we don't have any subnet overlapping, we don't duplicate the subnet's
Our version is Version: 4.2(7r)
And a key note here is, we recently upgraded to this version.
Seems like a bug??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2022 08:36 AM
Can you provide output of the command above from the APIC CLI? (moquery -c fvSubnet | egrep ^dn)
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2022 01:41 PM
Hi @carlosormon ,
Firstly, trying to resurrect an old post is never gong to catch as many people likely to answer your question as posting a new one (that has a link back to the old one). I don't normally look at the notifications that begin with "Re:..." unless it's a post I recognise.
And another problem with trying to resurrect an old post is that even if you get the answer, you won't be able to mark it as correct (which helps the NEXT person find the answer quickly)
And the fact that LAST time I tried to answer this, I said
Can you please post the output of this command issued at the APIC CLI?
- moquery -c fvSubnet | egrep ^dn
But never got a reply. I suspect @eric888888 actually found the answer when he did that, but never bothered coming back to mark the answer correct (or give us the wisdom of HOW he fixed it)
And now @Robert Burns is asking for the same output.
We await with bated breath for the output of the moquery command
Forum Tips: 1. Paste images inline - don't attach. 2. Always mark helpful and correct answers, it helps others find what they need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2022 08:50 AM - edited 07-19-2022 08:51 AM
It's complaining about the subnet 10.108.16.1/32. That /32 subnet is likely defined under an EPG with one scope, but then you also must have a BD subnet that is defined (likely larger subnet like /24 inclusive of that /32 address) with a different scope option. You can't add new subnets until you fix the existing conflicting one.
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2022 07:51 AM
Hi Robert,
You Were Right
Looking under That EPG, there was configured a subnet on this field!!
So, We deleted this config, and now we can Configure New Subnet's
The issue is solved!!
Thank you very much for your Help!
Regards,
From Colombia!!
