You are on page 1of 10

LAB-1: BGP

Alcatel-Lucent 7750 Service Router


Author: Arif Romansyah
LAB-1: BGP

Configure Network Interface for BGP


CLI Syntax:
config>router
interface interface-name
address ip-addr{/mask-length | mask} [broadcast {allones
| host-ones}]
cflowd {acl | interface}
egress
filter ip ip-filter-id
filter ipv6 ipv6-filter-id
ingress
filter ip ip-filter-id
filter ipv6 ipv6-filter-id
port port-name

http://gembuls.wordpress.com 2
R1:
A:R1# configure router interface “system”
A:R1>config>router>if# address 1.1.1.1/32
A:R1>config>router>if# no shutdown

A:R1# configure router interface “Interface-to-R3”


A:R1>config>router>if# address 10.100.10.2/30
A:R1>config>router>if# port 1/1/1
A:R1>config>router>if# no shutdown

A:R1# configure router interface “Interface-to-R2”


A:R1>config>router>if# address 172.16.1.1/30
A:R1>config>router>if# port 1/1/2
A:R1>config>router>if# no shutdown

Display following configuration:


A:R1>config>router# info
interface "system"
address 1.1.1.1/32
exit
interface "Interface-to-R3"
address 10.100.10.2/30
port 1/1/1
exit
interface "Interface-to-R2"
address 172.16.1.1/30
port 1/1/2
exit
R2:
A:R2# configure router interface “system”
A:R2>config>router>if# address 2.2.2.2/32
A:R2>config>router>if# no shutdown

A:R2# configure router interface “Interface-to-R3”


A:R2>config>router>if# address 10.50.150.2/30
A:R2>config>router>if# port 1/1/1
A:R2>config>router>if# no shutdown

A:R2# configure router interface “Interface-to-R1”


A:R2>config>router>if# address 172.16.1.2/30
A:R2>config>router>if# port 1/1/2
A:R2>config>router>if# no shutdown

Display following configuration:


A:R2>config>router# info
interface "system"
address 2.2.2.2/32
exit
http://gembuls.wordpress.com 3
interface "Interface-to-R3"
address 10.50.150.2/30
port 1/1/1
exit
interface "Interface-to-R1"
address 172.16.1.2/30
port 1/1/2
exit

R3:
A:R3# configure router interface “system”
A:R3>config>router>if# address 3.3.3.3/32
A:R3>config>router>if# no shutdown

A:R3# configure router interface “Interface-to-R1”


A:R3>config>router>if# address 10.100.10.1/30
A:R3>config>router>if# port 1/1/1
A:R3>config>router>if# no shutdown

A:R3# configure router interface “Interface-to-R2”


A:R3>config>router>if# address 10.50.150.1/30
A:R3>config>router>if# port 1/1/2
A:R3>config>router>if# no shutdown

Display following configuration:


A:R3>config>router# info
interface "system"
address 3.3.3.3/32
exit
interface "Interface-to-R1"
address 10.100.10.1/30
port 1/1/1
exit
interface "Interface-to-R2"
address 10.50.150.1/30
port 1/1/2
exit

Configuring Autonomous-System Number


R1: R3:
A:R1# configure router autonomous-system 12345 A:R2# configure router autonomous-system 54321

R2:
A:R2# configure router autonomous-system 12345
http://gembuls.wordpress.com 4
Configuring BGP
R1:
A:R1# configure router bgp group “IBGP”
A:R1>config>router>bgp>group# description “Internal-BGP”
A:R1>config>router>bgp>group# neighbor 172.16.1.2
A:R1>config>router>bgp>group>neighbor# peer-as 12345
A:R1>config>router>bgp>group>neighbor# local-as 12345
A:R1>config>router>bgp>group>neighbor# type internal
A:R1>config>router>bgp>group>neighbor# family ipv4
A:R1>config>router>bgp>group>neighbor# next-hop-self

A:R1# configure router bgp group “EBGP”


A:R1>config>router>bgp>group# description “External-BGP”
A:R1>config>router>bgp>group# neighbor 10.100.10.1
A:R1>config>router>bgp>group>neighbor# peer-as 54321
A:R1>config>router>bgp>group>neighbor# local-as 12345
A:R1>config>router>bgp>group>neighbor# type external
A:R1>config>router>bgp>group>neighbor# family ipv4 ipv4-vpn

Display following configuration:


A:R1>config>router# info
bgp
group “Internal-BGP”
neighbor 172.16.1.2
peer-as 12345
local-as 12345
type internal
family ipv4
next-hop-self
exit
group “External-BGP”
neighbor 10.100.10.1
peer-as 54321
local-as 12345
type external
family ipv4 ipv4-vpn
exit
exit
exit
R1:
A:R2# configure router bgp group “IBGP”
A:R2>config>router>bgp>group# description “Internal-BGP”
A:R2>config>router>bgp>group# neighbor 172.16.1.1
A:R2>config>router>bgp>group>neighbor# peer-as 12345
A:R2>config>router>bgp>group>neighbor# local-as 12345
A:R2>config>router>bgp>group>neighbor# type internal
http://gembuls.wordpress.com 5
A:R2>config>router>bgp>group>neighbor# family ipv4
A:R2>config>router>bgp>group>neighbor# next-hop-self

A:R2# configure router bgp group “EBGP”


A:R2>config>router>bgp>group# description “External-BGP”
A:R2>config>router>bgp>group# neighbor 10.50.150.1
A:R2>config>router>bgp>group>neighbor# peer-as 54321
A:R2>config>router>bgp>group>neighbor# local-as 12345
A:R2>config>router>bgp>group>neighbor# type external
A:R2>config>router>bgp>group>neighbor# family ipv4 ipv4-vpn

Display following configuration:


A:R2>config>router# info
bgp
group “Internal-BGP”
neighbor 172.16.1.1
peer-as 12345
local-as 12345
type internal
family ipv4
next-hop-self
exit
group “External-BGP”
neighbor 10.50.150.1
peer-as 54321
local-as 12345
type external
family ipv4 ipv4-vpn
exit
exit
exit

R3:
A:R3# configure router bgp group “IBGP”
A:R3>config>router>bgp>group# description “Internal-BGP”
A:R3>config>router>bgp>group# neighbor 172.16.1.2
A:R3>config>router>bgp>group>neighbor# peer-as 12345
A:R3>config>router>bgp>group>neighbor# local-as 12345
A:R3>config>router>bgp>group>neighbor# type internal
A:R3>config>router>bgp>group>neighbor# family ipv4
A:R3>config>router>bgp>group>neighbor# next-hop-self

A:R3# configure router bgp group “EBGP”


A:R3>config>router>bgp>group# description “External-BGP”
A:R3>config>router>bgp>group# neighbor 10.100.10.1
A:R3>config>router>bgp>group>neighbor# peer-as 54321
A:R3>config>router>bgp>group>neighbor# local-as 12345
A:R3>config>router>bgp>group>neighbor# type external
http://gembuls.wordpress.com 6
A:R3>config>router>bgp>group>neighbor# family ipv4 ipv4-vpn

Display following configuration:


A:R3>config>router# info
bgp
group “Internal-BGP”
neighbor 172.16.1.2
peer-as 12345
local-as 12345
type internal
family ipv4
next-hop-self
exit
group “External-BGP”
neighbor 10.100.10.1
peer-as 54321
local-as 12345
type external
family ipv4 ipv4-vpn
exit
exit
exit

Tools for Troubleshooting


# show router bgp
# show router bgp summary
# show router bgp neighbor
# show router bgp paths
# show router bgp routes
# show router bgp next-hop
# show router bgp damping

Sample Output:
A:R1# show router bgp summary
============================================================================
BGP Router ID:1.1.1.1 AS:12345 Local AS:12345
============================================================================
BGP Admin State : Up BGP Oper State : Up
Total Peer Groups : 2 Total Peers : 2
Total BGP Paths : 68881 Total Path Memory : 11616056
Total IPv4 Remote Rts : 387104 Total IPv4 Rem. Active Rts : 387104
Total IPv6 Remote Rts : 0 Total IPv6 Rem. Active Rts : 0
Total Supressed Rts : 0 Total Hist. Rts : 0
Total Decay Rts : 0

http://gembuls.wordpress.com 7
Total VPN Peer Groups : 0 Total VPN Peers : 0
Total VPN Local Rts : 0
Total VPN-IPv4 Rem. Rts : 0 Total VPN-IPv4 Rem. Act. Rts: 0
Total VPN-IPv6 Rem. Rts : 0 Total VPN-IPv6 Rem. Act. Rts: 0
Total L2-VPN Rem. Rts : 0 Total L2VPN Rem. Act. Rts : 0
Total VPN Supp. Rts : 0 Total VPN Hist. Rts : 0
Total VPN Decay Rts : 0
Total MVPN-IPv4 Rem Rts : 0 Total MVPN-IPv4 Rem Act Rts : 0
Total MDT-SAFI Rem Rts : 0 Total MDT-SAFI Rem Act Rts : 0
===========================================================================
BGP Summary
===========================================================================
Neighbor
AS PktRcvd InQ Up/Down State|Rcv/Act/Sent (Addr Family)
PktSent OutQ
---------------------------------------------------------------------------
101.101.101.2
12345 102955 0 17d22h13m 1/1/387103 (IPv4)
2995299 0
202.202.202.1
54321 3622510 0 35d13h16m 387103/387103/16 (IPv4)
103119 0
============================================================================
A:R1# show router bgp neighbor
============================================================================
BGP Neighbor
============================================================================
----------------------------------------------------------------------------
Peer : 172.16.1.2
Group : ibgp
----------------------------------------------------------------------------
Peer AS : 12345 Peer Port : 50867
Peer Address : 172.16.1.2
Local AS : 54321 Local Port : 179
Local Address : 172.16.1.1
Peer Type : Internal
State : Established Last State : Established
Last Event : recvKeepAlive
Last Error : Cease
Local Family : IPv4
Remote Family : IPv4
Hold Time : 90 Keep Alive : 30
Active Hold Time : 90 Active Keep Alive : 30
Cluster Id : None
Preference : 170 Num of Update Flaps : 211
Recd. Paths : 17
IPv4 Recd. Prefixes : 1 IPv4 Active Prefixes : 1
IPv4 Suppressed Pfxs : 0 VPN-IPv4 Suppr. Pfxs : 0
VPN-IPv4 Recd. Pfxs : 0 VPN-IPv4 Active Pfxs : 0

http://gembuls.wordpress.com 8
Mc IPv4 Recd. Pfxs. : 0 Mc IPv4 Active Pfxs. : 0
Mc IPv4 Suppr. Pfxs : 0 IPv6 Suppressed Pfxs : 0
IPv6 Recd. Prefixes : 0 IPv6 Active Prefixes : 0
VPN-IPv6 Recd. Pfxs : 0 VPN-IPv6 Active Pfxs : 0
VPN-IPv6 Suppr. Pfxs : 0 L2-VPN Suppr. Pfxs : 0
L2-VPN Recd. Pfxs : 0 L2-VPN Active Pfxs : 0
MVPN-IPv4 Suppr. Pfxs: 0 MVPN-IPv4 Recd. Pfxs : 0
MVPN-IPv4 Active Pfxs: 0 MDT-SAFI Suppr. Pfxs : 0
MDT-SAFI Recd. Pfxs : 0 MDT-SAFI Active Pfxs : 0
Input Queue : 0 Output Queue : 0
i/p Messages : 102967 o/p Messages : 2995531
i/p Octets : 996432 o/p Octets : 149572028
i/p Updates : 498 o/p Updates : 2893036
TTL Security : Disabled Min TTL Value : n/a
Graceful Restart : Disabled Stale Routes Time : n/a
Advertise Inactive : Disabled Peer Tracking : Disabled
Advertise Label : None
Auth key chain : n/a
Bfd Enabled : Disabled L2 VPN Cisco Interop : Disabled
Local Capability : RtRefresh MPBGP 4byte ASN
Remote Capability : RtRefresh MPBGP 4byte ASN
Import Policy : None Specified / Inherited
Export Policy : None Specified / Inherited
----------------------------------------------------------------------------
Peer : 10.100.10.1
Group : ebgp
----------------------------------------------------------------------------
Peer AS : 54321 Peer Port : 179
Peer Address : 202.202.202.1
Local AS : 12345 Local Port : 50316
Local Address : 202.202.202.2
Peer Type : External
State : Established Last State : Active
Last Event : recvKeepAlive
Last Error : Cease
Local Family : IPv4 VPN-IPv4
Remote Family : IPv4
Hold Time : 90 Keep Alive : 30
Active Hold Time : 90 Active Keep Alive : 30
Cluster Id : None
Preference : 170 Num of Update Flaps : 9460526
Recd. Paths : 2512764
IPv4 Recd. Prefixes : 387067 IPv4 Active Prefixes : 387067
IPv4 Suppressed Pfxs : 0 VPN-IPv4 Suppr. Pfxs : 0
VPN-IPv4 Recd. Pfxs : 0 VPN-IPv4 Active Pfxs : 0
Mc IPv4 Recd. Pfxs. : 0 Mc IPv4 Active Pfxs. : 0
Mc IPv4 Suppr. Pfxs : 0 IPv6 Suppressed Pfxs : 0
IPv6 Recd. Prefixes : 0 IPv6 Active Prefixes : 0
VPN-IPv6 Recd. Pfxs : 0 VPN-IPv6 Active Pfxs : 0

http://gembuls.wordpress.com 9
VPN-IPv6 Suppr. Pfxs : 0 L2-VPN Suppr. Pfxs : 0
L2-VPN Recd. Pfxs : 0 L2-VPN Active Pfxs : 0
MVPN-IPv4 Suppr. Pfxs: 0 MVPN-IPv4 Recd. Pfxs : 0
MVPN-IPv4 Active Pfxs: 0 MDT-SAFI Suppr. Pfxs : 0
MDT-SAFI Recd. Pfxs : 0 MDT-SAFI Active Pfxs : 0
Input Queue : 0 Output Queue : 0
i/p Messages : 3622840 o/p Messages : 103132
i/p Octets : 352757880 o/p Octets : 1968148
i/p Updates : 3511304 o/p Updates : 425
TTL Security : Disabled Min TTL Value : n/a
Graceful Restart : Disabled Stale Routes Time : n/a
Advertise Inactive : Disabled Peer Tracking : Disabled
Advertise Label : None
Auth key chain : n/a
Bfd Enabled : Disabled L2 VPN Cisco Interop : Disabled
Local Capability : RtRefresh MPBGP 4byte ASN
Remote Capability : RtRefresh MPBGP 4byte ASN
Import Policy : None Specified / Inherited
Export Policy : test
----------------------------------------------------------------------------
Neighbors : 2
============================================================================

http://gembuls.wordpress.com 10

You might also like