0% found this document useful (0 votes)
19 views27 pages

Lab 3-2 BGP Route Summarization

The document outlines BGP features and configurations, detailing the setup of a network using BGP as the routing protocol across multiple ASs. It includes instructions for configuring IP addresses, establishing BGP peer relationships, and implementing route summarization to optimize routing tables. Additionally, it provides a series of tasks and commands for testing connectivity and verifying BGP configurations.

Uploaded by

Yuri Henry
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)
19 views27 pages

Lab 3-2 BGP Route Summarization

The document outlines BGP features and configurations, detailing the setup of a network using BGP as the routing protocol across multiple ASs. It includes instructions for configuring IP addresses, establishing BGP peer relationships, and implementing route summarization to optimize routing tables. Additionally, it provides a series of tasks and commands for testing connectivity and verifying BGP configurations.

Uploaded by

Yuri Henry
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/ 27

HCIP-IERS Chapter 3 BGP Features and Configurations

ip address 10.0.5.5 255.255.255.255

interface LoopBack1

ip address 10.1.5.5 255.255.255.0

bgp 64514

peer 10.0.35.3 as-number 64512

ipv4-family unicast

undo synchronization

network 10.1.5.0 255.255.255.0

peer 10.0.35.3 enable

return

Lab 3-2 BGP Route Summarization

Learning Objectives

The objectives of this lab are to learn and understand:

 How to run the network command to implement BGP route


summarization
 How to configure BGP route summarization to suppress specific routes
 How to change attributes of summarized routes
 How to use the AS_Set during route summarization

HUAWEI TECHNOLOGIES 299


HCIP-IERS Chapter 3 BGP Features and Configurations

Topology

Figure 3-2 BGP route summarization

Scenario

You are a network administrator of a company. The company’s network uses BGP as
the routing protocol. This network consists of multiple ASs, and different branches
use different AS numbers. As the company expands, routers have more and more
routing tables. It is urgent to summarize BGP routes to reduce the routing table size.
You test several route summarization methods and select a suitable method to
summarize routes.

Tasks

Step 1 Set basic parameters and configure IP addresses.

Configure IP addresses and masks for physical interfaces and loopback interfaces of
all the routers. Each loopback interface address uses the 32-bit mask.

[R1]interface Serial 1/0/0

[R1-Serial1/0/0]ip address 10.0.12.1 255.255.255.0

[R1-Serial1/0/0]quit

[R1]interface Serial 3/0/0

[R1-Serial3/0/0]ip address 10.0.14.1 255.255.255.0

HUAWEI TECHNOLOGIES 300


HCIP-IERS Chapter 3 BGP Features and Configurations

[R1-Serial3/0/0]quit

[R1]interface GigabitEthernet 0/0/0

[R1-GigabitEthernet0/0/0]ip add 10.0.15.1 255.255.255.0

[R1-GigabitEthernet0/0/0]quit

[R1]interface LoopBack 0

[R1-LoopBack0]ip address 10.1.1.1 255.255.255.255

[R1-LoopBack0]quit

[R2]interface Serial 1/0/0

[R2-Serial1/0/0]ip address 10.0.12.2 255.255.255.0

[R2-Serial1/0/0]quit

[R2]interface Serial 2/0/0

[R2-Serial2/0/0]ip address 10.0.23.2 255.255.255.0

[R2-Serial2/0/0]quit

[R2]interface loopback 0

[R2-LoopBack0]ip address 10.1.2.2 255.255.255.255

[R2-LoopBack0]quit

[R3]interface Serial 2/0/0

[R3-Serial2/0/0]quit

[R3]ip address 10.0.23.3 255.255.255.0

[R3-Serial2/0/0]quit

[R3]interface loopback 1

[R3-LoopBack1]ip address 10.1.3.3 255.255.255.255

[R3-LoopBack1]quit

[R4]interface Serial 1/0/0

