28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Within a group, you need to configure three things to set up the EBGP session:<br />

1. Use the type external statement to define the session as an external one.<br />

2. Set the AS number of the remote peer AS (here, 65505).<br />

3. Specify the address of the neighboring border router (here, 10.0.31.1).<br />

For EBGP sessions, use the peer router’s interface address. You can use the interface<br />

address instead of the router’s lo0 address because, in most cases, the link between<br />

ASs is a point-to-point WAN link. If this link goes down, the peer router is unreachable<br />

anyway, so the remote AS would also be unreachable.<br />

To establish the EBGP session, configure a similar EBGP group on the other border<br />

router:<br />

[edit routing-options]<br />

aviva@RouterD# show<br />

router-id 192.168.14.1;<br />

autonomous-system 65505;<br />

[edit protocols]<br />

aviva@RouterD# show<br />

bgp {<br />

group session-to-AS65500 {<br />

type external;<br />

peer-as 65500;<br />

neighbor 10.0.31.2;<br />

}<br />

}<br />

Another useful bit of information to set for each neighbor is a text description of the<br />

peering session:<br />

[edit protocols bgp]<br />

aviva@RouterF# set group session-to-AS65505 description "EBGP to Customer A"<br />

This is especially useful to help identify peering sessions when many sessions are<br />

configured on a single router.<br />

After you have configured the two peer routers, check that they have established a<br />

BGP connection:<br />

aviva@RouterF> show bgp neighbor<br />

Peer: 10.0.31.1+1778 AS 65505 Local: 10.0.31.2+179 AS 65500<br />

Description: EBGP to Customer A<br />

Type: External State: Established Flags: <br />

Last State: OpenConfirm Last Event: RecvKeepAlive<br />

Last Error: None<br />

Options: <br />

Holdtime: 90 Preference: 170<br />

Number of flaps: 0<br />

Peer ID: 192.168.14.1 Local ID: 192.168.16.1 Active Holdtime: 90<br />

Keepalive Interval: 30 Peer index: 0<br />

Local Interface: t1-0/0/3.0<br />

NLRI advertised by peer: inet-unicast<br />

424 | Chapter 13: BGP<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!