Thursday, June 4, 2015

LDP inbound label Filtering


MPLS LDP Inbound Label Binding Filtering


This can limit the number of label bindings stored in the LIB of the router

Command syntax.

Mpls   ldp  neighbor  [vrf vpn-name]   nbr-address   labels   accept acl




Task:-In R1 we will filter out 33.0.0.0 /8  ( Prefix coming from R3)----

Label binding before applying the config
R1#show mpls ldp bindings | be 33.0.0.0
  lib entry: 33.0.0.0/8, rev 47
        local binding:  label: 20
        remote binding: lsr: 2.2.2.2:0, label: 19

R1#sh mpls forwarding-table | in 33.0.0.
20         19         33.0.0.0/8       0             Fa1/0      192.168.0.2

Configuration on R1
R1#
access-list 3 deny   33.0.0.0
access-list 3 permit any

mpls ldp neighbor 2.2.2.2 labels accept 3

See there is  no remote binding for 33.0.0.0/8
R1#show mpls ldp bindings | be  33.0
  lib entry: 33.0.0.0/8, rev 47

R1#sh mpls forwarding-table | in 33.0.0.
20         No Label   33.0.0.0/8       0             Fa1/0      192.168


No comments:

Post a Comment