[R4-Serial1/0/0]ip address 10.0.14.4 255.255.255.0

[R4-Serial1/0/0]quit

HUAWEI TECHNOLOGIES 301


HCIP-IERS Chapter 3 BGP Features and Configurations

[R4]interface loopback 0

[R4-LoopBack0]ip address 10.0.4.4 255.255.255.255

[R4-LoopBack0]quit

[R5]interface GigabitEthernet 0/0/0

[R5-GigabitEthernet0/0/0]ip address 10.0.15.5 255.255.255.0

[R5-GigabitEthernet0/0/0]quit

[R5]interface loopback 0

[R5-LoopBack0]ip address 10.1.5.5 255.255.255.255

[R5-LoopBack0]quit

After the configurations are complete, test direct link connectivity.

[R1]ping -c 1 10.0.12.2

PING 10.0.12.2: 56 data bytes, press CTRL_C to break

Reply from 10.0.14.4: bytes=56 Sequence=1 ttl=255 time=41 ms

--- 10.0.12.2 ping statistics ---

1 packet(s) transmitted

1 packet(s) received

0.00% packet loss

round-trip min/avg/max = 41/41/41 ms

[R1]ping -c 1 10.0.14.4

PING 10.0.14.4: 56 data bytes, press CTRL_C to break

Reply from 10.0.14.4: bytes=56 Sequence=1 ttl=255 time=41 ms

--- 10.0.14.4 ping statistics ---

1 packet(s) transmitted

HUAWEI TECHNOLOGIES 302


HCIP-IERS Chapter 3 BGP Features and Configurations

1 packet(s) received

0.00% packet loss

round-trip min/avg/max = 41/41/41 ms

[R1]ping -c 1 10.0.15.5

PING 10.0.15.5: 56 data bytes, press CTRL_C to break

Reply from 10.0.15.5: bytes=56 Sequence=1 ttl=255 time=34 ms

--- 10.0.15.5 ping statistics ---

1 packet(s) transmitted

1 packet(s) received

0.00% packet loss

round-trip min/avg/max = 34/34/34 ms

[R2]ping -c 1 10.0.23.3

PING 10.0.23.3: 56 data bytes, press CTRL_C to break

Reply from 10.0.23.3: bytes=56 Sequence=1 ttl=255 time=34 ms

--- 10.0.23.3 ping statistics ---

1 packet(s) transmitted

1 packet(s) received

0.00% packet loss

round-trip min/avg/max = 34/34/34 ms

Step 2 Configure EBGP and advertise routes.

Configure directly connected routers to establish BGP peer relationships using


physical interface addresses.

[R1]router id 10.1.1.1

HUAWEI TECHNOLOGIES 303


HCIP-IERS Chapter 3 BGP Features and Configurations

[R1]bgp 64513

[R1-bgp]peer 10.0.12.2 as-number 64514

[R1-bgp]peer 10.0.14.4 as-number 64512

[R1-bgp]peer 10.0.15.5 as-number 64516

[R1-bgp]quit

[R2]router id 10.1.2.2

[R2]bgp 64514

[R2-bgp]peer 10.0.12.1 as-number 64513

[R2-bgp]peer 10.0.23.3 as-number 64515

[R2-bgp]quit

[R3]router id 10.1.3.3

[R3]bgp 64515

[R3-bgp]peer 10.0.23.2 as-number 64514

[R3-bgp]quit

[R4]router id 10.0.4.4

[R4]bgp 64512

[R4-bgp]peer 10.0.14.1 as-number 64513

[R4-bgp]quit

[R5]router id 10.1.5.5

[R5]bgp 64516

[R5-bgp]peer 10.0.15.1 as-number 64513

[R5-bgp]quit

After the configurations are complete, check BGP peer relationships.

HUAWEI TECHNOLOGIES 304


HCIP-IERS Chapter 3 BGP Features and Configurations

[R1]display bgp peer

BGP local router ID : 10.1.1.1

