cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
389
Views
0
Helpful
2
Replies

loopback interface

carl_townshend
Spotlight
Spotlight

Hi all, If I create a loopback interface on my router/switch, can I connect to this from any vlan or any port, would my pc have to be on the same vlan ip of the port to reach the loopback, people say you can plug into any physical connection and still reach loopback, how does this work if the port is in a vlan ?

2 Replies 2

Collin Clark
VIP Alumni
VIP Alumni

The loopback is not really in a VLAN. For example I use loopbacks on all our routers. All the loopbacks are in the same IP Subnet. When you configure the loopback use the subnet mask of /32, a host route (this is the default BTW). You will need to add the loopback subnet to your IGP. Now this IP subnet really has a bunch of host routes (each router) and they are reachable via many different ways such as your ethernet or serial connections on the routers.

HTH

Istvan_Rabai
Level 7
Level 7

Hi Carl,

Just to write some additional explanation to this:

The loopback interface behaves like a physical interface, in terms that it should be in a subnet different from other interfaces.

So you cannot connect to it direcly with your pc, but you can reach it via routing from your vlan, i.e. via layer 3 connection, not via layer 2 connection. The loopback is in a different subnet, a different broadcast domain if you like.

You should be able to ping it from your vlan.

If you still cannot reach it, just write me about your config and I will help.

Cheers: Istvan

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card