Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

How to setup loopback address in our environment?

Hi ALL:

We have three sites on our company. There are Core switch(65xx)+ several L2 switches (37xx) in every site. we used to use management vlan (not Vlan1) on all devices. But we want to use loopback address for management again.My question are:

1.Do we need setup loopback address in our situation because SVI (management vlan)was already here? Both loopback and SVI are virtual address in case the physical address is down

2.I check the previous topic in this forum.Some guys recommend that L2 switch does not need it (use SVI), but L3 switch need it. But actually in our L3 core switch, we use SVI instead of physical IP address.

3.If you think all devices need loopback.How to choose the IP address scale? Do we need use submask as 32 for every devices because I only know it could save address space instead of 24 bit submask? But we use the private address in our environment.

We could use lots of address space for that. we also do not setup static route for every L2 switch if we choose 24 bit submask.

Please advice! Thank you very much.

8 REPLIES
Hall of Fame Super Blue

Re: How to setup loopback address in our environment?

Huan

If you had a routed access-layer ie. your 3750 switches were acting as L3 devices then i would recommend going with loopbacks on all your switches for management.

However you are running L2 from the access-layer so i would stick to using a vlan for managing your switches. You have already done the right thing by not using vlan 1.

Jon

Community Member

Re: How to setup loopback address in our environment?

we are not enable "ip routing" in our 3750 switches. only setup "default GW" in every 3750 switch to point to core switch. I think they are still L2 switches.

Thanks!

Hall of Fame Super Bronze

Re: How to setup loopback address in our environment?

Loopbacks are recommended on regular routers so you don't have to depend on a physical interface for management connectivity. You can reach the router in question via any available physical interface - provided the loopback is being advertised.

As for switches, the loopback can be configured in Layer3 switches (not allowed in Layer2 switches) but it's not required. The SVI (switch virtual interface) will remain up/up as long as an associated switchport is up/up that is part of that Vlan. If the switchport is a trunk port, the SVI will automatically be up/up unless you prune that Vlan from the trunk.

In short, the SVI has similar characteristics as the loopback since it can be reachable via any physical interface as long as the Layer3 information is being advertised.

As for the use of /32 vs /24, it's recommended to use /32 for IP address preservation.

HTH,

__

Edison.

Community Member

Re: How to setup loopback address in our environment?

I apprecaite your help

Could you tell me why the loopback address is not allowed in L2 switches?

If we use /32 submask, the following situation will occur, for example:

lo0 on core: 172.20.99.1/32

lo0 on 3750 switch connected core: 172.20.99.10/32

SVI of management on core: 172.20.88.1/24

SVI of management on 3750 switch connected core: 172.20.88.10/24

I have to add static route on our core to ensure that lo0 of 3750 is reachable. The command should be like that:

ip route 172.20.99.10 255.255.255.255 172.20.88.10

Is it reasonablee because SVI is also virtual IP address?

If I use the /24, I think the this question could not be happened.

Please go ahead for advice! Thanks again

Hall of Fame Super Bronze

Re: How to setup loopback address in our environment?

Could you tell me why the loopback address is not allowed in L2 switches?

Hardware design. Only one Layer3 interface is allowed to be up/up in the switch and this interface must be reachable. Kind of hard to reach a loopback if there isn't a way to get there via a routable Vlan :)

I have to add static route on our core to ensure that lo0 of 3750 is reachable. The command should be like that:

ip route 172.20.99.10 255.255.255.255 172.20.88.10

That's correct.

Is it reasonablee because SVI is also virtual IP address?

Both switches share the same Vlan, so in order to reach a Layer3 interface that sits behind that Vlan, you need to reach it via the SVI.

If I use the /24, I think the this question could not be happened.

With /24, it wouldn't work as both loopbacks would share the same subnet.

You wouldn't be able to create a static route in the Core router as that subnet is already in the routing table as 'connected' route.

HTH,

__

Edison.

Please rate helpful posts

Community Member

Re: How to setup loopback address in our environment?

Thanks for your two cents!

1.You mean I could not setup loopback address on the L2 switch if SVI was already UP if this is Hardware design. But in our devices (3750 switch), loopback interface is UP except management SVI is UP. I did not understand why you say "Only one Layer3 interface is allowed to be up/up in the switch "?

2.If we have to assign loopback address in our environemnt, I will use submask/32+ static route solution.Is it correct?

3. In your experience, how to setup them in other companies with the similar situation? Keep management SVI is OK or pick up Loopback address?

Thanks again!

Hall of Fame Super Bronze

Re: How to setup loopback address in our environment?

You mean I could not setup loopback address on the L2 switch if SVI was already UP if this is Hardware design. But in our devices (3750 switch), loopback interface is UP except management SVI is UP. I did not understand why you say "Only one Layer3 interface is allowed to be up/up in the switch "?

3750 is a Layer3 switch. You can disable routing but the hardware remains L3 capable. With that said, if you want to route a subnet being held in the 3750, you need to enable routing in the device.

If we have to assign loopback address in our environemnt, I will use submask/32+ static route solution.Is it correct?

I recommend implementing dynamic routing protocols instead (EIGRP or OSPF).

In your experience, how to setup them in other companies with the similar situation? Keep management SVI is OK or pick up Loopback address?

It depends on the company. Old timers like to use loopback for management since they learned this concept from routers. Using a SVI for management in switches is perfectly ok. Actually, many companies create a 'management Vlan' that is shared in all switches in the LAN.

HTH,

__

Edison.

Community Member

Re: How to setup loopback address in our environment?

Thanks a lot!

I think we will keep managment SVI for montoring and management instead of loopback address.

1321
Views
5
Helpful
8
Replies
CreatePlease to create content