Tuesday, March 24, 2015

Interprovider MPLS VPN using BGP Labelled Unicast

Lets Play with Olive for interprovider MPLS VPN

===========================================



lab@olive-8.5R1.14> show configuration logical-routers ce1    
interfaces {
    em1 {
        unit 1 {
            vlan-id 1;
            family inet {
                address 18.18.18.1/30;
            }
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 1.1.1.1/32;
            }
        }
    }
}
protocols {
    ospf {
        area 0.0.0.2 {
            interface lo0.0 {
                passive;
            }
            interface em1.1;
        }
    }
}

=======================================================================

lab@olive-8.5R1.14> show configuration logical-routers pe1  
interfaces {
    em2 {
        unit 1 {
            vlan-id 1;
            family inet {
                address 18.18.18.2/30;
            }
        }
        unit 2 {
            vlan-id 2;
            family inet {
                address 19.19.19.1/30;
            }
            family mpls;
        }
    }
    lo0 {
        unit 1 {
            family inet {
                address 2.2.2.2/32;
            }
        }
    }
}
protocols {
    rsvp {
        interface em2.2;
        interface lo0.1;
    }
    mpls {
        label-switched-path To-ASBR1 {
            to 4.4.4.4;
        }
        interface em2.2;
        interface lo0.1;
    }
    bgp {
        group To_ASBR1 {
            type internal;
            local-address 2.2.2.2;
            neighbor 4.4.4.4 {
                family inet {
                    labeled-unicast {
                        rib-group inet3-to-inet0;
                        rib {
                            inet.3;
                        }
                    }
                }
            }
        }
        group To_PE2 {
            multihop {
                ttl 20;
            }
            local-address 2.2.2.2;
            family inet-vpn {
                unicast;
            }
            neighbor 7.7.7.7 {
                peer-as 200;
            }
        }
    }
    ospf {
        traffic-engineering;
        area 0.0.0.0 {
            interface em2.2;
            interface lo0.1 {
                passive;
            }
        }
    }
}
policy-options {
    policy-statement bgp-to-ospf {
        term 1 {
            from protocol bgp;
            then accept;
        }
        term 2 {
            then reject;
        }
    }
    policy-statement export-lo {
        term 1 {
            from {
                route-filter 2.2.2.2/32 exact;
            }
            then accept;
        }
        term 2 {
            then reject;
        }
    }
    policy-statement to-inet0 {
        term 1 {
            from {
                route-filter 7.7.7.7/32 exact;
            }
            then accept;
        }
        term 2 {
            then reject;
        }
    }
    policy-statement to-inet3 {
        term 1 {
            from {
                route-filter 2.2.2.2/32 exact;
            }
            then accept;
        }
        term 2 {
            then reject;
        }
    }
    policy-statement vpnexport {
        term 1 {
            from protocol ospf;
            then {
                community add test_comm;
                accept;
            }
        }
        term 2 {
            then reject;
        }
    }
    policy-statement vpnimport {
        term 1 {
            from {
                protocol bgp;
                community test_comm;
            }
            then accept;
        }
        term 2 {
            then reject;
        }
    }
    community test_comm members target:1:100;
}
routing-instances {
    vpn2CE1 {
        instance-type vrf;
        interface em2.1;
        route-distinguisher 1:100;
        vrf-import vpnimport;
        vrf-export vpnexport;
        vrf-table-label;
        protocols {
            ospf {
                export bgp-to-ospf;
                area 0.0.0.2 {
                    interface em2.1;
                }
            }
        }
    }
}
routing-options {
    inactive: interface-routes {
        rib-group inet inet0-to-inet3;
    }
    rib-groups {
        inet0-to-inet3 {
            import-rib [ inet.0 inet.3 ];
            import-policy to-inet3;
        }
        inet3-to-inet0 {
            import-rib [ inet.3 inet.0 ];
            import-policy to-inet0;
        }
    }
    autonomous-system 100;

}

====================================================================

lab@olive-8.5R1.14> show configuration logical-routers p1     
interfaces {
    em1 {
        unit 2 {
            vlan-id 2;
            family inet {
                address 19.19.19.2/30;
            }
            family mpls;
        }
    }
    em2 {
        unit 3 {
            vlan-id 3;
            family inet {
                address 20.20.20.1/30;
            }
            family mpls;
        }
    }
    lo0 {
        unit 3 {
            family inet {
                address 3.3.3.3/32;
            }
        }
    }
}
protocols {
    rsvp {
        interface em2.3;
        interface em1.2;
        interface lo0.3;
    }
    mpls {
        icmp-tunneling;
        interface lo0.3;
        interface em2.3;
        interface em1.2;
    }
    ospf {
        traffic-engineering;
        area 0.0.0.0 {
            interface em1.2;
            interface em2.3;
            interface lo0.3 {
                passive;
            }       
        }
    }
}
========================================================================================