Local AS number : 64513

Total number of peers : 3 Peers in established state : 3

Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv

10.0.12.2 4 64514 4 6 0 00:02:19 Established 0

10.0.14.4 4 64512 2 4 0 00:00:40 Established 0

10.0.15.5 4 64516 2 4 0 00:00:17 Established 0

[R2]display bgp peer

BGP local router ID : 10.1.2.2

Local AS number : 64514

Total number of peers : 2 Peers in established state : 2

Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv

10.0.12.1 4 64513 5 6 0 00:03:42 Established 0

10.0.23.3 4 64515 4 6 0 00:02:25 Established 0

[R3]display bgp peer

BGP local router ID : 10.1.3.3

Local AS number : 64515

Total number of peers : 1 Peers in established state : 1

HUAWEI TECHNOLOGIES 305


HCIP-IERS Chapter 3 BGP Features and Configurations

Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv

10.0.23.2 4 64514 6 7 0 00:04:55 Established 0

[R4]display bgp peer

BGP local router ID : 10.0.4.4

Local AS number : 64512

Total number of peers : 1 Peers in established state : 1

Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv

10.0.14.1 4 64513 7 8 0 00:05:11 Established 0

[R5]display bgp peer

BGP local router ID : 10.1.5.5

Local AS number : 64516

Total number of peers : 1 Peers in established state : 1

Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv

10.0.15.1 4 64513 7 8 0 00:05:16 Established 0

The preceding command output shows that all BGP peer relationships are in
Established state.

Run the network command to advertise the network segment of the loopback
interface on each router into BGP.

HUAWEI TECHNOLOGIES 306


HCIP-IERS Chapter 3 BGP Features and Configurations

[R1]bgp 64513

[R1-bgp]network 10.1.1.1 255.255.255.255

[R1-bgp]quit

[R2]bgp 64514

[R2-bgp]network 10.1.2.2 255.255.255.255

[R2-bgp]quit

[R3]bgp 64515

[R3-bgp]network 10.1.3.3 255.255.255.255

[R3-bgp]quit

[R4]bgp 64512

[R4-bgp]network 10.0.4.4 255.255.255.255

[R4-bgp]quit

[R5]bgp 64516

[R5-bgp]network 10.1.5.5 255.255.255.255

[R5-bgp]quit

Check the BGP routing table of R4 and observe the AS_Path attribute.

[R4]display bgp routing-table

BGP Local router ID is 10.0.4.4

Status codes: * - valid, > - best, d - damped,

h - history, i - internal, s - suppressed, S - Stale

Origin : i - IGP, e - EGP, ? - incomplete

HUAWEI TECHNOLOGIES 307


HCIP-IERS Chapter 3 BGP Features and Configurations

Total Number of Routes: 5

Network NextHop MED LocPrf PrefVal Path/Ogn

*> 10.0.4.4/32 0.0.0.0 0 0 i

*> 10.1.1.1/32 10.0.14.1 0 0 64513i

*> 10.1.2.2/32 10.0.14.1 0 64513 64514i

*> 10.1.3.3/32 10.0.14.1 0 64513 64514 64515i

*> 10.1.5.5/32 10.0.14.1 0 64513 64516i

Step 3 Run the network command to summarize BGP routes.

You need to summarize routes on R1.

On R1, add the static route 10.1.0.0/16 pointing to interface Null0 and run the
network command to advertise this route.

[R1]ip route-static 10.1.0.0 16 NULL 0

[R1]bgp 64513

[R1-bgp]network 10.1.0.0 255.255.0.0

[R1-bgp]quit

Check the BGP routing table of R4 to determine whether the summarized route
exists.

<R4>display bgp routing-table

BGP Local router ID is 10.0.4.4

Status codes: * - valid, > - best, d - damped,

h - history, i - internal, s - suppressed, S - Stale

Origin : i - IGP, e - EGP, ? - incomplete

