[j-nsp] Problem of Forwarding on VPN using vrf-table-label.

David Lockuan dlockuan at gmail.com
Sat Oct 16 18:15:52 EDT 2010


Hi Cristian,

It is correct, I had 2 PE with 2 VPN. Sorry I don't send the
configuration of both PE's. Just now I send you the both
configurations.

I noted that when I used the command "vrf-table-label" the next-hop
after the label lookup is to next-table of the VPN and when I don't
used it the next-hop is the IP address or interface to face the CE
router. Other things that I noted is the vpn-label on both PE is the
same for each VPN and when I don't use the command the vpn-label is
different for each VPN.

I send the output of my review. In this case I put only into VPN-A the
command and the VPN-B is without the command.

***********************************************************************************************
{master}
nsn at MX960-LAB-RE0> ...cal-systems PE1 routing-instances | display set
set logical-systems PE1 routing-instances VPN-A instance-type vrf
set logical-systems PE1 routing-instances VPN-A interface ge-3/0/0.2400
set logical-systems PE1 routing-instances VPN-A route-distinguisher 100:10
set logical-systems PE1 routing-instances VPN-A vrf-import VPN-A-import
set logical-systems PE1 routing-instances VPN-A vrf-export VPN-A-export
set logical-systems PE1 routing-instances VPN-A vrf-target target:100:10
set logical-systems PE1 routing-instances VPN-A vrf-table-label
set logical-systems PE1 routing-instances VPN-A routing-options static
route 172.20.0.0/24 next-hop 10.10.5.2
set logical-systems PE1 routing-instances VPN-B instance-type vrf
set logical-systems PE1 routing-instances VPN-B interface ge-3/0/0.2402
set logical-systems PE1 routing-instances VPN-B route-distinguisher 100:20
set logical-systems PE1 routing-instances VPN-B vrf-import VPN-B-import
set logical-systems PE1 routing-instances VPN-B vrf-export VPN-B-export
set logical-systems PE1 routing-instances VPN-B vrf-target target:100:20
set logical-systems PE1 routing-instances VPN-B routing-options static
route 192.168.0.0/24 next-hop 10.10.5.6

{master}
nsn at MX960-LAB-RE0> ...ogical-systems PE2 routing-instances | display set
set logical-systems PE2 routing-instances VPN-A instance-type vrf
set logical-systems PE2 routing-instances VPN-A interface ge-3/0/0.2602
set logical-systems PE2 routing-instances VPN-A route-distinguisher 100:10
set logical-systems PE2 routing-instances VPN-A vrf-import VPN-A-import
set logical-systems PE2 routing-instances VPN-A vrf-export VPN-A-export
set logical-systems PE2 routing-instances VPN-A vrf-target target:100:10
set logical-systems PE2 routing-instances VPN-A vrf-table-label
set logical-systems PE2 routing-instances VPN-A routing-options static
route 172.20.1.0/24 next-hop 10.10.6.6
set logical-systems PE2 routing-instances VPN-B instance-type vrf
set logical-systems PE2 routing-instances VPN-B interface ge-3/0/0.2600
set logical-systems PE2 routing-instances VPN-B route-distinguisher 100:20
set logical-systems PE2 routing-instances VPN-B vrf-import VPN-B-import
set logical-systems PE2 routing-instances VPN-B vrf-export VPN-B-export
set logical-systems PE2 routing-instances VPN-B vrf-target target:100:20
set logical-systems PE2 routing-instances VPN-B routing-options static
route 192.168.1.0/24 next-hop 10.10.6.2

{master}
nsn at MX960-LAB-RE0> ...te table VPN-A.inet.0 logical-system PE1 detail

VPN-A.inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
10.10.5.0/30 (1 entry, 1 announced)
        *Direct Preference: 0
                Next hop type: Interface
                Next-hop reference count: 1
                Next hop: via ge-3/0/0.2400, selected
                State: <Active Int>
                Age: 2d 16:06:32
                Task: IF
                Announcement bits (1): 2-BGP RT Background
                AS path: I

10.10.5.1/32 (1 entry, 0 announced)
        *Local  Preference: 0
                Next hop type: Local
                Next-hop reference count: 8
                Interface: ge-3/0/0.2400
                State: <Active NoReadvrt Int>
                Age: 2d 16:06:32
                Task: IF
                AS path: I