lab@olive-8.5R1.14> show configuration logical-routers asbr1    
interfaces {
    em1 {
        unit 3 {
            vlan-id 3;
            family inet {
                address 20.20.20.2/30;
            }
            family mpls;
        }
        unit 4 {
            vlan-id 4;
            family inet {
                address 21.21.21.1/30;
            }
            family mpls;
        }
    }
    lo0 {
        unit 4 {
            family inet {
                address 4.4.4.4/32;
            }
        }
    }
}
protocols {
    rsvp {
        interface em1.3;
        interface lo0.4;
    }
    mpls {
        icmp-tunneling;
        label-switched-path To_PE1 {
            to 2.2.2.2;
        }
        interface lo0.0;
        interface em1.3;
        interface em1.4;
    }
    bgp {
        group To-PE1 {
            type internal;
            local-address 4.4.4.4;
            neighbor 2.2.2.2 {
                family inet {
                    labeled-unicast {
                        rib {
                            inet.3;
                        }
                    }
                }
                export next-hop-self;
            }
        }
        group To-ASBR2 {
            type external;
            family inet {
                labeled-unicast {
                    rib {
                        inet.3;
                    }
                }
            }
            export To-ASBR2;
            neighbor 21.21.21.2 {
                peer-as 200;
            }
        }
    }
    ospf {
        traffic-engineering;
        area 0.0.0.0 {
            interface em1.3;
        }
        area 0.0.0.9 {
            interface lo0.4 {
                passive;
            }
        }
    }
}
policy-options {
    policy-statement To-ASBR2 {
        term 1 {
            from {
                route-filter 2.2.2.2/32 exact;
                route-filter 3.3.3.3/32 exact;
                route-filter 4.4.4.4/32 exact;
            }
            then accept;
        }
        term 2 {
            from {  
                rib inet.3;
                route-filter 2.2.2.2/32 exact;
                route-filter 3.3.3.3/32 exact;
                route-filter 4.4.4.4/32 exact;
            }
            then accept;
        }
    }
    policy-statement next-hop-self {
        then {
            next-hop self;
        }
    }
}
routing-options {
    autonomous-system 100;
}

===========================================================================================

lab@olive-8.5R1.14> show configuration logical-routers asbr2    
interfaces {
    em2 {
        unit 4 {
            vlan-id 4;
            family inet {
                address 21.21.21.2/30;
            }
            family mpls;
        }
        unit 5 {
            vlan-id 5;
            family inet {
                address 22.22.22.1/30;
            }
            family mpls;
        }
    }
    lo0 {
        unit 5 {
            family inet {
                address 5.5.5.5/32;
            }
        }
    }
}
protocols {
    rsvp {
        interface em2.5;
        interface lo0.5;
    }
    mpls {
        icmp-tunneling;
        label-switched-path To_PE2 {
            to 7.7.7.7;
        }
        interface lo0.5;
        interface em2.5;
        interface em2.4;
    }
    bgp {
        group To-PE2 {
            type internal;
            local-address 5.5.5.5;
            export next-hop-self;
            neighbor 7.7.7.7 {
                family inet {
                    labeled-unicast {
                        rib {
                            inet.3;
                        }
                    }
                }
                export next-hop-self;
            }
        }
        group To-ASBR1 {
            type external;
            family inet {
                labeled-unicast {
                    rib {
                        inet.3;
                    }
                }
            }
            export To-ASBR1;
            neighbor 21.21.21.1 {
                peer-as 100;
            }
        }
    }
    ospf {
        traffic-engineering;
        area 0.0.0.0 {
            interface em2.5;
            interface lo0.5 {
                passive;
            }
        }
    }
}
policy-options {
    policy-statement To-ASBR1 {
        term 1 {
            from {
                route-filter 7.7.7.7/32 exact;
                route-filter 6.6.6.6/32 exact;
                route-filter 5.5.5.5/32 exact;
            }
            then accept;
        }
        term 2 {
            from {
                rib inet.3;
                route-filter 7.7.7.7/32 exact;
                route-filter 6.6.6.6/32 exact;
                route-filter 5.5.5.5/32 exact;
            }
            then accept;
        }
    }
    policy-statement next-hop-self {
        then {
            next-hop self;
        }
    }
}
routing-options {
    autonomous-system 200;
}

=============================================================================================


lab@olive-8.5R1.14> show configuration logical-routers p2       
interfaces {
    em1 {
        unit 5 {
            vlan-id 5;
            family inet {
                address 22.22.22.2/30;
            }
            family mpls;
        }
        unit 6 {
            vlan-id 6;
            family inet {
                address 23.23.23.1/30;
            }
            family mpls;
        }
    }
    lo0 {
        unit 6 {
            family inet {
                address 6.6.6.6/32;
            }
        }
    }
}
protocols {
    rsvp {
        interface em1.5;
        interface em1.6;
        interface lo0.6;
    }
    mpls {
        icmp-tunneling;
        interface lo0.6;
        interface em1.5;
        interface em1.6;
    }
    ospf {
        traffic-engineering;
        area 0.0.0.0 {
            interface em1.5;
            interface em1.6;
            interface lo0.6 {
                passive;
            }
        }
    }               
}

======================================================================================

lab@olive-8.5R1.14> show configuration logical-routers pe2   
interfaces {
    em2 {
        unit 6 {
            vlan-id 6;
            family inet {
                address 23.23.23.2/30;
            }
            family mpls;
        }
        unit 7 {
            vlan-id 7;
            family inet {
                address 24.24.24.1/30;
            }
        }
    }
    lo0 {
        unit 7 {
            family inet {
                address 7.7.7.7/32;
            }
        }
    }
}
protocols {
    rsvp {
        interface em2.6;
        interface lo0.7;
    }
    mpls {
        icmp-tunneling;
        label-switched-path To-ASBR2 {
            to 5.5.5.5;
        }
        interface em2.6;
        interface lo0.7;
    }
    bgp {
        group To_ASBR2 {
            type internal;
            local-address 7.7.7.7;
            neighbor 5.5.5.5 {
                family inet {
                    labeled-unicast {
                        rib-group inet3-to-inet0;
                        rib {
                            inet.3;
                        }
                    }
                }
            }
        }
        group To_PE1 {
            type external;
            multihop {
                ttl 20;
            }
            local-address 7.7.7.7;
            family inet-vpn {
                unicast;
            }
            neighbor 2.2.2.2 {
                peer-as 100;
            }
        }
    }
    ospf {
        traffic-engineering;
        area 0.0.0.0 {
            interface em2.6;
            interface lo0.7 {
                passive;
            }
        }
    }
}
policy-options {
    policy-statement to-inet0 {
        term 1 {
            from {
                route-filter 2.2.2.2/32 exact;
            }
            then accept;
        }
        term 2 {
            then reject;
        }
    }
    policy-statement to-inet3 {
        term 1 {
            from {
                route-filter 7.7.7.7/32 exact;
            }       
            then accept;
        }
        term 2 {
            then reject;
        }
    }
    policy-statement vpnexport {
        term 1 {
            from protocol bgp;
            then {
                community add test_comm;
                accept;
            }
        }
        term 2 {
            then reject;
        }
    }
    policy-statement vpnimport {
        term 1 {
            from {
                protocol bgp;
                community test_comm;
            }
            then accept;
        }
        term 2 {
            then reject;
        }
    }
    community test_comm members target:1:100;
}
routing-instances {
    vpn2CE2 {
        instance-type vrf;
        interface em2.7;
        route-distinguisher 1:100;
        vrf-import vpnimport;
        vrf-export vpnexport;
        vrf-table-label;
        protocols {
            bgp {
                group To_CE2 {
                    peer-as 20;
                    neighbor 24.24.24.2;
                }   
            }
        }
    }
}
routing-options {
    inactive: interface-routes {
        rib-group inet inet0-to-inet3;
    }
    rib-groups {
        inet0-to-inet3 {
            import-rib [ inet.0 inet.3 ];
            import-policy to-inet3;
        }
        inet3-to-inet0 {
            import-rib [ inet.3 inet.0 ];
            import-policy to-inet0;
        }
    }
    autonomous-system 200;
}

===========================================================================================