HUAWEI TECHNOLOGIES 308


HCIP-IERS Chapter 3 BGP Features and Configurations

Total Number of Routes: 6

Network NextHop MED LocPrf PrefVal Path/Ogn

*> 10.0.4.4/32 0.0.0.0 0 0 i

*> 10.1.0.0/16 10.0.14.1 0 0 64513i

*> 10.1.1.1/32 10.0.14.1 0 0 64513i

*> 10.1.2.2/32 10.0.14.1 0 64513 64514i

*> 10.1.3.3/32 10.0.14.1 0 64513 64514 64515i

*> 10.1.5.5/32 10.0.14.1 0 64513 64516i

Set an IP prefix list named pref_detail_control to filter the routes to be sent to the
BGP peer R4 and prevent the specific routes from being sent out.

[R1]ip ip-prefix pref_detail_control index 10 permit 10.1.0.0 8 less-equal 24

[R1]bgp 64513

[R1-bgp]peer 10.0.14.4 ip-prefix pref_detail_control export

[R1-bgp]quit

Check the BGP routing table of R4 again. Observe the AS_Path attribute of the
summarized route.

<R4>display bgp routing-table

BGP Local router ID is 10.0.4.4

Status codes: * - valid, > - best, d - damped,

h - history, i - internal, s - suppressed, S - Stale

Origin : i - IGP, e - EGP, ? - incomplete

Total Number of Routes: 2

Network NextHop MED LocPrf PrefVal Path/Ogn

HUAWEI TECHNOLOGIES 309


HCIP-IERS Chapter 3 BGP Features and Configurations

*> 10.0.4.4/32 0.0.0.0 0 0 i

*> 10.1.0.0/16 10.0.14.1 0 0 64513i

Step 4 Run the aggregate command to summarize BGP routes.

Delete the IP prefix list configured in step 3 and the summarized route advertised
using the network command.

Run the aggregate command to summarize routes to 10.1.0.0/16 using the default
mode.

[R1]bgp 64513

[R1-bgp]undo network 10.1.0.0 255.255.0.0

[R1-bgp]undo peer 10.0.14.4 ip-prefix pref_detail_control export

[R1-bgp]quit

[R1]undo ip ip-prefix pref_detail_control

[R1]undo ip route-static 10.1.0.0 16 NULL 0

[R1]bgp 64513

[R1-bgp]aggregate 10.1.0.0 255.255.0.0

[R1-bgp]quit

Check the BGP routing tables of R1 and R4 and observe the Origin attribute of the
summarized route.

[R1]display bgp routing-table

BGP Local router ID is 10.1.1.1

Status codes: * - valid, > - best, d - damped,

h - history, i - internal, s - suppressed, S - Stale

HUAWEI TECHNOLOGIES 310


HCIP-IERS Chapter 3 BGP Features and Configurations

Origin : i - IGP, e - EGP, ? - incomplete

Total Number of Routes: 6

Network NextHop MED LocPrf PrefVal Path/Ogn

*> 10.0.4.4/32 10.0.14.4 0 0 64512i

*> 10.1.0.0/16 127.0.0.1 0 i

*> 10.1.1.1/32 0.0.0.0 0 0 i

*> 10.1.2.2/32 10.0.12.2 0 0 64514i

*> 10.1.3.3/32 10.0.12.2 0 64514 64515i

*> 10.1.5.5/32 10.0.15.5 0 0 64516i

<R4>display bgp routing-table

BGP Local router ID is 10.0.4.4

Status codes: * - valid, > - best, d - damped,

h - history, i - internal, s - suppressed, S - Stale

Origin : i - IGP, e - EGP, ? - incomplete

Total Number of Routes: 6

Network NextHop MED LocPrf PrefVal Path/Ogn

*> 10.0.4.4/32 0.0.0.0 0 0 i

*> 10.1.0.0/16 10.0.14.1 0 64513i

