0% found this document useful (0 votes)
167 views5 pages

8.BGP Auto-Summary

The document discusses how BGP auto-summary works. When enabled, auto-summary allows a router to advertise an entire classful network without specifying the subnet mask. This is demonstrated using two routers where one router is configured to advertise the classful network 1.0.0.0/8 without a mask after enabling auto-summary on that router. The second router then learns the 1.0.0.0/8 network in its BGP table. The full configuration of each router is also provided.

Uploaded by

Aakash Goel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
167 views5 pages

8.BGP Auto-Summary

The document discusses how BGP auto-summary works. When enabled, auto-summary allows a router to advertise an entire classful network without specifying the subnet mask. This is demonstrated using two routers where one router is configured to advertise the classful network 1.0.0.0/8 without a mask after enabling auto-summary on that router. The second router then learns the 1.0.0.0/8 network in its BGP table. The full configuration of each router is also provided.

Uploaded by

Aakash Goel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

8/8/2016 BGP Auto­Summary | NetworkLessons.

com

Search...

Table of Contents
BGP

Unit 1: Introduction to BGP


Introduction to BGP

eBGP (external BGP)

eBGP Multi-Hop

iBGP (internal BGP)

How to read the BGP Table

How to advertise networks in BGP

iBGP Next Hop Self

BGP Auto-summary

Unit 2: BGP Neighbor Adjacency


Unit 3: BGP Attributes
Unit 4: BGP Communities
Unit 5: BGP Filtering
Unit 6: Advanced BGP Features

You are here: Home » BGP

BGP Auto-Summary
21 votes
https://networklessons.com/bgp/bgp­auto­summary/ 1/8
8/8/2016 BGP Auto­Summary | NetworkLessons.com

In a previous lesson I explained how the BGP network command works. When we enable auto-
summary for BGP, the way the network command works changes slightly.

Normally when you advertise a network in BGP you have to type in the exact network and subnet
mask that you want to advertise or it won’t be placed in the BGP table.

With auto-summary enabled, you can advertise a classful network and you don’t have to add the
mask parameter. BGP will automatically advertise the classful network if you have the classful
network or a subnet of this network in your routing table. Let me give you an example to explain
what I’m talking about. I’ll use these two routers:

These routers are con윪gured for eBGP, there’s a loopback interface on R1 with network 1.1.1.1 /32.
Here’s the con윪guration:

R1#show run | section bgp 
router bgp 1 
 bgp log‐neighbor‐changes 
 neighbor 192.168.12.2 remote‐as 2

R2#show run | section bgp 
router bgp 2 
 bgp log‐neighbor‐changes 
 neighbor 192.168.12.1 remote‐as 1

https://networklessons.com/bgp/bgp­auto­summary/ 2/8
8/8/2016 BGP Auto­Summary | NetworkLessons.com

The con윪guration is straight-forward, we only con윪gured eBGP, no networks have been advertised
and auto-summary is disabled. Let’s see if we can advertise classful network 1.0.0.0/8:

R1(config)#router bgp 1 
R1(config‐router)#network 1.0.0.0

Note that I didn’t specify a subnet mask with the mask parameter. Take a look at the BGP table
now:

R1#show ip bgp 1.0.0.0 
% Network not in table

As expected there is nothing in the BGP table since we require the exact network and subnet
mask. Let’s enable auto-summary now so you can see the di蚇୮erence:

R1(config)#router bgp 1 
R1(config‐router)#auto‐summary

After enabling auto-summary things will change. Take a look at the BGP table of R1:

R1#show ip bgp 1.0.0.0 
BGP routing table entry for 1.0.0.0/8, version 2 
Paths: (1 available, best #1, table default) 
  Advertised to update‐groups: 
     1 
  Local 
    0.0.0.0 from 0.0.0.0 (192.168.12.1) 
      Origin IGP, metric 0, localpref 100, weight 32768, valid, sourced, local, 
best

R1 now has an entry for classful network 1.0.0.0/8. It was able to install this in its BGP table
because auto-summary is enabled and we have 1.1.1.1/32 in our routing table. This network will
also be advertised to R2:

https://networklessons.com/bgp/bgp­auto­summary/ 3/8
8/8/2016 BGP Auto­Summary | NetworkLessons.com

R2#show ip bgp 
BGP table version is 2, local router ID is 192.168.12.2 
Status codes: s suppressed, d damped, h history, * valid, > best, i ‐ internal, 
              r RIB‐failure, S Stale, m multipath, b backup‐path, x best‐
external, f RT‐Filter 
Origin codes: i ‐ IGP, e ‐ EGP, ? ‐ incomplete 

   Network          Next Hop            Metric LocPrf Weight Path 
*> 1.0.0.0          192.168.12.1             0             0 1 i

That's all there is to it.

Configurations

Want to take a look for yourself? Here you will 윪nd the con윪guration of each device.

R1
hostname R1 

interface Loopback 0 
 ip address 1.1.1.1 255.255.255.255 

interface fastEthernet0/0 
 ip address 192.168.12.1 255.255.255.0 

router bgp 1 
 neighbor 192.168.12.2 remote‐as 2 
 network 1.0.0.0 
 auto‐summary 

end

R2
hostname R2 
https://networklessons.com/bgp/bgp­auto­summary/ 4/8
8/8/2016 BGP Auto­Summary | NetworkLessons.com


interface fastEthernet0/0 
 ip address 192.168.12.2 255.255.255.0 

router bgp 2 
 neighbor 192.168.12.1 remote‐as 1 

end

I hope this example has been useful, if you have any questions feel free to leave a comment!

Rate this Lesson:

« Previous Lesson
iBGP Next Hop Self
Next Lesson
BGP Neighbor Adjacency States »
Home › Forums › BGP Auto-Summary

This topic contains 1 reply, has 2 voices, and was last updated by   Rene Molenaar 11 months
ago.

Viewing 2 posts - 1 through 2 (of 2 total)


Author
Posts  | Subscribe
September 8, 2015 at 00:44 #10623 Reply

https://networklessons.com/bgp/bgp­auto­summary/ 5/8

You might also like