Skip to Content
BGP
book

BGP

by Iljitsch van Beijnum
September 2002
Intermediate to advanced
288 pages
8h 36m
English
O'Reilly Media, Inc.
Content preview from BGP

Chapter 5. Getting Started with BGP

In this chapter I’ll take a basic non-BGP Cisco router configuration (see Appendix A for an example configuration) and turn it into a full BGP configuration for a small, multihomed network, step by step. Figure 5-1 shows the Autonomous Systems and the network connections between them that are used for examples in this chapter.

Example network multihomed to two ISPs
Figure 5-1. Example network multihomed to two ISPs

Enabling BGP

It’s common to use ip unnumbered for point-to-point (leased line) connections to an ISP, as shown in Example 5-1.

Example 5-1. Unnumbered configuration for a leased line
!
interface Ethernet0
 ip address 192.0.2.65 255.255.255.192
!
interface Serial0
 description ISP A
 ip unnumbered Ethernet0
!
ip route 0.0.0.0 0.0.0.0 Serial0
!

Without BGP, there is no need to assign a small subnet to the leased line “network,” because the remote system is already uniquely identified by the fact that it’s the only system at the other side of the point-to-point link. There must still be an IP address present to enable IP processing for the interface, however. The ip unnumbered command “borrows” the address from another interface (in this case Ethernet0) for this purpose. All traffic to the entire Internet is then directed to the Serial0 interface by using the command ip route 0.0.0.0 0.0.0.0 Serial0 to create a default route, without any need to know the actual address of the router on ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Practical BGP

Practical BGP

Danny McPherson, Russ White, Sangli Srihari
Networking and Kubernetes

Networking and Kubernetes

James Strong, Vallery Lancey

Publisher Resources

ISBN: 9780596002541Errata Page