*> 10.1.1.1/32 10.0.14.1 0 0 64513i

*> 10.1.2.2/32 10.0.14.1 0 64513 64514i

*> 10.1.3.3/32 10.0.14.1 0 64513 64514 64515i

*> 10.1.5.5/32 10.0.14.1 0 64513 64516i

HUAWEI TECHNOLOGIES 311


HCIP-IERS Chapter 3 BGP Features and Configurations

The preceding command output shows that the Origin attribute of the summarized
route retains unchanged and is still IGP.

When configuring route summarization on R1, suppress specific routes and


advertise only the summarized route.

[R1]bgp 64513

[R1-bgp]aggregate 10.1.0.0 255.255.0.0 detail-suppressed

[R1-bgp]quit

Check the BGP routing table of R4.

[R4]display bgp routing-table

BGP Local router ID is 10.0.4.4

Status codes: * - valid, > - best, d - damped,

h - history, i - internal, s - suppressed, S - Stale

Origin : i - IGP, e - EGP, ? - incomplete

Total Number of Routes: 2

Network NextHop MED LocPrf PrefVal Path/Ogn

*> 10.0.4.4/32 0.0.0.0 0 0 i

*> 10.1.0.0/16 10.0.14.1 0 64513i

The preceding command output shows that the BGP routing table of R4 does not
contain specific routes.

Check the IP routing table of R1 to view the next hop of the route to 10.1.0.0/16.

[R1]display ip routing-table

Route Flags: R - relay, D - download to fib

HUAWEI TECHNOLOGIES 312


HCIP-IERS Chapter 3 BGP Features and Configurations

----------------------------------------------------------------------------

Routing Tables: Public

Destinations : 21 Routes : 21

Destination/Mask Proto Pre Cost Flags NextHop Interface

10.0.4.4/32 EBGP 255 0 D 10.0.14.4 Serial3/0/0

10.0.12.0/24 Direct 0 0 D 10.0.12.1 Serial1/0/0

10.0.12.1/32 Direct 0 0 D 127.0.0.1 Serial1/0/0

10.0.12.2/32 Direct 0 0 D 10.0.12.2 Serial1/0/0

10.0.12.255/32 Direct 0 0 D 127.0.0.1 Serial1/0/0

10.0.14.0/24 Direct 0 0 D 10.0.14.1 Serial3/0/0

10.0.14.1/32 Direct 0 0 D 127.0.0.1 Serial3/0/0

10.0.14.4/32 Direct 0 0 D 10.0.14.4 Serial3/0/0

10.0.14.255/32 Direct 0 0 D 127.0.0.1 Serial3/0/0

10.0.15.0/24 Direct 0 0 D 10.0.15.1 GigabitEthernet0/0/0

10.0.15.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/0

10.0.15.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/0

10.1.0.0/16 IBGP 255 0 D 0.0.0.0 NULL0

10.1.1.1/32 Direct 0 0 D 127.0.0.1 LoopBack0

10.1.2.2/32 EBGP 255 0 D 10.0.12.2 Serial1/0/0

10.1.3.3/32 EBGP 255 0 D 10.0.12.2 Serial1/0/0

10.1.5.5/32 EBGP 255 0 D 10.0.15.5 GigabitEthernet0/0/0

127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0

127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0

127.255.255.255/32Direct 0 0 D 127.0.0.1 InLoopBack0

255.255.255.255/32Direct 0 0 D 127.0.0.1 InLoopBack0

HUAWEI TECHNOLOGIES 313


HCIP-IERS Chapter 3 BGP Features and Configurations

The route to 10.1.0.0/16 is a summarized route, which is configured on R1. Therefore,


the outbound interface is interface Null0. This configuration can prevent routing
loops.

Check the BGP routing table of R1 to view specific routes.

[R1]display bgp routing-table

BGP Local router ID is 10.1.1.1

Status codes: * - valid, > - best, d - damped,

h - history, i - internal, s - suppressed, S - Stale

