MPLS LDP bindings detail – MPLS IP bindings detail

!
R4, R5, R6:
access-list 10 permit 150.1.0.0 0.0.255.255
access-list 10 permit 150.9.0.0 0.0.255.255
!
no mpls ldp advertise-labels
mpls ldp advertise-labels for 10

MPLS LDP bindings detail:

Rack9R4#sh mpls ldp bindings
lib entry: 54.9.1.0/24, rev 21
local binding: label: 16
lib entry: 150.9.4.4/32, rev 31
local binding: label: imp-null
remote binding: lsr: 150.9.5.5:0, label: 17
remote binding: lsr: 150.9.6.6:0, label: 16
lib entry: 150.9.5.5/32, rev 32
local binding: label: 17
remote binding: lsr: 150.9.5.5:0, label: imp-null
remote binding: lsr: 150.9.6.6:0, label: 17
lib entry: 150.9.6.6/32, rev 33
local binding: label: 18
remote binding: lsr: 150.9.5.5:0, label: 18
remote binding: lsr: 150.9.6.6:0, label: imp-null
lib entry: 155.9.0.0/24, rev 25
local binding: label: imp-null
lib entry: 155.9.5.0/24, rev 26
local binding: label: 19
lib entry: 155.9.45.0/24, rev 27
local binding: label: imp-null
lib entry: 155.9.58.0/24, rev 28
local binding: label: 20
lib entry: 155.9.146.0/24, rev 29
local binding: label: imp-null
lib entry: 204.12.9.0/24, rev 30
local binding: label: imp-null
Rack9R4#

Rack9R4#sh mpls ldp bindings detail
Advertisement spec:
Prefix acl = 10

lib entry: 54.9.1.0/24, rev 21, chkpt: none
local binding: label: 16 (owner LDP)
route information: state: none, table: default,
next-hop: 155.9.146.6, remote label:
lib entry: 150.9.4.4/32, rev 31, chkpt: none
local binding: label: imp-null (owner LDP)
Advertised to:
150.9.5.5:0 150.9.6.6:0
remote binding: lsr: 150.9.5.5:0, label: 17
remote binding: lsr: 150.9.6.6:0, label: 16
route information: state: none, table: default,
next-hop: 0.0.0.0, remote label:
Advert acl(s): Prefix acl 10
lib entry: 150.9.5.5/32, rev 32, chkpt: none
local binding: label: 17 (owner LDP)
Advertised to:
150.9.5.5:0 150.9.6.6:0
remote binding: lsr: 150.9.5.5:0, label: imp-null
remote binding: lsr: 150.9.6.6:0, label: 17
route information: state: none, table: default,
next-hop: 155.9.0.5, remote label: imp-null
route information: state: none, table: default,
next-hop: 155.9.45.5, remote label: imp-null
Advert acl(s): Prefix acl 10
lib entry: 150.9.6.6/32, rev 33, chkpt: none
local binding: label: 18 (owner LDP)
Advertised to:
150.9.5.5:0 150.9.6.6:0
remote binding: lsr: 150.9.5.5:0, label: 18
remote binding: lsr: 150.9.6.6:0, label: imp-null
route information: state: none, table: default,
next-hop: 155.9.146.6, remote label: imp-null
Advert acl(s): Prefix acl 10
lib entry: 155.9.0.0/24, rev 25, chkpt: none
local binding: label: imp-null (owner LDP)
route information: state: none, table: default,
next-hop: 0.0.0.0, remote label:
lib entry: 155.9.5.0/24, rev 26, chkpt: none
local binding: label: 19 (owner LDP)
route information: state: none, table: default,
next-hop: 155.9.0.5, remote label:
route information: state: none, table: default,
next-hop: 155.9.45.5, remote label:
lib entry: 155.9.45.0/24, rev 27, chkpt: none
local binding: label: imp-null (owner LDP)
route information: state: none, table: default,
next-hop: 0.0.0.0, remote label:
lib entry: 155.9.58.0/24, rev 28, chkpt: none
local binding: label: 20 (owner LDP)
route information: state: none, table: default,
next-hop: 155.9.0.5, remote label:
route information: state: none, table: default,
next-hop: 155.9.45.5, remote label:
lib entry: 155.9.146.0/24, rev 29, chkpt: none
local binding: label: imp-null (owner LDP)
route information: state: none, table: default,
next-hop: 0.0.0.0, remote label:
lib entry: 204.12.9.0/24, rev 30, chkpt: none
local binding: label: imp-null (owner LDP)
route information: state: none, table: default,
next-hop: 0.0.0.0, remote label:
Rack9R4#

MPLS IP bindings detail

Rack9R4#sh mpls ip binding
54.9.1.0/24
in label: 16
150.9.4.4/32
in label: imp-null
out label: 17 lsr: 150.9.5.5:0
out label: 16 lsr: 150.9.6.6:0
150.9.5.5/32
in label: 17
out label: imp-null lsr: 150.9.5.5:0 inuse
out label: 17 lsr: 150.9.6.6:0
150.9.6.6/32
in label: 18
out label: 18 lsr: 150.9.5.5:0
out label: imp-null lsr: 150.9.6.6:0 inuse
155.9.0.0/24
in label: imp-null
155.9.5.0/24
in label: 19
155.9.45.0/24
in label: imp-null
155.9.58.0/24
in label: 20
155.9.146.0/24
in label: imp-null
204.12.9.0/24
in label: imp-null
Rack9R4#

Rack9R4#sh mpls ip binding detail
Advertisement spec:
Prefix acl = 10

54.9.1.0/24, rev 21, chkpt: none
in label: 16 (owner LDP)
150.9.4.4/32, rev 31, chkpt: none
in label: imp-null (owner LDP)
Advertised to:
150.9.5.5:0 150.9.6.6:0
out label: 17 lsr: 150.9.5.5:0
out label: 16 lsr: 150.9.6.6:0
Advert acl(s): Prefix acl 10
150.9.5.5/32, rev 32, chkpt: none
in label: 17 (owner LDP)
Advertised to:
150.9.5.5:0 150.9.6.6:0
out label: imp-null lsr: 150.9.5.5:0 inuse
out label: 17 lsr: 150.9.6.6:0
Advert acl(s): Prefix acl 10
150.9.6.6/32, rev 33, chkpt: none
in label: 18 (owner LDP)
Advertised to:
150.9.5.5:0 150.9.6.6:0
out label: 18 lsr: 150.9.5.5:0
out label: imp-null lsr: 150.9.6.6:0 inuse
Advert acl(s): Prefix acl 10
155.9.0.0/24, rev 25, chkpt: none
in label: imp-null (owner LDP)
155.9.5.0/24, rev 26, chkpt: none
in label: 19 (owner LDP)
155.9.45.0/24, rev 27, chkpt: none
in label: imp-null (owner LDP)
155.9.58.0/24, rev 28, chkpt: none
in label: 20 (owner LDP)
155.9.146.0/24, rev 29, chkpt: none
in label: imp-null (owner LDP)
204.12.9.0/24, rev 30, chkpt: none
in label: imp-null (owner LDP)
Rack9R4#

OSPF sham link configuration – Cisco

SHAM LINK created in VRF in same area as VRF
Loopback inteface for src/dest of SHAM LINK created in VRF
Looback advertised into BGP as VPNv4 route
*optional* ROUTE-MAP to keep Loopback from redistributed into CE routers

PE1

PE1(config-router)#router ospf 1000 vrf C11_12
PE1(config-router)#area 1000 sham-link 10.2.1.1 10.2.1.2 cost 40
!
int loop1
ip vrf forwarding C11_12
ip add 10.2.1.1 255.255.255.255
!
router bgp 65123
address-family ipv4 vrf C11_12
neighbor 129.53.20.20 remote-as 65123
neighbor 129.53.20.20 activate
network 10.2.1.1 mask 255.255.255.255
!
!
route-map SHAM_LINK deny 10
match ip address SHAM_LINK
route-map SHAM_LINK permit 20
!
ip access-list standard SHAM_LINK
permit 10.2.1.1
permit 10.2.1.2
!
router ospf 1000 vrf C11_12
redistribute bgp 65123 subnets route-map SHAM_LINK
network 10.10.111.1 0.0.0.0 area 1000

PE2

PE2(config-router)#router ospf 1000 vrf C11_12
PE2(config-router)#area 1000 sham-link 10.2.1.2 10.2.1.1 cost 40
!
int loop1
ip vrf forwarding C11_12
ip add 10.2.1.2 255.255.255.255
!
router bgp 65123
address-family ipv4 vrf C11_12
neighbor 129.53.10.10 remote-as 65123
neighbor 129.53.10.10 activate
network 10.2.1.2 mask 255.255.255.255
!
!
route-map SHAM_LINK deny 10
match ip address SHAM_LINK
route-map SHAM_LINK permit 20
!
ip access-list standard SHAM_LINK
permit 10.2.1.1
permit 10.2.1.2
!
router ospf 1000 vrf C11_12
redistribute bgp 65123 subnets route-map SHAM_LINK
network 10.10.112.2 0.0.0.0 area 1000

Screenshot 2014-03-20 08.18.07