Case Study Private AS Numbers

You are familiar with private IP addresses, as specified by RFC 1918. These addresses, in the range 10.0.0.0-10.255.255.255, 172.16.0.0-172.31.255.255, and 192.168.0.0-192.168.255.255, are designed to help alleviate the depletion of IP addresses. When an internetwork has a need for IP addresses, but the addresses do not need to be known publicly (that is, they do not need to be reachable from the Internet), you can use private addresses rather than public addresses. Because anyone can use any private IP address, tin addresses are not unique and must never be advertised into the public Internet.

Private AS numbers also exist, and like private IP addresses, they are designed to alleviate the depletion of public AS numbers. AS numbers 64512 to 65535 are reserved for private use. If a BGP-speaking subscriber is homed to a single ISP, the subscriber can and is encouraged to use a private AS number.

For example, previous case studies have depicted the autonomous systems connected to router Colorado in Figure 3-26 as "client" autonomous systems of AS 100. AS 2000, connected across a NAP to AS 100, represents the public Internet. AS 100 might be an 1ST and the connected autonomous systems its subscribers, or AS 100 might be the publicly connected part of a large corporate internetwork, and the other autonomous systems its private divisions. Whatever the case, the five "client" autonomous systems in Figure 3-2(> are reachable only across the NAP and through AS 100. The only reason they have individual AS numbers is so that EBGP can be used to connect them to AS 100; AS 100 can advertise their routes to the Internet without including their AS numbers. Figure 3-27 shows the same internetwork as Figure 3-26, but here the "client" autonomous systems use AS numbers out of the private pool.

Remember that like private IP addresses, private AS numbers must not be advertised to the Internet, because they are not unique. Example 3-145 shows that without further configuration, the AS numbers of AS 100's clients are advertised across the NAP to router Austria.

figure 3-27 The Autonomous Systems Attached to Colorado Use Private AS Numbers

f «um pie 3-145 Austria's BGP Table Shows Private AS Numbers in the AS_PATHs of Some of the Routes from AS 100; if Austria Is Part of the Public Internet, Connected to AS 100 Across a NAP, These AS Numbers Must Not Be Included in the ASJPATHs

Austria#show ip bgp

BGP table version is 189, local router ID is 10.2.255.1

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path

*>

10

1

.1 .

.0/24

10

1

.255,

.8

0

100

65001

i

*>

10

1

.2.

.0/24

10

1

.255,

.8

0

100

65001

i

*>

10

1

.3.

.0/24

10

1

.255.

.8

0

100

65002

i

*>

10

1

.4.

.0/24

10

1

.255.

.8

0

100

65002

i

*>

10

1

.5.

.0/24

10

1

.255.

.8

0

100

65003

i

*>

10

1

.6.

.0/24

10

1

.255.

,8

0

100

65003

i

*>

10

1

.7.

,0/24

10

1

.255.

,8

0

100

65004

i

*>

10

1

.8.

,0/24

10

1

.255.

,8

0

100

65004

Example 3-145 Austria's BGP Table Shows Private AS Numbers in the AS_PATHs of Some of the Routes from AS 100; if Austria Is Part of the Public Internet, Connected to AS 100 Across a NAP, These AS Numba Must Not Be Included in the AS_PATHs (Continued)

>

10,

.1 ,

.9.0/24

10.1.255.8

0

100

65005 i

>

10,

.1 ,

.10.0/24

10.1.255.8

0

100

65005 i

>

10,

.1 ,

.11.0/24

10.1.255.8

0

100

i

>

10,

.1 ,

.12.0/24

10.1.255.8

0

0

100

i

>

10,

.2,

.1.0/24

0.0.0.0

0

32768

i

>

10,

.2,

.2.0/24

0.0.0.0

0

32768

i

>

10,

.2,

.3.0/24

0.0.0.0

0

32768

i

Austria#

In Example 3-146, Idaho is configured to prevent the private AS numbers from being advertised across the NAP.

Example 3-146 Filtering Private AS Numbers router bgp 100 no synchronization network 10.1.12.0 mask 255.255.255.0

neighbor 10.1.255.1 remote-as 100

neighbor 10.1.255.1 update-source Loopback0

neighbor 10.1.255.1 next-hop-self neighbor 10.1.255.1 send-community neighbor 10.1.255.7 remote-as 100

neighbor 10.1.255.7 update-source Loopback0

neighbor 10.1.255.7 next-hop-self neighbor 10.2.255.1 remote-as 2000

neighbor 10.2.255.1 ebgp-multihop 2

neighbor 10.2.255.1 update-source Loopback0

neighbor 10.2.255.1 remove-private-AS no auto-summary

The neighbor remove-private-AS command is reasonably self-explanatory. It removes private AS numbers from the AS_PATH of routes before advertising them to the specified neighbor. In Example 3-147, you can see that all the ASJPATH attributes of all the routes advertised from Idaho to Austria now contain only AS 100. The routers within AS 100 sti 11 have the full path information for the client autonomous systems and can forward packets to the correct destination AS. In this regard, advertising the client subnets as if they are pan of AS 100 is a form of summarization at the autonomous system level.

Readers' Questions

  • hagosa
    Which rfc was created to alleviate the depletion of ipv4 public addresses?
    1 year ago
  • RFC 4291, "IP Version 6 Addressing Architecture" was created to alleviate the depletion of IPv4 public addresses.
    I" imnple 3-147 After the neighbor remove-private-AS Command Has Been Added to Idaho's BGP Configuration, the Private AS Numbers of AS 100's Client Autonomous Systems Are Hidden from Austria

    Austria#show ip bgp

    BGP table version is 214

    , local

    router ID is

    10.

    2.255.1

    Status

    ! codes: s

    suppressed, d damped, h history,

    * valid, >

    ■ best, i - internal

    Origir

    I codes: i

    - IGP,

    e

    - EGP,

    ? - incomplete

    Network

    Next Hop

    Metric

    LocPrf Weight

    Path

    *> 10

    1.1.0/24

    10

    1

    .255,

    .8

    0

    100

    i

    *> 10

    1.2.0/24

    10

    1

    .255,

    .8

    0

    100

    i

    *> 10

    1.3.0/24

    10

    1

    .255,

    .8

    0

    100

    i

    *> 10

    1.4.0/24

    10

    1

    .255,

    .8

    0

    100

    i

    *> 10

    1.5.0/24

    10

    1

    .255,

    .8

    0

    100

    i

    *> 10

    1.6.0/24

    10

    1

    .255,

    .8

    0

    100

    i

    *> 10

    1.7.0/24

    10

    1

    .255,

    .8

    0

    100

    i

    *> 10

    1.8.0/24

    10

    1

    .255,

    .8

    0

    100

    i

    *> 10

    1.9.0/24

    10

    1

    .255.

    .8

    0

    100

    i

    *> 10

    1.10.0/24

    10

    1

    .255,

    .8

    0

    100

    i

    *> 10

    1.11.0/24

    10

    1

    .255,

    .8

    0

    100

    i

    *> 10

    1.12.0/24

    10

    1

    .255,

    .8

    0

    0

    100

    i

    *> 10

    2.1.0/24

    0.É

    ).!

    3.0

    0

    32768

    *> 10

    2.2.0/24

    0.É

    5.0.0

    0

    32768

    *> 10

    2.3.0/24

    0.G

    3.1

    3.0

    0

    32768

    i

    Austria#

    Continue reading here: Case Study BGP Confederations

    Was this article helpful?

    0 0