09-03-2014 01:30 PM - edited 03-04-2019 11:41 PM
hi all,
i need to know if the interface IP for BGP link and the loopback address of router have a vlan for them or not??
is yes, then how to check that?
09-03-2014 01:50 PM
Hi,
A loopback interface does not belong to any VLAN. VLANs are related to Ethernet interfaces only.
If a VLAN is being used for an Ethernet interface on a router: this is simple. If the interface in question is the physical interface (e.g. Gi0/0 or Fa0/0) then there is no specific VLAN being configured. If the interface in question is a subinterface, such as Fa0/0.1, and contains the encapsulation dot1q command then a VLAN is in use and its number can be determined from the encapsulation dot1q command.
Why are you actually asking this question?
Best regards,
Peter
09-03-2014 06:32 PM
Peter
While I basically agree with your response I would propose one refinement. If we are looking at the physical Ethernet interface of a router and if that interface is connected to a switch access port then there is certainly a VLAN associated with the switch side. And one might then also say that the VLAN is associated with the router physical interface.
Perhaps another way to look at it starts from the fact that a defining characteristic of a VLAN is that it defines a layer 2 broadcast domain. A router physical interface also defines a layer 2 broadcast domain.
HTH
Rick
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide