cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
14677
Views
61
Helpful
7
Replies

Where can I find my APIC infrastructure vlan?

Dan Peronto
Level 1
Level 1

Ok, I set my infra vlan about 4 months ago and I cant remember what number I used.

I'm working on another fabric in our 2nd Datacenter and I dont want to overlap the vlans (or do I?)

 

I cannot find the infrastructure vlan anywhere in the GUI or via SSH to the APIC.  I'm a tad NIX illiterate so not much chance of finding it in shell without some hand-holding.

Anyone know where to find this info on a running fabric?

 

1 Accepted Solution

Accepted Solutions

lpember
Level 1
Level 1

Hi Dan,

The simplest way to check the infrastructure VLAN is to issue the "ifconfig | grep bond0." command. This will show you the VLAN configured for the APIC interfaces going to the fabric, which is the infra VLAN.

e.x.

admin@apic1:~> ifconfig | grep bond0.
bond0     Link encap:Ethernet  HWaddr 58:F3:9C:5A:B9:62  
bond0.4093 Link encap:Ethernet  HWaddr 58:F3:9C:5A:B9:62 

On this fabric the infra VLAN is 4093

Let me know if that works for you.

View solution in original post

7 Replies 7

lpember
Level 1
Level 1

Hi Dan,

The simplest way to check the infrastructure VLAN is to issue the "ifconfig | grep bond0." command. This will show you the VLAN configured for the APIC interfaces going to the fabric, which is the infra VLAN.

e.x.

admin@apic1:~> ifconfig | grep bond0.
bond0     Link encap:Ethernet  HWaddr 58:F3:9C:5A:B9:62  
bond0.4093 Link encap:Ethernet  HWaddr 58:F3:9C:5A:B9:62 

On this fabric the infra VLAN is 4093

Let me know if that works for you.

Go figure it is the vlan I thought it was.  Turns out the memory isnt so bad after all.

THANKS lpember !

Can you tell me if we can find using:

#acidiag avread command

[Edit: 2022.08.04 after seeing @Amjad Hashim 's suggestion]

The easiest way to find the infrastructure VLAN is to use the show lldp command on the APIC

apic1# show lldp
 Device-ID             Local-Intf  Port-ID        Infra-Vlan
 --------------------  ----------  -------------  ------
 Leaf2202              eth2/2*     Eth1/1         3962
 Leaf2201              eth2/1      Eth1/1         3962

[end edit]

Hi @AshishSehgal91267 ,


@AshishSehgal91267 wrote:

Can you tell me if we can find using:

#acidiag avread command


No - you can't find the infrastructure VLAN using the 

acidiag avread

 command. As mentioned above, the command 

ifconfig | grep bond0

is the one way to find the infrastructure VLAN.

BTW - if you do wish to see the output of acidiag avread formatted better, use the avread command (without acidiag). It may not have ALL the information, but at least you can read it.

Another way to find the infrastructure VLAN is to use the route command from bash - here I can see the infrastructure VLAN is 3962. (VLAN 203 is for inband management)

apic1# bash
admin@apic1:~> route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         172.16.12.1     0.0.0.0         UG    16     0        0 oobmgmt
0.0.0.0         192.168.10.254  0.0.0.0         UG    32     0        0 bond0.203
10.2.0.0        10.2.0.30       255.255.0.0     UG    0      0        0 bond0.3962
10.2.0.30       0.0.0.0         255.255.255.255 UH    0      0        0 bond0.3962
10.10.3.0       192.168.10.254  255.255.255.0   UG    0      0        0 bond0.203
10.10.6.15      192.168.10.254  255.255.255.255 UGH   0      0        0 bond0.203
169.254.1.0     0.0.0.0         255.255.255.0   U     0      0        0 teplo-1
169.254.254.0   0.0.0.0         255.255.255.0   U     0      0        0 lxcbr0
172.16.12.0     0.0.0.0         255.255.255.0   U     0      0        0 oobmgmt
192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 bond0.203
192.168.10.254  0.0.0.0         255.255.255.255 UH    0      0        0 bond0.203

 

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.

What if in-band connectivity is also configured, then we would see a second bond0.xx subinterface with the command "ifconfig | grep bond0". How could then one distinguish it from the infrastructure VLAN?

Hi @Wassim Aouadi ,

Wow. I hate convoluted threads that continue after the original question is answered. Much better to ask a NEW question with reference to this old thread - that's how your question can help MORE PEOPLE

But back to "How could then one distinguish it from the infrastructure VLAN?"

The answer is show lldp- like I said in my update a couple of days ago.

apic1# show lldp
 Device-ID             Local-Intf  Port-ID        Infra-Vlan
 --------------------  ----------  -------------  ------
 Leaf2202              eth2/2*     Eth1/1         3962
 Leaf2201              eth2/1      Eth1/1         3962
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.

Amjad Hashim
Level 1
Level 1

Hi,

We can find out this information from the command line of the APIC.

simply type "show lldp" and the APIC will show you the information

 
 

 

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