Origin : i - IGP, e - EGP, ? - incomplete

Total Number of Routes: 6

Network NextHop MED LocPrf PrefVal Path/Ogn

*> 10.0.4.4/32 10.0.14.4 0 0 64512i

*> 10.1.0.0/16 127.0.0.1 0 i

s> 10.1.1.1/32 0.0.0.0 0 0 i

s> 10.1.2.2/32 10.0.12.2 0 0 64514i

s> 10.1.3.3/32 10.0.12.2 0 64514 64515i

s> 10.1.5.5/32 10.0.15.5 0 0 64516i

If the detail-suppressed parameter is specified, only summarized routes are sent.


Specific routes are marked with s, indicating that they are suppressed during route
summarization.

Step 5 Change the attributes of summarized routes.

By default, BGP does not advertise the Community attribute to any peer.

Configure R5 and R1 to advertise the Community attribute to R1 and R4 respectively.

HUAWEI TECHNOLOGIES 314


HCIP-IERS Chapter 3 BGP Features and Configurations

[R5]bgp 64516

[R5-bgp]peer 10.0.15.1 advertise-community

[R5-bgp]quit

[R1]bgp 64513

[R1-bgp]peer 10.0.14.4 advertise-community

[R1-bgp]quit

Verify that the Community attribute disappears after routes are summarized.

On R5, add the Community attribute 100 to the route 10.1.5.5/32 advertised by R5
and advertise this route to R1.

[R5]acl number 2000

[R5-acl-basic-2000]rule 0 permit source 10.1.5.5 0

[R5-acl-basic-2000]quit

[R5]route-policy set_comm permit node 10

[R5-route-policy]if-match acl 2000

[R5-route-policy]apply community 100

[R5-route-policy]quit

[R5]bgp 64516

[R5-bgp]peer 10.0.15.1 route-policy set_comm export

[R5-bgp]quit

On R1, check whether the route 10.1.5.5/32 carries the Community attribute 100.

<R1>display bgp routing-table community

BGP Local router ID is 10.1.1.1

Status codes: * - valid, > - best, d - damped,

h - history, i - internal, s - suppressed, S - Stale

HUAWEI TECHNOLOGIES 315


HCIP-IERS Chapter 3 BGP Features and Configurations

Origin : i - IGP, e - EGP, ? - incomplete

Total Number of Routes: 2

Network NextHop MED LocPrf PrefVal Community

*> 10.1.5.0/24 10.0.15.5 0 <0:100>

On R4, check whether the summarized route carries the Community attribute 100.

<R4>display bgp routing-table community

Total Number of Routes: 0

The preceding command output shows that R4 does not have any route that carries
the Community attribute.

Configure a route policy add_comm on R1 to add the Community attribute 100:2 to


the summarized route.

[R1]acl number 2000

[R1-acl-basic-2000]rule 0 permit source 10.1.0.0 0.0.255.255

[R1-acl-basic-2000]quit

[R1]route-policy add_comm permit node 10

[R1-route-policy]if-match acl 2000

[R1-route-policy]apply community 100:2

[R1-route-policy]quit

[R1]bgp 64513

[R1-bgp]aggregate 10.1.0.0 255.255.0.0 attribute-policy add_comm

On R4, check whether the summarized route carries the Community attribute 100:2.

HUAWEI TECHNOLOGIES 316


HCIP-IERS Chapter 3 BGP Features and Configurations

<R4>display bgp routing-table community

BGP Local router ID is 10.0.4.4

Status codes: * - valid, > - best, d - damped,

h - history, i - internal, s - suppressed, S - Stale

Origin : i - IGP, e - EGP, ? - incomplete

Total Number of Routes: 2

Network NextHop MED LocPrf PrefVal Community

*> 10.1.0.0/16 10.0.14.1 0 <100:2>

*> 10.1.5.5/32 10.0.14.1 0 <0:100>