10.10.6.4/30 (1 entry, 1 announced)
        *BGP    Preference: 170/-101
                Route Distinguisher: 100:10
                Next hop type: Indirect
                Next-hop reference count: 6
                Source: 1.1.1.12
                Next hop type: Router, Next hop index: 1048587
                Next hop: 10.10.2.1 via ge-3/0/1.2000, selected
                Label operation: Push 16, Push 299952(top)
                Next hop: 10.10.2.5 via ge-3/0/1.2002
                Label operation: Push 16, Push 299968(top)
                Protocol next hop: 1.1.1.12
                Push 16
                Indirect next hop: 8ea0240 1048589
                State: <Secondary Active Int Ext>
                Local AS:   100 Peer AS:   100
                Age: 3:07       Metric2: 1
                Task: BGP_100.1.1.1.12+61440
                Announcement bits (1): 1-KRT
                AS path: I
                Communities: target:100:10
                Import Accepted
                VPN Label: 16
                Localpref: 100
                Router ID: 1.1.1.12
                Primary Routing Table bgp.l3vpn.0

172.20.0.0/24 (1 entry, 1 announced)
        *Static Preference: 5
                Next hop type: Router, Next hop index: 1249
                Next-hop reference count: 3
                Next hop: 10.10.5.2 via ge-3/0/0.2400, selected
                State: <Active Int Ext>
                Age: 2d 11:50:37
                Task: RT
                Announcement bits (2): 1-KRT 2-BGP RT Background
                AS path: I

172.20.1.0/24 (1 entry, 1 announced)
        *BGP    Preference: 170/-101
                Route Distinguisher: 100:10
                Next hop type: Indirect
                Next-hop reference count: 6
                Source: 1.1.1.12
                Next hop type: Router, Next hop index: 1048587
                Next hop: 10.10.2.1 via ge-3/0/1.2000
                Label operation: Push 16, Push 299952(top)
                Next hop: 10.10.2.5 via ge-3/0/1.2002, selected
                Label operation: Push 16, Push 299968(top)
                Protocol next hop: 1.1.1.12
                Push 16
                Indirect next hop: 8ea0240 1048589
                State: <Secondary Active Int Ext>
                Local AS:   100 Peer AS:   100
                Age: 3:07       Metric2: 1
                Task: BGP_100.1.1.1.12+61440
                Announcement bits (1): 1-KRT
                AS path: I
                Communities: target:100:10
                Import Accepted
                VPN Label: 16
                Localpref: 100
                Router ID: 1.1.1.12
                Primary Routing Table bgp.l3vpn.0

{master}
nsn at MX960-LAB-RE0> ...route table VPN-B.inet.0 logical-system PE1 detail

VPN-B.inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
10.10.5.4/30 (1 entry, 1 announced)
        *Direct Preference: 0
                Next hop type: Interface
                Next-hop reference count: 1
                Next hop: via ge-3/0/0.2402, selected
                State: <Active Int>
                Age: 2d 16:06:49
                Task: IF
                Announcement bits (1): 2-BGP RT Background
                AS path: I

10.10.5.5/32 (1 entry, 0 announced)
        *Local  Preference: 0
                Next hop type: Local
                Next-hop reference count: 8
                Interface: ge-3/0/0.2402
                State: <Active NoReadvrt Int>
                Age: 2d 16:06:49
                Task: IF
                AS path: I

10.10.6.0/30 (1 entry, 1 announced)
        *BGP    Preference: 170/-101
                Route Distinguisher: 100:20
                Next hop type: Indirect
                Next-hop reference count: 6
                Source: 1.1.1.12
                Next hop type: Router, Next hop index: 1048580
                Next hop: 10.10.2.1 via ge-3/0/1.2000, selected
                Label operation: Push 300144, Push 299952(top)
                Next hop: 10.10.2.5 via ge-3/0/1.2002
                Label operation: Push 300144, Push 299968(top)
                Protocol next hop: 1.1.1.12
                Push 300144
                Indirect next hop: 8ea00c0 1048581
                State: <Secondary Active Int Ext>
                Local AS:   100 Peer AS:   100
                Age: 17:14:40   Metric2: 1
                Task: BGP_100.1.1.1.12+61440
                Announcement bits (1): 1-KRT
                AS path: I
                Communities: target:100:20
                Import Accepted
                VPN Label: 300144
                Localpref: 100
                Router ID: 1.1.1.12
                Primary Routing Table bgp.l3vpn.0

192.168.0.0/24 (1 entry, 1 announced)
        *Static Preference: 5
                Next hop type: Router, Next hop index: 1259
                Next-hop reference count: 4
                Next hop: 10.10.5.6 via ge-3/0/0.2402, selected
                State: <Active Int Ext>
                Age: 2d 11:50:54
                Task: RT
                Announcement bits (2): 1-KRT 2-BGP RT Background
                AS path: I

192.168.1.0/24 (1 entry, 1 announced)
        *BGP    Preference: 170/-101
                Route Distinguisher: 100:20
                Next hop type: Indirect
                Next-hop reference count: 6
                Source: 1.1.1.12
                Next hop type: Router, Next hop index: 1048580
                Next hop: 10.10.2.1 via ge-3/0/1.2000
                Label operation: Push 300144, Push 299952(top)
                Next hop: 10.10.2.5 via ge-3/0/1.2002, selected
                Label operation: Push 300144, Push 299968(top)
                Protocol next hop: 1.1.1.12
                Push 300144
                Indirect next hop: 8ea00c0 1048581
                State: <Secondary Active Int Ext>
                Local AS:   100 Peer AS:   100
                Age: 17:14:40   Metric2: 1
                Task: BGP_100.1.1.1.12+61440
                Announcement bits (1): 1-KRT
                AS path: I
                Communities: target:100:20
                Import Accepted
                VPN Label: 300144
                Localpref: 100
                Router ID: 1.1.1.12
                Primary Routing Table bgp.l3vpn.0

{master}
nsn at MX960-LAB-RE0>

{master}
nsn at MX960-LAB-RE0>

{master}
nsn at MX960-LAB-RE0> ...route table VPN-A.inet.0 logical-system PE2 detail

VPN-A.inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
10.10.5.0/30 (1 entry, 1 announced)
        *BGP    Preference: 170/-101
                Route Distinguisher: 100:10
                Next hop type: Indirect
                Next-hop reference count: 6
                Source: 1.1.1.11
                Next hop type: Router, Next hop index: 1048586
                Next hop: 10.10.3.1 via ge-3/0/1.2200, selected
                Label operation: Push 16, Push 299952(top)
                Next hop: 10.10.3.5 via ge-3/0/1.2202
                Label operation: Push 16, Push 299952(top)
                Protocol next hop: 1.1.1.11
                Push 16
                Indirect next hop: 8ea8240 1048588
                State: <Secondary Active Int Ext>
                Local AS:   100 Peer AS:   100
                Age: 4:45       Metric2: 1
                Task: BGP_100.1.1.1.11+179
                Announcement bits (1): 1-KRT
                AS path: I
                Communities: target:100:10
                Import Accepted
                VPN Label: 16
                Localpref: 100
                Router ID: 1.1.1.11
                Primary Routing Table bgp.l3vpn.0

10.10.6.4/30 (1 entry, 1 announced)
        *Direct Preference: 0
                Next hop type: Interface
                Next-hop reference count: 1
                Next hop: via ge-3/0/0.2602, selected
                State: <Active Int>
                Age: 2d 16:01:30
                Task: IF
                Announcement bits (1): 2-BGP RT Background
                AS path: I

10.10.6.5/32 (1 entry, 0 announced)
        *Local  Preference: 0
                Next hop type: Local
                Next-hop reference count: 8
                Interface: ge-3/0/0.2602
                State: <Active NoReadvrt Int>
                Age: 2d 16:01:30
                Task: IF
                AS path: I

172.20.0.0/24 (1 entry, 1 announced)
        *BGP    Preference: 170/-101
                Route Distinguisher: 100:10
                Next hop type: Indirect
                Next-hop reference count: 6
                Source: 1.1.1.11
                Next hop type: Router, Next hop index: 1048586
                Next hop: 10.10.3.1 via ge-3/0/1.2200
                Label operation: Push 16, Push 299952(top)
                Next hop: 10.10.3.5 via ge-3/0/1.2202, selected
                Label operation: Push 16, Push 299952(top)
                Protocol next hop: 1.1.1.11
                Push 16
                Indirect next hop: 8ea8240 1048588
                State: <Secondary Active Int Ext>
                Local AS:   100 Peer AS:   100
                Age: 4:45       Metric2: 1
                Task: BGP_100.1.1.1.11+179
                Announcement bits (1): 1-KRT
                AS path: I
                Communities: target:100:10
                Import Accepted
                VPN Label: 16
                Localpref: 100
                Router ID: 1.1.1.11
                Primary Routing Table bgp.l3vpn.0

172.20.1.0/24 (1 entry, 1 announced)
        *Static Preference: 5
                Next hop type: Router, Next hop index: 1478
                Next-hop reference count: 3
                Next hop: 10.10.6.6 via ge-3/0/0.2602, selected
                State: <Active Int Ext>
                Age: 2d 11:45:12
                Task: RT
                Announcement bits (2): 1-KRT 2-BGP RT Background
                AS path: I

{master}
nsn at MX960-LAB-RE0> ...route table VPN-B.inet.0 logical-system PE2 detail

VPN-B.inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
10.10.5.4/30 (1 entry, 1 announced)
        *BGP    Preference: 170/-101
                Route Distinguisher: 100:20
                Next hop type: Indirect
                Next-hop reference count: 6
                Source: 1.1.1.11
                Next hop type: Router, Next hop index: 1048578
                Next hop: 10.10.3.1 via ge-3/0/1.2200, selected
                Label operation: Push 300112, Push 299952(top)
                Next hop: 10.10.3.5 via ge-3/0/1.2202
                Label operation: Push 300112, Push 299952(top)
                Protocol next hop: 1.1.1.11
                Push 300112
                Indirect next hop: 8ea80c0 1048579
                State: <Secondary Active Int Ext>
                Local AS:   100 Peer AS:   100
                Age: 17:16:14   Metric2: 1
                Task: BGP_100.1.1.1.11+179
                Announcement bits (1): 1-KRT
                AS path: I
                Communities: target:100:20
                Import Accepted
                VPN Label: 300112
                Localpref: 100
                Router ID: 1.1.1.11
                Primary Routing Table bgp.l3vpn.0

10.10.6.0/30 (1 entry, 1 announced)
        *Direct Preference: 0
                Next hop type: Interface
                Next-hop reference count: 1
                Next hop: via ge-3/0/0.2600, selected
                State: <Active Int>
                Age: 2d 16:08:23
                Task: IF
                Announcement bits (1): 2-BGP RT Background
                AS path: I

10.10.6.1/32 (1 entry, 0 announced)
        *Local  Preference: 0
                Next hop type: Local
                Next-hop reference count: 8
                Interface: ge-3/0/0.2600
                State: <Active NoReadvrt Int>
                Age: 2d 16:08:23
                Task: IF
                AS path: I

192.168.0.0/24 (1 entry, 1 announced)
        *BGP    Preference: 170/-101
                Route Distinguisher: 100:20
                Next hop type: Indirect
                Next-hop reference count: 6
                Source: 1.1.1.11
                Next hop type: Router, Next hop index: 1048578
                Next hop: 10.10.3.1 via ge-3/0/1.2200
                Label operation: Push 300112, Push 299952(top)
                Next hop: 10.10.3.5 via ge-3/0/1.2202, selected
                Label operation: Push 300112, Push 299952(top)
                Protocol next hop: 1.1.1.11
                Push 300112
                Indirect next hop: 8ea80c0 1048579
                State: <Secondary Active Int Ext>
                Local AS:   100 Peer AS:   100
                Age: 17:16:14   Metric2: 1
                Task: BGP_100.1.1.1.11+179
                Announcement bits (1): 1-KRT
                AS path: I
                Communities: target:100:20
                Import Accepted
                VPN Label: 300112
                Localpref: 100
                Router ID: 1.1.1.11
                Primary Routing Table bgp.l3vpn.0

192.168.1.0/24 (1 entry, 1 announced)
        *Static Preference: 5
                Next hop type: Router, Next hop index: 1254
                Next-hop reference count: 4
                Next hop: 10.10.6.2 via ge-3/0/0.2600, selected
                State: <Active Int Ext>
                Age: 2d 11:45:25
                Task: RT
                Announcement bits (2): 1-KRT 2-BGP RT Background
                AS path: I

{master}
nsn at MX960-LAB-RE0>

{master}
nsn at MX960-LAB-RE0> show route table mpls.0 detail logical-system PE1

mpls.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden)
0   (1 entry, 1 announced)
        *MPLS   Preference: 0
                Next hop type: Receive
                Next-hop reference count: 6
                State: <Active Int>
                Local AS:   100
                Age: 3d 16:45:47        Metric: 1
                Task: MPLS
                Announcement bits (1): 1-KRT
                AS path: I

1   (1 entry, 1 announced)
        *MPLS   Preference: 0
                Next hop type: Receive
                Next-hop reference count: 6
                State: <Active Int>
                Local AS:   100
                Age: 3d 16:45:47        Metric: 1
                Task: MPLS
                Announcement bits (1): 1-KRT
                AS path: I

2   (1 entry, 1 announced)
        *MPLS   Preference: 0
                Next hop type: Receive
                Next-hop reference count: 6
                State: <Active Int>
                Local AS:   100
                Age: 3d 16:45:47        Metric: 1
                Task: MPLS
                Announcement bits (1): 1-KRT
                AS path: I

16  (1 entry, 0 announced)
        *VPN    Preference: 0
                Next table: VPN-A.inet.0
                Label operation: Pop
                Next-hop reference count: 1
                State: <Active NotInstall Int Ext>
                Age: 8:22
                Task: RT
                AS path: I

299856 (1 entry, 1 announced)
        *LDP    Preference: 9
                Next hop type: Router, Next hop index: 1137
                Next-hop reference count: 2
                Next hop: 10.10.2.5 via ge-3/0/1.2002, selected
                Label operation: Pop
                State: <Active Int>
                Local AS:   100
                Age: 1d 18:46:00        Metric: 1
                Task: LDP
                Announcement bits (1): 1-KRT
                AS path: I
                Prefixes bound to route: 1.1.1.4/32

299856(S=0) (1 entry, 1 announced)
        *LDP    Preference: 9
                Next hop type: Router, Next hop index: 1140
                Next-hop reference count: 2
                Next hop: 10.10.2.5 via ge-3/0/1.2002, selected
                Label operation: Pop
                State: <Active Int>
                Local AS:   100
                Age: 1d 18:46:00        Metric: 1
                Task: LDP
                Announcement bits (1): 1-KRT
                AS path: I

299888 (1 entry, 1 announced)
        *LDP    Preference: 9
                Next hop type: Router
                Next-hop reference count: 1
                Next hop: 10.10.2.1 via ge-3/0/1.2000
                Label operation: Swap 299952
                Next hop: 10.10.2.5 via ge-3/0/1.2002, selected
                Label operation: Swap 299968
                State: <Active Int>
                Local AS:   100
                Age: 1d 18:46:00        Metric: 1
                Task: LDP
                Announcement bits (1): 1-KRT
                AS path: I
                Prefixes bound to route: 1.1.1.12/32

299904 (1 entry, 1 announced)
        *LDP    Preference: 9
                Next hop type: Router, Next hop index: 1113
                Next-hop reference count: 2
                Next hop: 10.10.2.1 via ge-3/0/1.2000, selected
                Label operation: Pop
                State: <Active Int>
                Local AS:   100
                Age: 1d 18:46:00        Metric: 1
                Task: LDP
                Announcement bits (1): 1-KRT
                AS path: I
                Prefixes bound to route: 1.1.1.1/32

299904(S=0) (1 entry, 1 announced)
        *LDP    Preference: 9
                Next hop type: Router, Next hop index: 1115
                Next-hop reference count: 2
                Next hop: 10.10.2.1 via ge-3/0/1.2000, selected
                Label operation: Pop
                State: <Active Int>
                Local AS:   100
                Age: 1d 18:46:00        Metric: 1
                Task: LDP
                Announcement bits (1): 1-KRT
                AS path: I

299936 (1 entry, 1 announced)
        *LDP    Preference: 9
                Next hop type: Router, Next hop index: 1495
                Next-hop reference count: 2
                Next hop: 10.10.2.1 via ge-3/0/1.2000, selected
                Label operation: Swap 299872
                State: <Active Int>
                Local AS:   100
                Age: 1d 18:46:00        Metric: 1
                Task: LDP
                Announcement bits (1): 1-KRT
                AS path: I
                Prefixes bound to route: 1.1.1.2/32

299952 (1 entry, 1 announced)
        *LDP    Preference: 9
                Next hop type: Router, Next hop index: 1496
                Next-hop reference count: 2
                Next hop: 10.10.2.5 via ge-3/0/1.2002, selected
                Label operation: Swap 299872
                State: <Active Int>
                Local AS:   100
                Age: 1d 18:46:00        Metric: 1
                Task: LDP
                Announcement bits (1): 1-KRT
                AS path: I
                Prefixes bound to route: 1.1.1.3/32

300112 (1 entry, 1 announced)
        *VPN    Preference: 170
                Next hop type: Router, Next hop index: 1130
                Next-hop reference count: 2
                Next hop: 10.10.5.6 via ge-3/0/0.2402, selected
                Label operation: Pop
                State: <Active Int Ext>
                Local AS:   100
                Age: 17:19:38
                Task: BGP RT Background
                Announcement bits (1): 1-KRT
                AS path: I
                Ref Cnt: 1

{master}
nsn at MX960-LAB-RE0>
***********************************************************************************************

Thanks in advance,

--
David Lockuán
JNCIA-E
JNCIS-E
JNCIA-M
JNCIS-M



More information about the juniper-nsp mailing list