cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2974
Views
5
Helpful
5
Replies

SVI and a Loopback with the same IP range in the same router.

Jose Vidal Diez
Level 1
Level 1

Hi everybody,

I have a doubt about a SVI and a Loopback with the same IP range in the same router.

 

Some days ago I tried to configure a SVI and a Loopback in the same router and the CLI answered me that it is no posible to have a SVI and a Loopback in the same router in the samre IP range, and I would want to know what is the technical answer for this behaviour.

 

Thank you very much for the support.

Best Regards.

José

1 Accepted Solution

Accepted Solutions

Hi

You cannot have 2 IP addresses of the same network segment because it will create an overlaping, on the most of the cases the IP addresses configured on Physical/Logical Interfaces are related to default gateways of LANs, in order to avoid inconveniences with the traffic.

 

The exception is when you use 'secondary' word at the end of the addressing but over the same interface only, for example:

 

interface loopback 0

ip address 1.1.1.1 255.255.255.255 

ip address 1.1.1.2 255.255.255.255 secondary

 

or 

 

Interface FastEthernet 0/0

ip address 10.12.0.1 255.255.255.0

ip address 10.12.0.45 255.255.255.0 secondary

 

Hope it is useful

:-)




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

View solution in original post

5 Replies 5

Hi

You cannot have 2 IP addresses of the same network segment because it will create an overlaping, on the most of the cases the IP addresses configured on Physical/Logical Interfaces are related to default gateways of LANs, in order to avoid inconveniences with the traffic.

 

The exception is when you use 'secondary' word at the end of the addressing but over the same interface only, for example:

 

interface loopback 0

ip address 1.1.1.1 255.255.255.255 

ip address 1.1.1.2 255.255.255.255 secondary

 

or 

 

Interface FastEthernet 0/0

ip address 10.12.0.1 255.255.255.0

ip address 10.12.0.45 255.255.255.0 secondary

 

Hope it is useful

:-)




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

Thank you very much Julio.

You are welcome, have a great day!

:-)




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

Joseph W. Doherty
Hall of Fame
Hall of Fame

BTW, if your router supports VRFs, then you can have overlapping networks, as long as they are in different VRFs. (You can also have overlapping IPs too.)

As to why Cisco router's disallows this, I suspect Cisco considers it a configuration error which could lead to other issues if allowed. For example, consider you want to assign two routed ports to the same subnet, so you can "double' your bandwidth to/from that network. It would probably work fine for traffic to/from other end hosts, but what if a routing protocol is enabled on those ports, would those ports try to create an adjacency between themselves? (Etc. . .)

Hi Joseph,

 

Thank you very much for your answer.

Very instructive.

 

Best regards.

Review Cisco Networking for a $25 gift card