The preceding command output shows that the summarized route learned by R4
carries the Community attribute 100:2.

Step 6 Use the AS_Set attribute to configure the AS_Path attribute.

After routes are summarized, the AS_Path attribute of the summarized route is
discarded by default, which may cause a routing loop. To eliminate this risk, add the
AS_Set attribute to the summarized route.

Configure R1 to add the AS_Set attribute to the summarized route during route
summarization.

[R1]bgp 64513

[R1-bgp]aggregate 10.1.0.0 255.255.0.0 detail-suppressed as-set

[R1-bgp]quit

HUAWEI TECHNOLOGIES 317


HCIP-IERS Chapter 3 BGP Features and Configurations

Check the AS_Path attribute of the summarized route in the BGP routing tables of R1
and R4.

[R1]display bgp routing-table

BGP Local router ID is 10.1.1.1

Status codes: * - valid, > - best, d - damped,

h - history, i - internal, s - suppressed, S - Stale

Origin : i - IGP, e - EGP, ? - incomplete

Total Number of Routes: 6

Network NextHop MED LocPrf PrefVal Path/Ogn

*> 10.0.4.4/32 10.0.14.4 0 0 64512i

*> 10.1.0.0/16 127.0.0.1 0 {64514 64515 64516}i

s> 10.1.1.1/32 0.0.0.0 0 0 i

s> 10.1.2.2/32 10.0.12.2 0 0 64514i

s> 10.1.3.3/32 10.0.12.2 0 64514 64515i

s> 10.1.5.5/32 10.0.15.5 0 0 64516i

<R4>display bgp routing-table

BGP Local router ID is 10.0. 4.4

Status codes: * - valid, > - best, d - damped,

h - history, i - internal, s - suppressed, S - Stale

Origin : i - IGP, e - EGP, ? - incomplete

Total Number of Routes: 2

Network NextHop MED LocPrf PrefVal Path/Ogn

HUAWEI TECHNOLOGIES 318


HCIP-IERS Chapter 3 BGP Features and Configurations

*> 10.0.4.4/32 0.0.0.0 0 0 i

*> 10.1.0.0/16 10.0.14.1 0 64513 {64514 64515 64516}i

The AS_Path attribute of the summarized route to which the AS_Set attribute is
added contains AS path information of specific routes.

On R3, stop advertising the route 10.1.3.3/32 and reset the peer relationship.

[R3]bgp 64515

[R3-bgp]undo network 10.1.3.3 255.255.255.255

[R3-bgp]return

<R3>reset bgp all

After the peer relationship is established again, check the AS_Path attribute of the
summarized route learned by R4.

<R4>display bgp routing-table

BGP Local router ID is 10.0.4.4

Status codes: * - valid, > - best, d - damped,

h - history, i - internal, s - suppressed, S - Stale

Origin : i - IGP, e - EGP, ? - incomplete

Total Number of Routes: 2

Network NextHop MED LocPrf PrefVal Path/Ogn

*> 10.0.4.4/32 0.0.0.0 0 0 i

*> 10.1.0.0/16 10.0.14.1 0 64513 {64514 64516}i

HUAWEI TECHNOLOGIES 319


HCIP-IERS Chapter 3 BGP Features and Configurations

The preceding command output shows that the AS_Path attribute does not contain
the AS number 64515.

----End

Additional Exercises: Analysis and Verification

After step 6 is complete, can R5 access the loopback interface address of R3?

What are the differences between the aggregate and summary automatic
commands?

Device Configurations
<R1>display current-configuration

[V200R007C00SPC600]

sysname R1

router id 10.1.1.1

acl number 2000

rule 0 permit source 10.1.0.0 0.0.255.255

interface Serial1/0/0

link-protocol ppp

ip address 10.0.12.1 255.255.255.0

interface Serial3/0/0

link-protocol ppp

ip address 10.0.14.1 255.255.255.0

interface GigabitEthernet0/0/0