lab@olive-8.5R1.14> show configuration logical-routers ce2    
interfaces {
    em1 {
        unit 7 {
            vlan-id 7;
            family inet {
                address 24.24.24.2/30;
            }
        }
    }
    lo0 {
        unit 8 {
            family inet {
                address 8.8.8.8/32;
            }
        }
    }
}
protocols {
    bgp {
        group To_PE2 {
            neighbor 24.24.24.1 {
                export myroutes;
                peer-as 200;
            }
        }
    }
}
policy-options {
    policy-statement myroutes {
        from protocol direct;
        then accept;
    }
}
routing-options {
    autonomous-system 20;
}

=========================================================================================

lab@olive-8.5R1.14:ce1> show route 

inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

1.1.1.1/32         *[Direct/0] 00:15:40
                    > via lo0.0
8.8.8.8/32         *[OSPF/150] 00:14:24, metric 0, tag 3489661028
                    > to 18.18.18.2 via em1.1
18.18.18.0/30      *[Direct/0] 00:15:40
                    > via em1.1
18.18.18.1/32      *[Local/0] 00:15:40
                      Local via em1.1
224.0.0.5/32       *[OSPF/10] 00:15:46, metric 1
                      MultiRecv



lab@olive-8.5R1.14:ce2> show route 

inet.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

1.1.1.1/32         *[BGP/170] 00:14:37, localpref 100
                      AS path: 200 100 I
                    > to 24.24.24.1 via em1.7
8.8.8.8/32         *[Direct/0] 00:15:51
                    > via lo0.8
24.24.24.0/30      *[Direct/0] 00:15:51
                    > via em1.7
24.24.24.2/32      *[Local/0] 00:15:51
                      Local via em1.7


lab@olive-8.5R1.14:ce2> traceroute 1.1.1.1 source 8.8.8.8 
traceroute to 1.1.1.1 (1.1.1.1) from 8.8.8.8, 30 hops max, 40 byte packets
 1  24.24.24.1 (24.24.24.1)  1.395 ms  1.232 ms  0.939 ms
 2  * * *
 3  * * *
 4  * * *
 5  * * *
 6  1.1.1.1 (1.1.1.1)  3.235 ms  4.352 ms  4.275 ms


lab@olive-8.5R1.14:pe1> show route 

inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

2.2.2.2/32         *[Direct/0] 00:18:01
                    > via lo0.1
3.3.3.3/32         *[OSPF/10] 00:17:11, metric 1
                    > to 19.19.19.2 via em2.2
4.4.4.4/32         *[OSPF/10] 00:17:11, metric 2
                    > to 19.19.19.2 via em2.2
7.7.7.7/32         *[BGP/170] 00:16:52, MED 2, localpref 100, from 4.4.4.4
                      AS path: 200 I
                    > to 19.19.19.2 via em2.2, label-switched-path To-ASBR1
19.19.19.0/30      *[Direct/0] 00:18:01
                    > via em2.2
19.19.19.1/32      *[Local/0] 00:18:01
                      Local via em2.2
20.20.20.0/30      *[OSPF/10] 00:17:11, metric 2
                    > to 19.19.19.2 via em2.2
224.0.0.5/32       *[OSPF/10] 00:18:06, metric 1
                      MultiRecv

inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

4.4.4.4/32         *[RSVP/7] 00:17:02, metric 2
                    > to 19.19.19.2 via em2.2, label-switched-path To-ASBR1
7.7.7.7/32         *[BGP/170] 00:16:52, MED 2, localpref 100, from 4.4.4.4
                      AS path: 200 I
                    > to 19.19.19.2 via em2.2, label-switched-path To-ASBR1

vpn2CE1.inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

1.1.1.1/32         *[OSPF/10] 00:17:15, metric 1
                    > to 18.18.18.1 via em2.1
8.8.8.8/32         *[BGP/170] 00:16:48, localpref 100, from 7.7.7.7
                      AS path: 200 20 I
                    > to 19.19.19.2 via em2.2, label-switched-path To-ASBR1
18.18.18.0/30      *[Direct/0] 00:18:01
                    > via em2.1
18.18.18.2/32      *[Local/0] 00:18:01
                      Local via em2.1
224.0.0.5/32       *[OSPF/10] 00:18:05, metric 1
                      MultiRecv
                    
mpls.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

0                  *[MPLS/0] 00:18:01, metric 1
                      Receive
1                  *[MPLS/0] 00:18:01, metric 1
                      Receive
2                  *[MPLS/0] 00:18:01, metric 1
                      Receive
16                 *[VPN/0] 00:18:01
                      to table vpn2CE1.inet.0, Pop      

bgp.l3vpn.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

1:100:1.1.1.1/32                
                   *[OSPF/10] 00:17:15, metric 1
                    > to 18.18.18.1 via em2.1
1:100:8.8.8.8/32                
                   *[BGP/170] 00:16:48, localpref 100, from 7.7.7.7
                      AS path: 200 20 I
                    > to 19.19.19.2 via em2.2, label-switched-path To-ASBR1


lab@olive-8.5R1.14:pe1> set cli logical-router pe2 
Logical router: pe2

lab@olive-8.5R1.14:pe2> show route 

inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

2.2.2.2/32         *[BGP/170] 00:17:09, MED 2, localpref 100, from 5.5.5.5
                      AS path: 100 I
                    > to 23.23.23.1 via em2.6, label-switched-path To-ASBR2
5.5.5.5/32         *[OSPF/10] 00:17:27, metric 2
                    > to 23.23.23.1 via em2.6
6.6.6.6/32         *[OSPF/10] 00:17:32, metric 1
                    > to 23.23.23.1 via em2.6
7.7.7.7/32         *[Direct/0] 00:18:18
                    > via lo0.7
22.22.22.0/30      *[OSPF/10] 00:17:32, metric 2
                    > to 23.23.23.1 via em2.6
23.23.23.0/30      *[Direct/0] 00:18:18
                    > via em2.6
23.23.23.2/32      *[Local/0] 00:18:18
                      Local via em2.6
224.0.0.5/32       *[OSPF/10] 00:18:23, metric 1
                      MultiRecv

inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

2.2.2.2/32         *[BGP/170] 00:17:09, MED 2, localpref 100, from 5.5.5.5
                      AS path: 100 I
                    > to 23.23.23.1 via em2.6, label-switched-path To-ASBR2
5.5.5.5/32         *[RSVP/7] 00:17:18, metric 2
                    > to 23.23.23.1 via em2.6, label-switched-path To-ASBR2

vpn2CE2.inet.0: 4 destinations, 5 routes (4 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

1.1.1.1/32         *[BGP/170] 00:17:05, MED 1, localpref 100, from 2.2.2.2
                      AS path: 100 I
                    > to 23.23.23.1 via em2.6, label-switched-path To-ASBR2
8.8.8.8/32         *[BGP/170] 00:18:05, localpref 100
                      AS path: 20 I
                    > to 24.24.24.2 via em2.7
24.24.24.0/30      *[Direct/0] 00:18:18
                    > via em2.7
                    [BGP/170] 00:18:05, localpref 100
                      AS path: 20 I
                    > to 24.24.24.2 via em2.7
24.24.24.1/32      *[Local/0] 00:18:18
                      Local via em2.7

mpls.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

0                  *[MPLS/0] 00:18:21, metric 1
                      Receive
1                  *[MPLS/0] 00:18:21, metric 1
                      Receive
2                  *[MPLS/0] 00:18:21, metric 1
                      Receive
16                 *[VPN/0] 00:18:18
                      to table vpn2CE2.inet.0, Pop      

bgp.l3vpn.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

1:100:1.1.1.1/32                
                   *[BGP/170] 00:17:05, MED 1, localpref 100, from 2.2.2.2
                      AS path: 100 I
                    > to 23.23.23.1 via em2.6, label-switched-path To-ASBR2
1:100:8.8.8.8/32                
                   *[BGP/170] 00:18:05, localpref 100
                      AS path: 20 I
                    > to 24.24.24.2 via em2.7



lab@olive-8.5R1.14:asbr1> show route 

inet.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

2.2.2.2/32         *[OSPF/10] 00:17:42, metric 2
                    > to 20.20.20.1 via em1.3
3.3.3.3/32         *[OSPF/10] 00:17:42, metric 1
                    > to 20.20.20.1 via em1.3
4.4.4.4/32         *[Direct/0] 00:18:33
                    > via lo0.4
19.19.19.0/30      *[OSPF/10] 00:17:42, metric 2
                    > to 20.20.20.1 via em1.3
20.20.20.0/30      *[Direct/0] 00:18:33
                    > via em1.3
20.20.20.2/32      *[Local/0] 00:18:33
                      Local via em1.3
21.21.21.0/30      *[Direct/0] 00:18:33
                    > via em1.4
21.21.21.1/32      *[Local/0] 00:18:33
                      Local via em1.4
224.0.0.5/32       *[OSPF/10] 00:18:37, metric 1
                      MultiRecv

inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

2.2.2.2/32         *[RSVP/7] 00:17:34, metric 2
                    > to 20.20.20.1 via em1.3, label-switched-path To_PE1
7.7.7.7/32         *[BGP/170] 00:17:32, MED 2, localpref 100
                      AS path: 200 I
                    > to 21.21.21.2 via em1.4, Push 100016

mpls.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

0                  *[MPLS/0] 00:18:36, metric 1
                      Receive
1                  *[MPLS/0] 00:18:36, metric 1
                      Receive
2                  *[MPLS/0] 00:18:36, metric 1
                      Receive
100000             *[VPN/170] 00:17:34
                    > to 20.20.20.1 via em1.3, Swap 100000
100016             *[VPN/170] 00:17:24
                    > to 21.21.21.2 via em1.4, Swap 100016



lab@olive-8.5R1.14:asbr1> show route 

inet.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

2.2.2.2/32         *[OSPF/10] 00:17:42, metric 2
                    > to 20.20.20.1 via em1.3
3.3.3.3/32         *[OSPF/10] 00:17:42, metric 1
                    > to 20.20.20.1 via em1.3
4.4.4.4/32         *[Direct/0] 00:18:33
                    > via lo0.4
19.19.19.0/30      *[OSPF/10] 00:17:42, metric 2
                    > to 20.20.20.1 via em1.3
20.20.20.0/30      *[Direct/0] 00:18:33
                    > via em1.3
20.20.20.2/32      *[Local/0] 00:18:33
                      Local via em1.3
21.21.21.0/30      *[Direct/0] 00:18:33
                    > via em1.4
21.21.21.1/32      *[Local/0] 00:18:33
                      Local via em1.4
224.0.0.5/32       *[OSPF/10] 00:18:37, metric 1
                      MultiRecv

inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

2.2.2.2/32         *[RSVP/7] 00:17:34, metric 2
                    > to 20.20.20.1 via em1.3, label-switched-path To_PE1
7.7.7.7/32         *[BGP/170] 00:17:32, MED 2, localpref 100
                      AS path: 200 I
                    > to 21.21.21.2 via em1.4, Push 100016

mpls.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

0                  *[MPLS/0] 00:18:36, metric 1
                      Receive
1                  *[MPLS/0] 00:18:36, metric 1
                      Receive
2                  *[MPLS/0] 00:18:36, metric 1
                      Receive
100000             *[VPN/170] 00:17:34
                    > to 20.20.20.1 via em1.3, Swap 100000
100016             *[VPN/170] 00:17:24
                    > to 21.21.21.2 via em1.4, Swap 100016

lab@olive-8.5R1.14:asbr1> set cli logical-router asbr2 
Logical router: asbr2

lab@olive-8.5R1.14:asbr2> show route 

inet.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

5.5.5.5/32         *[Direct/0] 00:18:46
                    > via lo0.5
6.6.6.6/32         *[OSPF/10] 00:17:55, metric 1
                    > to 22.22.22.2 via em2.5
7.7.7.7/32         *[OSPF/10] 00:17:55, metric 2
                    > to 22.22.22.2 via em2.5
21.21.21.0/30      *[Direct/0] 00:18:46
                    > via em2.4
21.21.21.2/32      *[Local/0] 00:18:46
                      Local via em2.4
22.22.22.0/30      *[Direct/0] 00:18:46
                    > via em2.5
22.22.22.1/32      *[Local/0] 00:18:46
                      Local via em2.5
23.23.23.0/30      *[OSPF/10] 00:17:55, metric 2
                    > to 22.22.22.2 via em2.5
224.0.0.5/32       *[OSPF/10] 00:18:50, metric 1
                      MultiRecv

inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

2.2.2.2/32         *[BGP/170] 00:17:47, MED 2, localpref 100
                      AS path: 100 I
                    > to 21.21.21.1 via em2.4, Push 100000
7.7.7.7/32         *[RSVP/7] 00:17:46, metric 2
                    > to 22.22.22.2 via em2.5, label-switched-path To_PE2

mpls.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

0                  *[MPLS/0] 00:18:49, metric 1
                      Receive
1                  *[MPLS/0] 00:18:49, metric 1
                      Receive
2                  *[MPLS/0] 00:18:49, metric 1
                      Receive
100016             *[VPN/170] 00:17:46
                    > to 22.22.22.2 via em2.5, Swap 100000
100032             *[VPN/170] 00:17:37
                    > to 21.21.21.1 via em2.4, Swap 100000

=====================================================================================

No comments:

Post a Comment