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

Usage of Loopback interfaces/ IP address management

rsgamage1
Level 3
Level 3

When using eBGP for what is the best practice with regard to IP address planning?

example:

1) eBGP is run with loopback interface,

2) IP space advertised includes the IP subnet allocated for loopback IPs as well.

How could one tackle the issue with overlapping IP subnets?

217.217.0.0/22 is advertised and it requires that 217.217.3.0/29 is used for Loopback IPs (eBGP, iBGP)

But when assigned 217.217.3.1/32 for loopback0..Cannot assign 217.217.0.254/22 for any other router interface(overlaps with loopback0)

5 Replies 5

Rick Morris
Level 6
Level 6

for route announcements it should not have anything to do with your assignment of IP's.

what you need to make sure of is that you use the correct netmask for assignments. You cannot overlap in this regard.

I would use a /32 for loopback assignments, then make sure you do not announce the specific IP, make sure you announce the entire subnet you own, unless you have a need not to.

You will need to subnet your block.

Or ask your ISP for IP's to use for the loopback for peering sessions.

So when you use /22 /23 or /24 for eBGP and when you don't have a lot of room for loopback & serial assignments the best choice would be to ask upstream ISP.

Thanks

Most ISP's will allocate a small IP range for this purpose. This allows full use of IP use for you.

Tell them you need IP's to assign to the loopback for BGP peering. Depending on the need they will give you a /30 or a /29. Most of the time it is a /30.

Did this work?

I am curious to know if the ISP allocated the IP or if you had to subnet your own block. I just want to know for my own sake and not telling people wrong.

Craig Norborg
Level 4
Level 4

217.217.0.0/22 goes from 217.217.0.0 -> 217.217.3.254. You cannot assign a loopback as 217.217.3.1/32 on the same router that is directly connected to this subnet...

Usually with loopbacks, you'll take a range of IP's (lets say the 217.217.4.0/24) and assign all your loopbacks from that as /32's. But you can't use that range anywhere else.

Either that or assign the 217.217.3.1/32 as loopback and then assign the 217.217.0.254/23 instead, but you can't have overlapping ranges directly connected to the router!!

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