HUAWEI TECHNOLOGIES 320


HCIP-IERS Chapter 3 BGP Features and Configurations

ip address 10.0.15.1 255.255.255.0

interface NULL0

interface LoopBack0

ip address 10.1.1.1 255.255.255.255

bgp 64513

peer 10.0.12.2 as-number 64514

peer 10.0.14.4 as-number 64512

peer 10.0.15.5 as-number 64516

ipv4-family unicast

undo synchronization

aggregate 10.1.0.0 255.255.0.0 as-set detail-suppressed

network 10.1.1.1 255.255.255.255

peer 10.0.12.2 enable

peer 10.0.14.4 enable

peer 10.0.14.4 advertise-community

peer 10.0.15.5 enable

route-policy add_comm permit node 10

if-match acl 2000

apply community 100:2

return

<R2>display current-configuration

[V200R007C00SPC600]

HUAWEI TECHNOLOGIES 321


HCIP-IERS Chapter 3 BGP Features and Configurations

sysname R2

router id 10.1.2.2

interface Serial1/0/0

link-protocol ppp

ip address 10.0.12.2 255.255.255.0

interface Serial2/0/0

link-protocol ppp

ip address 10.0.23.2 255.255.255.0

interface LoopBack0

ip address 10.1.2.2 255.255.255.255

bgp 64514

peer 10.0.12.1 as-number 64513

peer 10.0.23.3 as-number 64515

ipv4-family unicast

undo synchronization

network 10.1.2.2 255.255.255.255

peer 10.0.12.1 enable

peer 10.0.23.3 enable

return

<R3>display current-configuration

HUAWEI TECHNOLOGIES 322


HCIP-IERS Chapter 3 BGP Features and Configurations

[V200R007C00SPC600]

sysname R3

router id 10.1.3.3

interface Serial2/0/0

link-protocol ppp

ip address 10.0.23.3 255.255.255.0

interface LoopBack1

ip address 10.1.3.3 255.255.255.255

bgp 64515

peer 10.0.23.2 as-number 64514

ipv4-family unicast

undo synchronization

peer 10.0.23.2 enable

return

<R4>display current-configuration

[V200R007C00SPC600]

sysname R4

router id 10.0.4.4

HUAWEI TECHNOLOGIES 323


HCIP-IERS Chapter 3 BGP Features and Configurations

interface Serial1/0/0

link-protocol ppp

ip address 10.0.14.4 255.255.255.0

interface LoopBack0

ip address 10.0.4.4 255.255.255.255

bgp 64512

peer 10.0.14.1 as-number 64513

ipv4-family unicast

undo synchronization

network 10.0.4.4 255.255.255.255

peer 10.0.14.1 enable

return

<R5>display current-configuration

[V200R007C00SPC600]

sysname R5

router id 10.1.5.5

acl number 2000

rule 0 permit source 10.1.5.5 0

interface GigabitEthernet0/0/0

ip address 10.0.15.5 255.255.255.0

HUAWEI TECHNOLOGIES 324


HCIP-IERS Chapter 3 BGP Features and Configurations

interface LoopBack0

ip address 10.1.5.5 255.255.255.255

bgp 64516

peer 10.0.15.1 as-number 64513

ipv4-family unicast

undo synchronization

network 10.1.5.5 255.255.255.255

peer 10.0.15.1 enable

peer 10.0.15.1 advertise-community

peer 10.0.15.1 route-policy set_comm export

route-policy set_comm permit node 10

if-match acl 2000

apply community 100

return

Lab 3-3 BGP Attributes and Route Selection 1

Learning Objectives

The objectives of this lab are to learn and understand:

 How to configure the AS_Path attribute to affect route selection


 How to modify the Origin attribute to affect route selection
 How to modify the Local_Pref attribute to affect route selection
 How to modify the MED attribute to affect route selection

HUAWEI TECHNOLOGIES 325

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy