Bring MPLS Network at Your Home Lab

April 5, 2009

Install Olive in FreeBSD 7.1

Filed under: Juniper, Other

Finally….. after Upgrading to FreeBSD 7.1 Release Olive working properly. Multicast can working now emoticon

Why  choose FreeBSD ?

1. It’s suit for my old PC, I hope i can get better PC   emoticon

2. FreeBSD is my 2nd Operating System

3. I can connecting Olive with GNS3emoticon which i couldn’t do it in  windows

Basically I am reffering this installation from http://juniper.cluepon.net/index.php/Olive and http://wiki.freebsd.org/qemu. Lets we start I didnt explain how to install FreeBSD. After you install freeBSD you must install QEMU from ports if you install it from binary packge or your Olive will not work properly. You can get ports tree from CVS or portsnap and I use portsnap because I am behind firewall

#portsnap fetch && extract

after finishing get the newest port tree lets install QEMU

#cd /usr/ports/emulator/qemu && fetch

You need to modified  QEMU source code, extract the source code in /usr/ports/distfiles/qemu you need to modified eepro100.c 

#ee qemu-0.10.1/hw/eepro100.c  go to line 1508 you will find this statement

         /* Multicast frame. */
        logout("%p received multicast, len=%d\n", s, size);
        /* TODO: check multicast all bit. */
        assert(!(s->configuration[21] & BIT(3)));
        int mcast_idx = compute_mcast_idx(buf);
        if (!(s->mult[mcast_idx >> 3] & (1 << (mcast_idx & 7)))) {
            return;
        }
        rfd_status |= 0x0002;

there is ‘return’ you must comment out and the statement become 

 /* Multicast frame. */
        logout("%p received multicast, len=%d\n", s, size);
        /* TODO: check multicast all bit. */
        assert(!(s->configuration[21] & BIT(3)));
        int mcast_idx = compute_mcast_idx(buf);
        if (!(s->mult[mcast_idx >> 3] & (1 << (mcast_idx & 7)))) {
            //return;
        }
        rfd_status |= 0x0002;

now tar the entire source and we ready to install it

#cd /usr/ports/emulator/qemu && make NO_CHECKSUM=yes install clean <– dont forget to include kqemu options 

you can change install with package if you want to create binary package 

Now your Olive will work properly even you can interoperability with GNS3 emoticon

I created this bridge in FreeBSD box to connect Olive and GNS3 and use stp that can prevent loops inside the bridge

  ifconfig tap1 create up <– Junos fxp0
  ifconfig tap2 create up <– Junos fxp1
  ifconfig tap3 create up <– to GNS3 R0
  ifconfig tap4 create up <– to GNS3 R1
  ifconfig bridge0 create
  ifconfig bridge0 addm tap1 addm tap2 stp tap2 addm tap3 addm tap4 up

and you can create many more tap device  for me two tap interface for Olive is enough to connect more than 4 cisco router

qemu-system-x86_64 -L . -m 512 -hda olive.img -serial telnet::4001,server  -localtime \
-net nic,vlan=1,macaddr=00:aa:00:77:77:07,model=i82559er -net tap,vlan=1,ifname=tap1 \
-net nic,vlan=1,macaddr=00:aa:00:77:77:70,model=i82559er -net tap,vlan=1,ifname=tap2

 

 GOOD LUCK……

March 23, 2009

VRRP dengan Olive

Filed under: Juniper

Tool : Olive 

Tujuan : Simulasi VRRP dengan Olive 

Topologi : 

 

 

Hmm kali ini posting dalam bahasa indonesia meskipun postingan-postingan yang lalu dengan bahasa inggris yang ancur 

topologi ini gw buat kerena ada temen gw nanya pernah bikin VRRP di olive dan ada yang posting di kaskus kalo VRRP bisa dijalankan di Olive akhirnya kabar ini membuat tangan ku semakin gatel pengen gw buka lagi Olive gw. Tentunya gw ga langsung config begitu saja, karena gw ga ngerti gimana hirarki command VRRP di juniper. Untung gw udah dondot semua manualnya JUNOS 9.3 gw cari ternyata ketemu di bab high-availability. gw baca2 sekilas hmmmm….. ternyata cuman gitu tok. Sampai akhirnya  gw contek Topology VRRP yang uda  gw buat make Dynamips yang udah gw posting sebelumnya . dengan hanya memakai 1 image Olive untuk membuat 2 VRRP group

Setelah config bertemu config dan "commit" deg deg an nunggu hasilnya dan berhasil tanpa ada pesan error gw cek pake #show vrrp bla..bla lantjar djaya cooy… trus jalan terakhir gw ping antar user…. eh Coy… ternyata ga nyambung…. gw binun  config dah bener master backup ruternya juga dah muncul tapi ga bisa ping….

Eh coy usut punya usut ternyata gw ga bisa di ping tuh virtual addressnya dari user padahal percobaan gw di cisco bisa  lancar. wuaahahaha tambah makin gatel nih tangan gw. Gw baca-baca lagi  akhirnya VIP nya gw samaain sama master IP nya trus config punya config dan commit dan akhirnya bisa coy… tapi bisa dengan beberapa syarat

1. Untuk master router prioritynya kudu 255 klo ga ga bakal bisa di commit 

2. Untuk master router juga ga bisa pasang tracking di interface/route klo dipasang ga bakal bisa di commit 

3. Untu master router hold time untuk preempt harus diset 0 klo ga ga bakal bisa di commit juga

Dan akhirnya jadilah topology di atas dengan hanya make 1 VRRP group dalam 1 image Olive 

Ini coy… gw posting juga contoh konfigurasinya

root# show
## Last changed: 2009-03-21 18:41:13 UTC
version 9.3R1.7;
system {
    arp {
        passive-learning;
    }
    root-authentication {
        encrypted-password "$1$XuRqUJCF$toR9je7KkYjp0TnE3tGLd1"; ## SECRET-DATA
    }
    services;
    syslog {
        user * {
            any emergency;
        }
        file messages {
            any notice;
            authorization info;
        }
        file interactive-commands {
            interactive-commands any;
        }
    }
}
logical-systems {
    P1 {
        interfaces {
            fxp1 {
                unit 50 {
                    vlan-id 50;
                }
                unit 100 {
                    vlan-id 100;
                    family inet {
                        address 10.1.3.1/24;
                    }
                }
            }
        }
        protocols {
            ospf {
                area 0.0.0.0 {
                    interface all;
                }
            }
        }
    }
    P2 {
        interfaces {
            fxp0 {
                unit 60 {
                    vlan-id 60;
                    family inet {
                        address 10.1.2.10/24;
                    }
                }
                unit 100 {
                    vlan-id 100;
                    family inet {
                        address 10.1.3.2/24;
                    }
                }
            }
        }
        protocols {
            ospf {
                area 0.0.0.0 {
                    interface all;
                }
            }
        }
    }
    user1 {
        interfaces {
            fxp2 {
                unit 10 {
                    vlan-id 10;
                    family inet {
                        address 192.168.1.10/24;
                    }
                }
            }
        }
        routing-options {
            static {
                route 0.0.0.0/0 next-hop 192.168.1.1;
            }
        }
    }
    user2 {
        interfaces {
            fxp2 {
                unit 100 {
                    vlan-id 100;
                    family inet {
                        address 10.1.3.10/24;
                    }
                }
            }
        }
        protocols {
            ospf {
                area 0.0.0.0 {
                    interface all;
                }
            }
        }
    }
    vrrp1 {
        interfaces {
            fxp0 {
                unit 10 {
                    vlan-id 10;
                    family inet {
                        address 192.168.1.1/24 {
                            vrrp-group 1 {
                                virtual-address 192.168.1.1;
                                priority 255;
                                preempt {
                                    hold-time 0;
                                }
                            }
                        }
                    }
                }
                unit 50 {
                    vlan-id 50;
                    family inet {
                        address 10.1.1.1/24;
                    }
                }
            }
        }
        protocols {
            ospf {
                area 0.0.0.0 {
                    interface fxp0.10;
                    interface fxp0.50;
                }
            }
        }
    }
    vrrp2 {
        interfaces {
            fxp1 {
                unit 10 {
                    vlan-id 10;
                    family inet {
                        address 192.168.1.2/24 {
                            vrrp-group 1 {
                                virtual-address 192.168.1.1;
                                preempt;
                                track {
                                    route 10.1.3.0/24 routing-instance default priority-cost 5;
                                }
                            }
                        }
                    }
                }
                unit 60 {
                    vlan-id 60;
                    family inet {
                        address 10.1.2.1/24;
                    }
                }
            }
        }
        protocols {
            ospf {
                area 0.0.0.0 {
                    interface fxp1.10;
                    interface fxp1.60;
                }
            }
        }
    }
}
interfaces {
    fxp0 {
        vlan-tagging;
    }
    fxp1 {
        vlan-tagging;
    }
    fxp2 {
        vlan-tagging;
    }
}

[edit]

Ini juga coy hasil capture dari ping nya

root# run ping logical-system user1 10.1.3.10
PING 10.1.3.10 (10.1.3.10): 56 data bytes
36 bytes from 192.168.1.1: Redirect Host(New addr: 192.168.1.2)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 5466   0 0000  40  01 5786 192.168.1.10  10.1.3.10

64 bytes from 10.1.3.10: icmp_seq=0 ttl=62 time=25.655 ms
36 bytes from 192.168.1.1: Redirect Host(New addr: 192.168.1.2)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 546b   0 0000  40  01 5781 192.168.1.10  10.1.3.10

64 bytes from 10.1.3.10: icmp_seq=1 ttl=62 time=16.736 ms
36 bytes from 192.168.1.1: Redirect Host(New addr: 192.168.1.2)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 546f   0 0000  40  01 577d 192.168.1.10  10.1.3.10

64 bytes from 10.1.3.10: icmp_seq=2 ttl=62 time=16.688 ms
36 bytes from 192.168.1.1: Redirect Host(New addr: 192.168.1.2)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 5472   0 0000  40  01 577a 192.168.1.10  10.1.3.10

64 bytes from 10.1.3.10: icmp_seq=3 ttl=62 time=14.641 ms
^C
— 10.1.3.10 ping statistics —
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 14.641/18.430/25.655/4.256 ms

hehehe keliatan kan kalo failovernya uda jalan  

mak Nyuss Cooy… selamat mencoba :)

 

February 23, 2009

Interworking BGP Dynamips with Olive

Filed under: Cisco, Juniper

This is the topology

 

Tool : Dynamips and Olive 

Purpose :Testing BGP 

with combining Cisco dynamips and Olive Junos using Logical router to prevent Olive multiple folder
this Lab running on FreeBSD 7.1 pre-release
and the scenario

1. Since I’ve got trouble with OSPF on my QEMU so I use static route for IBGP peering
2. Use BGP regular expression for advertise route with no AS-path at R2
3. Change the origin route advertised out at R2
4. Set network originate 192.168.0.0/16 as Primary and 172.17.0.0/16 as Backup at R3 and vice versa at LR-1
5. Use BGP confederation on AS 8000
6. Set loadbalance on AS 2500

this lab contains
1. BGP loadbalancing
2. MED, Localpreference, regular expression tuning
3. BGP confederation
4. BGP prepending

and the result 

traceroute from my Freebsd box

 

traceroute from logical-router 

 

#sh ip bgp at R4

 

#run shor route LR-4

 

#run show route LR-7

 

#sh ip bgp at R2

 

for complete configuration download at this Link 

February 22, 2009

Carrier Supporting Carrier MPLS

Filed under: Juniper

Carrier Supporting Carrier : Customer Carrier Providing MPLS VPN Service

Purpose : simulating  Carrier Supporting Carrier for MPLS VPN

Tool : Olive Qemu, jinstall-9.3R1.7

Topology :

 

Comments: Multiple-Instance LDP example - Routing Protocol Summary

connection                   Protocols           

CE3 - PE3                    eBGP family inet  under customer vrf : vpn1 

PE3 - P2 - CE1             OSPF and LDP 

CE1 - PE1                    OSPF and LDP under backbone vrf : vpn-sp

PE1 - P0 - P1 - PE2       IS-IS Lv1  and LDP

PE1 - PE2                    IBGP family inet-vpn

PE2 - CE2                    OSPF and LDP under backbone vrf : vpn-sp

CE2 - P3 - PE4             OSPF and LDP

PE3 - PE4                    IBGP family inet-vpn

PE4 - CE4                    eBGP family inet under vrf : vpn1

Example configuration for PE3 

logical-systems {
    pe3 {
        interfaces {
            fxp0 {
                unit 10 {
                    description to-ce3;
                    vlan-id 10;
                    family inet {
                        address 192.168.1.2/30;
                    }
                }
                unit 20 {
                    description to-p2;
                    vlan-id 20;
                    family inet {
                        address 10.1.1.1/30;
                    }
                    family mpls;
                }
            }
            lo0 {
                unit 16 {
                    family inet {
                        address 192.168.1.100/32;
                    }
                }
                unit 25 {
                    family inet {
                        address 202.162.208.1/32;
                    }
                }
            }
        }
        protocols {
            mpls {
                interface fxp0.20;
            }
            bgp {
                group to_pe4 {
                    type internal;
                    local-address 202.162.208.1;
                    family inet-vpn {
                        unicast;
                    }
                    neighbor 202.162.208.254;
                }
            }
            ospf {
                area 0.0.0.0 {
                    interface fxp0.20;
                    interface lo0.25 {
                        passive;
                    }
                }
            }
            ldp {
                interface fxp0.20;
            }
        }
        policy-options {
            policy-statement vpn1-export {
                term 1 {
                    from protocol [ bgp direct ];
                    then {
                        community add vpn1;
                        accept;
                    }
                }
                term 2 {
                    then reject;
                }
            }
            policy-statement vpn1-import {
                term 1 {
                    from {
                        protocol bgp;
                        community vpn1;
                    }
                    then accept;
                }
                term 2 {
                    then reject;
                }
            }
            community vpn1 members target:2500:100;
        }
        routing-instances {
            vpn1 {
                instance-type vrf;
                interface fxp0.10;
                interface lo0.16;
                route-distinguisher 2500:100;
                vrf-import vpn1-import;
                vrf-export vpn1-export;
                vrf-target target:2500:100;
                vrf-table-label;
                protocols {
                    bgp {
                        group to_ce3 {
                            type external;
                            peer-as 65000;
                            as-override;
                            neighbor 192.168.1.1;
                        }
                    }
                }
            }
        }
        routing-options {
            autonomous-system 2500;
        }
    }

 

Example configuration for PE1

logical-systems {
    pe1 {
        interfaces {
            fxp1 {
                unit 40 {
                    vlan-id 40;
                    family inet {
                        address 10.1.3.2/30;
                    }
                    family mpls;
                }
                unit 50 {
                    vlan-id 50;
                    family inet {
                        address 10.1.4.1/30;
                    }
                    family iso;
                    family mpls;
                }
            }
            lo0 {
                unit 55 {
                    family inet {
                        address 125.249.1.254/32;
                    }
                    family iso {
                        address 49.0000.1000.0000.2000.00;
                    }
                }
            }
        }
        protocols {
            mpls {
                interface all;
            }
            bgp {
                group to_pe2 {
                    type internal;
                    local-address 125.249.1.254;
                    family inet-vpn {
                        unicast;
                    }
                    peer-as 777;
                    neighbor 125.249.1.252;
                }
            }
            isis {
                interface fxp1.50 {
                    level 2 disable;
                }
                interface lo0.55 {
                    passive;
                }
            }
            ldp {
                interface fxp1.50;
            }
        }
        policy-options {
            policy-statement bgp-route-to-export {
                term 1 {
                    from {
                        protocol bgp;
                        community vpn-sp;
                    }
                    then accept;
                }
                term 2 {
                    then reject;
                }
            }
            policy-statement vpn-sp-export {
                term 1 {
                    from protocol ldp;
                    then {
                        community add vpn-sp;
                        accept;
                    }
                }
                term 2 {
                    then reject;
                }
            }
            policy-statement vpn-sp-import {
                term 1 {
                    from {
                        protocol bgp;
                        community vpn-sp;
                    }
                    then accept;
                }
                term 2 {
                    then reject;
                }
            }
            community vpn-sp members target:777:100;
        }
        routing-instances {
            vpn-sp {
                instance-type vrf;
                interface fxp1.40;
                route-distinguisher 777:100;
                vrf-import vpn-sp-import;
                vrf-export vpn-sp-export;
                vrf-target target:777:100;
                vrf-table-label;
                protocols {
                    ospf {
                        export bgp-route-to-export;
                        area 0.0.0.0 {
                            interface fxp1.40;
                        }
                    }
                    ldp {
                        egress-policy bgp-route-to-export;
                        interface fxp1.40;
                    }
                }
            }
        }
        routing-options {
            autonomous-system 777;
        }
    }

To verify the proper operation for multiple-instance LDP configuration, use the following commands

1. show ldp database logical-systems xxx instance xxx

2. show ldp path logical-systems xxx instance xxx

3. show ldp session  logical-systems xxx instance xxx

4. show bgp summary  logical-systems xxx

5. show route logical-systems xxx

6. ping beween loopback interface CE3 to loopback interface CE4

Examples of verification

root# run show bgp summary logical-system pe3
Groups: 2 Peers: 2 Down peers: 0
Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
bgp.l3vpn.0            3          3          0          0          0          0
Peer                     AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn St
ate|#Active/Received/Accepted/Damped…
192.168.1.1           65000          8         10       0       0        2:12 Es
tabl
  vpn1.inet.0: 1/2/2/0
202.162.208.254        2500          5          5       0       0           7 Es
tabl
  bgp.l3vpn.0: 3/3/3/0
  vpn1.inet.0: 3/3/3/0

 root# run show route logical-system pe3

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

10.1.1.0/30        *[Direct/0] 00:05:47
                    > via fxp0.20
10.1.1.1/32        *[Local/0] 00:05:47
                      Local via fxp0.20
10.1.2.0/30        *[OSPF/10] 00:04:59, metric 2
                    > to 10.1.1.2 via fxp0.20
10.1.3.0/30        *[OSPF/10] 00:04:59, metric 3
                    > to 10.1.1.2 via fxp0.20
202.162.208.1/32   *[Direct/0] 00:05:47
                    > via lo0.25
202.162.208.67/32  *[OSPF/150] 00:04:03, metric 1, tag 3489661705
                    > to 10.1.1.2 via fxp0.20
202.162.208.68/32  *[OSPF/150] 00:04:03, metric 1, tag 3489661705
                    > to 10.1.1.2 via fxp0.20
202.162.208.77/32  *[OSPF/10] 00:04:59, metric 1
                    > to 10.1.1.2 via fxp0.20
202.162.208.78/32  *[OSPF/10] 00:04:59, metric 2
                    > to 10.1.1.2 via fxp0.20
202.162.208.254/32 *[OSPF/150] 00:04:03, metric 1, tag 3489661705
                    > to 10.1.1.2 via fxp0.20
224.0.0.5/32       *[OSPF/10] 00:06:30, metric 1
                      MultiRecv

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

202.162.208.67/32  *[LDP/9] 00:04:03, metric 1
                    > to 10.1.1.2 via fxp0.20, Push 299808
202.162.208.68/32  *[LDP/9] 00:04:03, metric 1
                    > to 10.1.1.2 via fxp0.20, Push 299824
202.162.208.77/32  *[LDP/9] 00:04:54, metric 1
                    > to 10.1.1.2 via fxp0.20
202.162.208.78/32  *[LDP/9] 00:04:53, metric 1
                    > to 10.1.1.2 via fxp0.20, Push 299792
202.162.208.254/32 *[LDP/9] 00:04:03, metric 1
                    > to 10.1.1.2 via fxp0.20, Push 299840

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

192.168.1.0/30     *[Direct/0] 00:05:46
                    > via fxp0.10
                    [BGP/170] 00:05:46, localpref 100
                      AS path: 65000 I
                    > to 192.168.1.1 via fxp0.10
192.168.1.2/32     *[Local/0] 00:05:46
                      Local via fxp0.10
192.168.1.100/32   *[Direct/0] 00:05:47
                    > via lo0.16
192.168.2.1/32     *[BGP/170] 00:05:46, localpref 100
                      AS path: 65000 I
                    > to 192.168.1.1 via fxp0.10
192.168.4.0/30     *[BGP/170] 00:03:41, localpref 100, from 202.162.208.254
                      AS path: I
                    > to 10.1.1.2 via fxp0.20, Push 16, Push 299840(top)
192.168.4.100/32   *[BGP/170] 00:03:41, localpref 100, from 202.162.208.254
                      AS path: I
                    > to 10.1.1.2 via fxp0.20, Push 16, Push 299840(top)
192.168.5.1/32     *[BGP/170] 00:03:39, localpref 100, from 202.162.208.254
                      AS path: 65000 I
                    > to 10.1.1.2 via fxp0.20, Push 16, Push 299840(top)

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

0                  *[MPLS/0] 00:06:28, metric 1
                      Receive
1                  *[MPLS/0] 00:06:28, metric 1
                      Receive
2                  *[MPLS/0] 00:06:28, metric 1
                      Receive
16                 *[VPN/0] 00:06:24
                      to table vpn1.inet.0, Pop
299776             *[LDP/9] 00:04:54, metric 1
                    > to 10.1.1.2 via fxp0.20, Pop
299776(S=0)        *[LDP/9] 00:04:54, metric 1
                    > to 10.1.1.2 via fxp0.20, Pop
299792             *[LDP/9] 00:04:53, metric 1
                    > to 10.1.1.2 via fxp0.20, Swap 299792
299808             *[LDP/9] 00:04:03, metric 1
                    > to 10.1.1.2 via fxp0.20, Swap 299808
299824             *[LDP/9] 00:04:03, metric 1
                    > to 10.1.1.2 via fxp0.20, Swap 299824
299840             *[LDP/9] 00:04:03, metric 1
                    > to 10.1.1.2 via fxp0.20, Swap 299840

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

2500:100:192.168.4.0/30
                   *[BGP/170] 00:03:41, localpref 100, from 202.162.208.254
                      AS path: I
                    > to 10.1.1.2 via fxp0.20, Push 16, Push 299840(top)
2500:100:192.168.4.100/32
                   *[BGP/170] 00:03:41, localpref 100, from 202.162.208.254
                      AS path: I
                    > to 10.1.1.2 via fxp0.20, Push 16, Push 299840(top)
2500:100:192.168.5.1/32
                   *[BGP/170] 00:03:39, localpref 100, from 202.162.208.254
                      AS path: 65000 I
                    > to 10.1.1.2 via fxp0.20, Push 16, Push 299840(top)

root# run show ldp database logical-system pe1 instance vpn-sp
Input label database, 10.1.3.2:0–202.162.208.78:0
  Label     Prefix
 299792     202.162.208.1/32
 299808     202.162.208.67/32
 299824     202.162.208.68/32
 299776     202.162.208.77/32
      3     202.162.208.78/32
 299840     202.162.208.254/32

Output label database, 10.1.3.2:0–202.162.208.78:0
  Label     Prefix
 299856     202.162.208.1/32
 299920     202.162.208.67/32
 299936     202.162.208.68/32
 299840     202.162.208.77/32
 299824     202.162.208.78/32
 299952     202.162.208.254/32

root# run show ldp path logical-system pe1 instance vpn-sp
Output Session (label)          Input Session (label)
202.162.208.78:0(299824)(                             ) 202.162.208.78:0(3)( )
  Attached route:  202.162.208.78/32, Ingress route
202.162.208.78:0(299840)        202.162.208.78:0(299776)
  Attached route:  202.162.208.77/32, Ingress route
202.162.208.78:0(299856)        202.162.208.78:0(299792)
  Attached route:  202.162.208.1/32, Ingress route
202.162.208.78:0(299920)        ( )
  Attached route:  202.162.208.67/32
202.162.208.78:0(299936)        ( )
  Attached route:  202.162.208.68/32
202.162.208.78:0(299952)        ( )
  Attached route:  202.162.208.254/32

root# run ping logical-system ce3 192.168.5.1 source 192.168.2.1 size 512
PING 192.168.5.1 (192.168.5.1): 512 data bytes
520 bytes from 192.168.5.1: icmp_seq=0 ttl=63 time=16.572 ms
520 bytes from 192.168.5.1: icmp_seq=1 ttl=63 time=151.318 ms
520 bytes from 192.168.5.1: icmp_seq=2 ttl=63 time=13.755 ms
520 bytes from 192.168.5.1: icmp_seq=3 ttl=63 time=8.139 ms
520 bytes from 192.168.5.1: icmp_seq=4 ttl=63 time=8.566 ms
520 bytes from 192.168.5.1: icmp_seq=5 ttl=63 time=8.399 ms

^C
— 192.168.5.1 ping statistics —
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max/stddev = 8.139/34.458/151.318/52.356 ms

For complete configuration can downloaded from this Link 

February 11, 2009

Inter-AS MPLS VPN

Filed under: Juniper

 The rule of this lab

1.Use logical-systems to emulate P,PE & CE router

2.Use IS-IS as IGP in AS 2500

3.Use OSPF as IGP in AS 5000

4.Add one router as transit point beween ASBR1 and ASBR2

5.Use multihop eBGP session between PE1 to PE2 

6.Use RSVP and LDP Tunneling beween ASBR1 and ASBR2 

7.LDP enable on each PE to ASBR

8.Enable IPv6 Tunneling 

9.Create VRF that can overlap between 2 VPN network

 

Example configuration for ASBR router 

[edit]

logical-systems {
    asbr1 {
        interfaces {
            fxp0 {
                unit 20 {
                    vlan-id 20;
                    family inet {
                        address 10.1.2.2/30;
                    }
                    family iso;
                    family mpls;
                }
                unit 30 {
                    vlan-id 30;
                    family inet {
                        address 10.1.3.1/30;
                    }
                    family mpls;
                }
            }
            lo0 {
                unit 35 {
                    family inet {
                        address 202.162.208.7/32;
                    }
                    family iso {
                        address 77.1000.2000.3000.4000.5077.00;
                    }
                }
            }
        }
        protocols {
            rsvp {
                interface fxp0.30 {
                    bandwidth 2m;
                }
            }
            mpls {
                traffic-engineering bgp-igp;
                label-switched-path to_asbr2 {
                    to 125.249.16.7;
                    ldp-tunneling;
                    bandwidth 2m;
                }
                interface fxp0.20;
                interface fxp0.30;
            }
            bgp {
                group to_pe1 {
                    type internal;
                    local-address 202.162.208.7;
                    family inet {
                        labeled-unicast {
                            resolve-vpn;
                        }
                    }
                    neighbor 202.162.208.1;
                }
                group to_trans {
                    type external;
                    family inet {
                        labeled-unicast {
                            resolve-vpn;
                        }
                    }
                    export [ direct export-lo ];
                    peer-as 777;
                    neighbor 10.1.3.2;
                }
            }
            isis {
                interface fxp0.20 {
                    level 2 disable;
                }
                interface lo0.35 {
                    passive;
                }
            }
            ldp {
                interface fxp0.20;
            }
        }
        policy-options {
            policy-statement direct {
                term 1 {
                    from protocol direct;
                    then accept;
                }
            }
            policy-statement export-lo {
                from {
                    route-filter 202.162.208.0/24 orlonger;
                }
                then accept;
            }
        }
        routing-options {
            autonomous-system 2500;
        }
    }
 

Example configuration for PE router  

[edit]

logical-systems {
    pe1 {
        interfaces {
            fxp0 {
                unit 10 {
                    vlan-id 10;
                    family inet {
                        address 10.1.1.1/30;
                    }
                    family iso;
                    family mpls;
                }
                unit 100 {
                    vlan-id 100;
                    family inet {
                        address 192.168.1.1/30;
                    }
                }
                unit 110 {
                    vlan-id 110;
                    family inet {
                        address 192.168.1.1/30;
                    }
                    family inet6 {
                        address 2001:d30:1::1/126;
                    }
                }
                unit 120 {
                    vlan-id 120;
                    family inet {
                        address 192.168.1.9/30;
                    }
                }
            }
            lo0 {
                unit 15 {
                    family inet {
                        address 202.162.208.1/32;
                    }
                    family iso {
                        address 77.1000.2000.3000.4000.5000.00;
                    }
                }
                unit 105 {
                    family inet {
                        address 192.168.1.100/32;
                    }
                }
                unit 115 {
                    family inet {
                        address 192.168.1.105/32;
                    }
                    family inet6 {
                        address 2001:d30:1::100/128;
                    }
                }
                unit 125 {
                    family inet {
                        address 192.168.1.109/32;
                    }
                }
            }
        }
        protocols {
            mpls {
                ipv6-tunneling;
                interface fxp0.10;
            }
            bgp {
                group to_asbr1 {
                    type internal;
                    local-address 202.162.208.1;
                    family inet {
                        labeled-unicast {
                            resolve-vpn;
                        }
                    }
                    neighbor 202.162.208.7;
                }
                group to_pe2 {
                    type external;
                    multihop;
                    local-address 202.162.208.1;
                    family inet-vpn {
                        any;
                    }
                    family inet6-vpn {
                        any;
                    }
                    peer-as 5000;
                    neighbor 125.249.16.1;
                }
            }
            isis {
                interface fxp0.10 {
                    level 2 disable;
                }
                interface lo0.15 {
                    passive;
                }
            }
            ldp {
                interface fxp0.10;
            }
        }
        policy-options {
            policy-statement vpn-export {
                term 1 {
                    from protocol [ direct bgp ];
                    then {
                        community add vpn;
                        accept;
                    }
                }
                term 2 {
                    then reject;
                }
            }
            policy-statement vpn-import {
                term 1 {
                    from {
                        protocol bgp;
                        community vpn;
                    }
                    then accept;
                }
                term 2 {
                    then reject;
                }
            }
            policy-statement vpnab-export {
                term 1 {
                    from protocol [ direct bgp ];
                    then {
                        community add vpn;
                        community add vpnv6;
                        accept;
                    }
                }
                term 2 {
                    then reject;
                }
            }
            policy-statement vpnab-import {
                term 1 {
                    from {
                        protocol bgp;
                        community [ vpn vpnv6 ];
                    }
                    then accept;
                }
                term 2 {
                    then reject;
                }
            }
            policy-statement vpnv6-export {
                term 1 {
                    from protocol [ direct static bgp ];
                    then {
                        community add vpnv6;
                        accept;
                    }
                }
                term 2 {
                    then reject;
                }
            }
            policy-statement vpnv6-import {
                term 1 {
                    from {
                        protocol bgp;
                        community vpnv6;
                    }
                    then accept;
                }
                term 2 {
                    then reject;
                }
            }
            community vpn members target:2500:100;
            community vpnv6 members target:2500:666;
        }
        routing-instances {
            vpn {
                instance-type vrf;
                interface fxp0.100;
                interface lo0.105;
                route-distinguisher 2500:100;
                vrf-import vpn-import;
                vrf-export vpn-export;
                vrf-target target:2500:100;
                vrf-table-label;
                routing-options {
                    auto-export {
                        family inet {
                            unicast {
                                rib-group inet-access;
                            }
                        }
                    }
                }
                protocols {
                    bgp {
                        group toce1 {
                            type external;
                            peer-as 1000;
                            as-override;
                            neighbor 192.168.1.2;
                        }
                    }
                }
            }
            vpnab {
                instance-type vrf;
                interface fxp0.120;
                interface lo0.125;
                route-distinguisher 2500:777;
                vrf-import vpnab-import;
                vrf-export vpnab-export;
                vrf-target target:2500:777;
                vrf-table-label;
                routing-options {
                    auto-export {
                        family inet {
                            unicast {
                                rib-group inet-access;
                            }
                        }
                    }
                }
                protocols {
                    bgp {
                        group to_ceab {
                            type external;
                            peer-as 65002;
                            as-override;
                            neighbor 192.168.1.10;
                        }
                    }
                }
            }
            vpnv6 {
                instance-type vrf;
                interface fxp0.110;
                interface lo0.115;
                route-distinguisher 2500:666;
                vrf-import vpnv6-import;
                vrf-export vpnv6-export;
                vrf-target target:2500:666;
                vrf-table-label;
                routing-options {
                    rib vpnv6.inet6.0 {
                        static {
                            route 2001:5c0:1::/126 next-hop 2001:d30:1::3;
                        }
                    }
                    auto-export {
                        family inet {
                            unicast {
                                rib-group inet-access;
                            }
                        }
                    }
                }
                protocols {
                    bgp {
                        group toCE3 {
                            type external;
                            peer-as 65000;
                            as-override;
                            neighbor 192.168.1.2;
                        }
                    }
                }
            }
        }
        routing-options {
            rib-groups {
                inet-access {
                    import-rib inet.0;
                }
            }
            autonomous-system 2500;
        }
    }

 Example configuration for Transit point router

[edit]

logical-systems {
    transit {
        interfaces {
            fxp1 {
                unit 30 {
                    vlan-id 30;
                    family inet {
                        address 10.1.3.2/30;
                    }
                    family mpls;
                }
                unit 40 {
                    vlan-id 40;
                    family inet {
                        address 10.1.4.1/30;
                    }
                    family mpls;
                }
            }
            lo0 {
                unit 45 {
                    family inet {
                        address 67.100.150.1/32;
                    }
                }
            }
        }
        protocols {
            rsvp {
                interface fxp1.30 {
                    bandwidth 2m;
                }
                interface fxp1.40 {
                    bandwidth 2m;
                }
            }
            mpls {
                traffic-engineering bgp-igp;
                interface fxp1.30;
                interface fxp1.40;
            }
            bgp {
                group to_asbr1 {
                    type external;
                    family inet {
                        labeled-unicast {
                            resolve-vpn;
                        }
                    }
                    export direct;
                    peer-as 2500;
                    neighbor 10.1.3.1;
                }
                group to_asbr2 {
                    type external;
                    family inet {
                        labeled-unicast {
                            resolve-vpn;
                        }
                    }
                    export direct;
                    peer-as 5000;
                    neighbor 10.1.4.2;
                }
            }
        }
        policy-options {
            policy-statement direct {
                term 1 {
                    from protocol direct;
                    then accept;
                }
            }
        }
        routing-options {
            autonomous-system 777;
        }
    }

   

Example configuration for CE router

[edit]

logical-systems {
    ce4 {
        interfaces {
            fxp1 {
                unit 220 {
                    vlan-id 220;
                    family inet {
                        address 192.168.7.2/30;
                    }
                    family inet6 {
                        address 2001:d30:7::3/126;
                    }
                }
            }
            lo0 {
                unit 226 {
                    family inet {
                        address 172.17.67.7/32;
                    }
                    family inet6 {
                        address 2001:5c0:7::1/128;
                    }
                }
            }
        }
        protocols {
            bgp {
                group to_pe2 {
                    type external;
                    export direct;
                    peer-as 5000;
                    neighbor 192.168.7.1;
                }
            }
        }
        policy-options {
            policy-statement direct {
                term 1 {
                    from protocol direct;
                    then accept;
                }
            }
        }
        routing-options {
            rib inet6.0 {
                static {
                    route ::/0 next-hop 2001:d30:7::1;
                }
            }
            autonomous-system 65001;
        }
    }

 

 Let’s we see troubleshoot on PE & CE router

root# run show route logical-system pe1

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

10.1.1.0/30        *[Direct/0] 00:04:47
                    > via fxp0.10
10.1.1.1/32        *[Local/0] 00:04:47
                      Local via fxp0.10
10.1.2.0/30        *[IS-IS/15] 00:04:19, metric 20
                    > to 10.1.1.2 via fxp0.10
10.1.4.0/30        *[BGP/170] 00:03:44, localpref 100, from 202.162.208.7
                      AS path: 777 I
                    > to 10.1.1.2 via fxp0.10, Push 299856, Push 299776(top)
10.1.5.0/30        *[BGP/170] 00:03:45, localpref 100, from 202.162.208.7
                      AS path: 777 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 299872, Push 299776(top)
67.100.150.1/32    *[BGP/170] 00:03:44, localpref 100, from 202.162.208.7
                      AS path: 777 I
                    > to 10.1.1.2 via fxp0.10, Push 299856, Push 299776(top)
125.249.16.1/32    *[BGP/170] 00:03:45, localpref 100, from 202.162.208.7
                      AS path: 777 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 299888, Push 299776(top)
125.249.16.7/32    *[BGP/170] 00:03:45, localpref 100, from 202.162.208.7
                      AS path: 777 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 299872, Push 299776(top)
125.249.16.254/32  *[BGP/170] 00:03:45, localpref 100, from 202.162.208.7
                      AS path: 777 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 299904, Push 299776(top)
172.17.62.1/32     *[BGP/170] 00:04:44, localpref 100
                      AS path: 65000 I
                    > to 192.168.1.2 via fxp0.110
172.17.63.1/32     *[BGP/170] 00:04:46, localpref 100
                      AS path: 1000 I
                    > to 192.168.1.2 via fxp0.100
172.17.64.1/32     *[BGP/170] 00:04:45, localpref 100
                      AS path: 65002 I
                    > to 192.168.1.10 via fxp0.120
192.168.1.0/30     *[Direct/0] 00:04:46
                    > via fxp0.100
                    [Direct/0] 00:04:44
                    > via fxp0.110
192.168.1.8/30     *[Direct/0] 00:04:45
                    > via fxp0.120
192.168.1.100/32   *[Direct/0] 00:04:46
                    > via lo0.105
192.168.1.105/32   *[Direct/0] 00:04:44
                    > via lo0.115
192.168.1.109/32   *[Direct/0] 00:04:45
                    > via lo0.125
202.162.208.1/32   *[Direct/0] 00:04:47
                    > via lo0.15
202.162.208.7/32   *[IS-IS/15] 00:04:09, metric 20
                    > to 10.1.1.2 via fxp0.10
202.162.208.254/32 *[IS-IS/15] 00:04:19, metric 10
                    > to 10.1.1.2 via fxp0.10

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

10.1.4.0/30        *[BGP/170] 00:03:45, localpref 100, from 202.162.208.7
                      AS path: 777 I
                    > to 10.1.1.2 via fxp0.10, Push 299856, Push 299776(top)
10.1.5.0/30        *[BGP/170] 00:03:46, localpref 100, from 202.162.208.7
                      AS path: 777 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 299872, Push 299776(top)
67.100.150.1/32    *[BGP/170] 00:03:45, localpref 100, from 202.162.208.7
                      AS path: 777 I
                    > to 10.1.1.2 via fxp0.10, Push 299856, Push 299776(top)
125.249.16.1/32    *[BGP/170] 00:03:46, localpref 100, from 202.162.208.7
                      AS path: 777 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 299888, Push 299776(top)
125.249.16.7/32    *[BGP/170] 00:03:46, localpref 100, from 202.162.208.7
                      AS path: 777 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 299872, Push 299776(top)
125.249.16.254/32  *[BGP/170] 00:03:46, localpref 100, from 202.162.208.7
                      AS path: 777 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 299904, Push 299776(top)
202.162.208.7/32   *[LDP/9] 00:04:10, metric 1
                    > to 10.1.1.2 via fxp0.10, Push 299776
202.162.208.254/32 *[LDP/9] 00:04:19, metric 1
                    > to 10.1.1.2 via fxp0.10

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

172.17.63.1/32     *[BGP/170] 00:04:47, localpref 100
                      AS path: 1000 I
                    > to 192.168.1.2 via fxp0.100
172.17.64.1/32     *[BGP/170] 00:04:46, localpref 100
                      AS path: 65002 I
                    > to 192.168.1.10 via fxp0.120
172.17.68.7/32     *[BGP/170] 00:03:36, localpref 100, from 125.249.16.1
                      AS path: 5000 1500 I
                    > to 10.1.1.2 via fxp0.10, Push 16, Push 299888, Push 299776(top)
192.168.1.0/30     *[Direct/0] 00:04:47
                    > via fxp0.100
                    [BGP/170] 00:04:47, localpref 100
                      AS path: 1000 I
                    > to 192.168.1.2 via fxp0.100
192.168.1.1/32     *[Local/0] 00:04:47
                      Local via fxp0.100
192.168.1.100/32   *[Direct/0] 00:04:47
                    > via lo0.105
192.168.7.0/30     *[BGP/170] 00:03:36, localpref 100, from 125.249.16.1
                      AS path: 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 16, Push 299888, Push 299776(top)
192.168.7.77/32    *[BGP/170] 00:03:36, localpref 100, from 125.249.16.1
                      AS path: 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 16, Push 299888, Push 299776(top)

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

172.17.62.1/32     *[BGP/170] 00:04:45, localpref 100
                      AS path: 65000 I
                    > to 192.168.1.2 via fxp0.110
172.17.63.1/32     *[BGP/170] 00:04:47, localpref 100
                      AS path: 1000 I
                    > to 192.168.1.2 via fxp0.100
172.17.64.1/32     *[BGP/170] 00:04:46, localpref 100
                      AS path: 65002 I
                    > to 192.168.1.10 via fxp0.120
172.17.67.7/32     *[BGP/170] 00:03:36, localpref 100, from 125.249.16.1
                      AS path: 5000 65001 I
                    > to 10.1.1.2 via fxp0.10, Push 17, Push 299888, Push 299776(top)
172.17.68.7/32     *[BGP/170] 00:03:36, localpref 100, from 125.249.16.1
                      AS path: 5000 1500 I
                    > to 10.1.1.2 via fxp0.10, Push 16, Push 299888, Push 299776(top)
192.168.1.8/30     *[Direct/0] 00:04:46
                    > via fxp0.120
                    [BGP/170] 00:04:46, localpref 100
                      AS path: 65002 I
                    > to 192.168.1.10 via fxp0.120
192.168.1.9/32     *[Local/0] 00:04:46
                      Local via fxp0.120
192.168.1.109/32   *[Direct/0] 00:04:46
                    > via lo0.125
192.168.7.0/30     *[BGP/170] 00:03:36, localpref 100, from 125.249.16.1
                      AS path: 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 17, Push 299888, Push 299776(top)
                    [BGP/170] 00:03:36, localpref 100, from 125.249.16.1
                      AS path: 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 16, Push 299888, Push 299776(top)
192.168.7.77/32    *[BGP/170] 00:03:36, localpref 100, from 125.249.16.1
                      AS path: 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 16, Push 299888, Push 299776(top)
192.168.7.107/32   *[BGP/170] 00:03:36, localpref 100, from 125.249.16.1
                      AS path: 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 17, Push 299888, Push 299776(top)

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

172.17.62.1/32     *[BGP/170] 00:04:45, localpref 100
                      AS path: 65000 I
                    > to 192.168.1.2 via fxp0.110
172.17.64.1/32     *[BGP/170] 00:04:46, localpref 100
                      AS path: 65002 I
                    > to 192.168.1.10 via fxp0.120
172.17.67.7/32     *[BGP/170] 00:03:36, localpref 100, from 125.249.16.1
                      AS path: 5000 65001 I
                    > to 10.1.1.2 via fxp0.10, Push 17, Push 299888, Push 299776(top)
192.168.1.0/30     *[Direct/0] 00:04:45
                    > via fxp0.110
                    [BGP/170] 00:04:45, localpref 100
                      AS path: 65000 I
                    > to 192.168.1.2 via fxp0.110
192.168.1.1/32     *[Local/0] 00:04:45
                      Local via fxp0.110
192.168.1.105/32   *[Direct/0] 00:04:45
                    > via lo0.115
192.168.7.0/30     *[BGP/170] 00:03:36, localpref 100, from 125.249.16.1
                      AS path: 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 17, Push 299888, Push 299776(top)
192.168.7.107/32   *[BGP/170] 00:03:36, localpref 100, from 125.249.16.1
                      AS path: 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 17, Push 299888, Push 299776(top)

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

77.1000.2000.3000.4000.5000/88
                   *[Direct/0] 00:04:45
                    > via lo0.15

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

0                  *[MPLS/0] 00:05:45, metric 1
                      Receive
1                  *[MPLS/0] 00:05:45, metric 1
                      Receive
2                  *[MPLS/0] 00:05:45, metric 1
                      Receive
16                 *[VPN/0] 00:05:33
                      to table vpn.inet.0, Pop
17                 *[VPN/0] 00:05:33
                      to table vpnab.inet.0, Pop
18                 *[VPN/0] 00:05:33
                      to table vpnv6.inet.0, Pop
299776             *[LDP/9] 00:04:19, metric 1
                    > to 10.1.1.2 via fxp0.10, Pop
299776(S=0)        *[LDP/9] 00:04:19, metric 1
                    > to 10.1.1.2 via fxp0.10, Pop
299792             *[LDP/9] 00:04:10, metric 1
                    > to 10.1.1.2 via fxp0.10, Swap 299776
299808             *[VPN/170] 00:03:46
                    > to 192.168.1.2 via fxp0.110, Pop
299824             *[VPN/170] 00:03:46
                    > to 192.168.1.2 via fxp0.100, Pop
299840             *[VPN/170] 00:03:46
                    > to 192.168.1.10 via fxp0.120, Pop

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

2500:777:172.17.64.1/32
                   *[BGP/170] 00:04:46, localpref 100
                      AS path: 65002 I
                    > to 192.168.1.10 via fxp0.120
2500:777:192.168.1.8/30
                   *[Direct/0] 00:04:46
                    > via fxp0.120
2500:777:192.168.1.109/32
                   *[Direct/0] 00:04:46
                    > via lo0.125
2500:100:172.17.63.1/32
                   *[BGP/170] 00:04:47, localpref 100
                      AS path: 1000 I
                    > to 192.168.1.2 via fxp0.100
2500:100:172.17.68.7/32
                   *[BGP/170] 00:03:36, localpref 100, from 125.249.16.1
                      AS path: 5000 1500 I
                    > to 10.1.1.2 via fxp0.10, Push 16, Push 299888, Push 299776(top)
2500:100:192.168.1.0/30
                   *[Direct/0] 00:04:47
                    > via fxp0.100
2500:100:192.168.1.100/32
                   *[Direct/0] 00:04:47
                    > via lo0.105
2500:100:192.168.7.0/30
                   *[BGP/170] 00:03:36, localpref 100, from 125.249.16.1
                      AS path: 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 16, Push 299888, Push 299776(top)
2500:100:192.168.7.77/32
                   *[BGP/170] 00:03:36, localpref 100, from 125.249.16.1
                      AS path: 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 16, Push 299888, Push 299776(top)
2500:666:172.17.62.1/32
                   *[BGP/170] 00:04:45, localpref 100
                      AS path: 65000 I
                    > to 192.168.1.2 via fxp0.110
2500:666:172.17.67.7/32
                   *[BGP/170] 00:03:36, localpref 100, from 125.249.16.1
                      AS path: 5000 65001 I
                    > to 10.1.1.2 via fxp0.10, Push 17, Push 299888, Push 299776(top)
2500:666:192.168.1.0/30
                   *[Direct/0] 00:04:45
                    > via fxp0.110
2500:666:192.168.1.105/32
                   *[Direct/0] 00:04:45
                    > via lo0.115
2500:666:192.168.7.0/30
                   *[BGP/170] 00:03:36, localpref 100, from 125.249.16.1
                      AS path: 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 17, Push 299888, Push 299776(top)
2500:666:192.168.7.107/32
                   *[BGP/170] 00:03:36, localpref 100, from 125.249.16.1
                      AS path: 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 17, Push 299888, Push 299776(top)

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

::ffff:10.1.4.0/126*[BGP/170] 00:03:46, localpref 100, from 202.162.208.7
                      AS path: 777 I
                    > to 10.1.1.2 via fxp0.10, Push 299856, Push 299776(top)
::ffff:10.1.5.0/126*[BGP/170] 00:03:47, localpref 100, from 202.162.208.7
                      AS path: 777 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 299872, Push 299776(top)
::ffff:67.100.150.1/128
                   *[BGP/170] 00:03:46, localpref 100, from 202.162.208.7
                      AS path: 777 I
                    > to 10.1.1.2 via fxp0.10, Push 299856, Push 299776(top)
::ffff:125.249.16.1/128
                   *[BGP/170] 00:03:47, localpref 100, from 202.162.208.7
                      AS path: 777 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 299888, Push 299776(top)
::ffff:125.249.16.7/128
                   *[BGP/170] 00:03:47, localpref 100, from 202.162.208.7
                      AS path: 777 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 299872, Push 299776(top)
::ffff:125.249.16.254/128
                   *[BGP/170] 00:03:47, localpref 100, from 202.162.208.7
                      AS path: 777 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 299904, Push 299776(top)
::ffff:202.162.208.7/128
                   *[LDP/9] 00:04:11, metric 1
                    > to 10.1.1.2 via fxp0.10, Push 299776
::ffff:202.162.208.254/128
                   *[LDP/9] 00:04:20, metric 1
                    > to 10.1.1.2 via fxp0.10

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

2001:5c0:7::/126   *[BGP/170] 00:03:37, localpref 100, from 125.249.16.1
                      AS path: 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 17, Push 299888, Push 299776(top)
2001:d30:7::/126   *[BGP/170] 00:03:37, localpref 100, from 125.249.16.1
                      AS path: 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 17, Push 299888, Push 299776(top)
2001:d30:7::777/128*[BGP/170] 00:03:37, localpref 100, from 125.249.16.1
                      AS path: 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 17, Push 299888, Push 299776(top)

vpnv6.inet6.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

2001:5c0:1::/126   *[Static/5] 00:04:43
                    > to 2001:d30:1::3 via fxp0.110
2001:5c0:7::/126   *[BGP/170] 00:03:37, localpref 100, from 125.249.16.1
                      AS path: 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 17, Push 299888, Push 299776(top)
2001:d30:1::/126   *[Direct/0] 00:04:43
                    > via fxp0.110
2001:d30:1::1/128  *[Local/0] 00:04:43
                      Local via fxp0.110
2001:d30:1::100/128*[Direct/0] 00:04:44
                    > via lo0.115
2001:d30:7::/126   *[BGP/170] 00:03:37, localpref 100, from 125.249.16.1
                      AS path: 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 17, Push 299888, Push 299776(top)
2001:d30:7::777/128*[BGP/170] 00:03:37, localpref 100, from 125.249.16.1
                      AS path: 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 17, Push 299888, Push 299776(top)
fe80::/64          *[Direct/0] 00:04:43
                    > via fxp0.110
fe80::2aa:0:6e00:101/128
                   *[Local/0] 00:04:43
                      Local via fxp0.110
fe80::2aa:ff:fe00:101/128
                   *[Direct/0] 00:04:44
                    > via lo0.115

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

2500:666:2001:5c0:1::/126
                   *[Static/5] 00:04:43
                    > to 2001:d30:1::3 via fxp0.110
2500:666:2001:5c0:7::/126
                   *[BGP/170] 00:03:37, localpref 100, from 125.249.16.1
                      AS path: 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 17, Push 299888, Push 299776(top)
2500:666:2001:d30:1::/126
                   *[Direct/0] 00:04:43
                    > via fxp0.110
2500:666:2001:d30:1::100/128
                   *[Direct/0] 00:04:44
                    > via lo0.115
2500:666:2001:d30:7::/126
                   *[BGP/170] 00:03:37, localpref 100, from 125.249.16.1
                      AS path: 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 17, Push 299888, Push 299776(top)
2500:666:2001:d30:7::777/128
                   *[BGP/170] 00:03:37, localpref 100, from 125.249.16.1
                      AS path: 5000 I
                    > to 10.1.1.2 via fxp0.10, Push 17, Push 299888, Push 299776(top)

 Let we see CE-AB router can communicate between CE1,CE2(VRF: vpn) and CE3,CE4(VRF: vpnv6) but between CE1 and CE2 cannot communicate each other

 root# run ping logical-system ceAB 172.17.67.7 source 172.17.64.1
PING 172.17.67.7 (172.17.67.7): 56 data bytes
64 bytes from 172.17.67.7: icmp_seq=0 ttl=63 time=7.383 ms
64 bytes from 172.17.67.7: icmp_seq=1 ttl=63 time=5.699 ms
64 bytes from 172.17.67.7: icmp_seq=2 ttl=63 time=13.743 ms
64 bytes from 172.17.67.7: icmp_seq=3 ttl=63 time=5.810 ms
64 bytes from 172.17.67.7: icmp_seq=4 ttl=63 time=6.233 ms
^C
— 172.17.67.7 ping statistics —
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 5.699/7.774/13.743/3.044 ms

root# run ping logical-system ceAB 172.17.68.7 source 172.17.64.1
PING 172.17.68.7 (172.17.68.7): 56 data bytes
64 bytes from 172.17.68.7: icmp_seq=0 ttl=63 time=8.634 ms
64 bytes from 172.17.68.7: icmp_seq=1 ttl=63 time=5.902 ms
64 bytes from 172.17.68.7: icmp_seq=2 ttl=63 time=6.017 ms
64 bytes from 172.17.68.7: icmp_seq=3 ttl=63 time=6.635 ms
64 bytes from 172.17.68.7: icmp_seq=4 ttl=63 time=6.948 ms
^C
— 172.17.68.7 ping statistics —
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 5.902/6.827/8.634/0.983 ms

root# …system ce3 2001:5c0:7::1 source 2001:5c0:1::1 size 512
PING6(560=40+8+512 bytes) 2001:d30:1::3 –> 2001:5c0:7::1
520 bytes from 2001:5c0:7::1, icmp_seq=0 hlim=63 time=20.109 ms
520 bytes from 2001:5c0:7::1, icmp_seq=1 hlim=63 time=7.028 ms
520 bytes from 2001:5c0:7::1, icmp_seq=2 hlim=63 time=7.439 ms
520 bytes from 2001:5c0:7::1, icmp_seq=3 hlim=63 time=7.936 ms
520 bytes from 2001:5c0:7::1, icmp_seq=4 hlim=63 time=6.246 ms
520 bytes from 2001:5c0:7::1, icmp_seq=5 hlim=63 time=11.596 ms
520 bytes from 2001:5c0:7::1, icmp_seq=6 hlim=63 time=6.660 ms
^C
— 2001:5c0:7::1 ping6 statistics —
7 packets transmitted, 7 packets received, 0% packet loss
round-trip min/avg/max/std-dev = 6.246/9.573/20.109/4.604 ms


 If you want to see all configuration download at this link 

 

 

MPLS VPN with Tunnel LSP

Filed under: Juniper

Tool: Qemu Olive with jinstall-9.3R1.7

Type: Smulation Using Logical-systems

 

 

The rule of this Lab 

1. Use logical-systems to emulate P,PE & CE router

2.Use OSPF on core Network as IGP

3.Use BGP on PE to CE relationship 

4.Enable IPv6 tunneling mode

5.Use static route for IPv6 relationship between PE to CE router

6.Use Tunnel LSP

7.Use RSVP 

 

Example configuration for PE router

[edit]

logical-systems {
     PE1 {
        interfaces {
            fxp1 {
                unit 10 {
                    vlan-id 10;
                    family inet {
                        address 10.1.1.1/30;
                    }
                    family mpls;
                }
                unit 100 {
                    vlan-id 100;
                    family inet {
                        address 192.168.1.1/30;
                    }
                    family inet6 {
                        address 2001:d30:1::1/126;
                    }
                }
                unit 110 {
                    vlan-id 110;
                    family inet {
                        address 192.168.1.1/30;
                    }
                }
            }
            lo0 {
                unit 15 {
                    family inet {
                        address 202.162.208.1/32;
                    }
                }
                unit 105 {
                    family inet {
                        address 192.168.1.100/32;
                    }
                    family inet6 {
                        address 2001:d30:1::100/128;
                    }
                }
                unit 115 {
                    family inet {
                        address 192.168.1.77/32;
                    }
                }
            }
        }
        protocols {
            rsvp {
                interface fxp1.10 {
                    bandwidth 1m;
                }
            }
            mpls {
                ipv6-tunneling;
                label-switched-path toPE2 {
                    to 202.162.208.7;
                    bandwidth 1m;
                }
                interface fxp1.10;
            }
            bgp {
                group toPE2 {
                    type internal;
                    local-address 202.162.208.1;
                    family inet-vpn {
                        any;
                    }
                    family inet6-vpn {
                        any;
                    }
                    neighbor 202.162.208.7;
                }
            }
            ospf {
                traffic-engineering;
                area 0.0.0.0 {
                    interface fxp1.10;
                    interface lo0.15 {
                        passive;
                    }
                }
            }
        }
        policy-options {
            policy-statement vpn-export {
                term 1 {
                    from protocol [ static bgp direct ];
                    then {
                        community add vpn;
                        accept;
                    }
                }
                term 2 {
                    then reject;
                }
            }
            policy-statement vpn-import {
                term 1 {
                    from {
                        protocol bgp;
                        community vpn;
                    }
                    then accept;
                }
                term 2 {
                    then reject;
                }
            }
            policy-statement vpnv6-export {
                term 1 {
                    from protocol [ direct static ];
                    then {
                        community add vpnv6;
                        accept;
                    }
                }
                term 2 {
                    then reject;
                }
            }
            policy-statement vpnv6-import {
                term 1 {
                    from {
                        protocol bgp;
                        community vpnv6;
                    }
                    then accept;
                }
                term 2 {
                    then reject;
                }
            }
            community vpn members target:2500:100;
            community vpnv6 members target:2500:666;
        }
        routing-instances {
            vpn {
                instance-type vrf;
                interface fxp1.100;
                interface lo0.105;
                route-distinguisher 2500:100;
                vrf-import vpn-import;
                vrf-export vpn-export;
                vrf-target target:2500:100;
                vrf-table-label;
                routing-options {
                    rib vpn.inet6.0 {
                        static {
                            route 2001:5c0:1::/126 next-hop 2001:d30:1::3;
                        }
                    }
                }
                protocols {
                    bgp {
                        group toCE1 {
                            type external;
                            peer-as 777;
                            as-override;
                            neighbor 192.168.1.2;
                        }
                    }
                }
            }
            vpnv6 {
                instance-type vrf;
                interface fxp1.110;
                interface lo0.115;
                route-distinguisher 2500:666;
                vrf-import vpnv6-import;
                vrf-export vpnv6-export;
                vrf-target target:2500:666;
                vrf-table-label;
                routing-options {
                    static {
                        route 172.17.63.0/24 next-hop 192.168.1.2;
                    }
                }
            }
        }
        routing-options {
            autonomous-system 2500;
        }
    }

Example configuration for P router 

 

[edit]

logical-systems {
     mid1 {
        interfaces {
            fxp0 {
                unit 10 {
                    vlan-id 10;
                    family inet {
                        address 10.1.1.2/30;
                    }
                    family mpls;
                }
                unit 20 {
                    vlan-id 20;
                    family inet {
                        address 10.1.2.1/30;
                    }
                    family mpls;
                }
            }
            lo0 {
                unit 25 {
                    family inet {
                        address 202.162.208.254/32;
                    }
                }
            }
        }
        protocols {
            rsvp {
                interface fxp0.10 {
                    bandwidth 1m;
                }
                interface fxp0.20 {
                    bandwidth 1m;
                }
            }
            mpls {
                interface fxp0.10;
                interface fxp0.20;
            }
            ospf {
                traffic-engineering;
                area 0.0.0.0 {
                    interface fxp0.10;
                    interface fxp0.20;
                    interface lo0.25 {
                        passive;
                    }
                }
            }
        }
        routing-options {
            autonomous-system 2500;
        }
    }

Example configuration for CE router 

 

[edit]

logical-systems {
    CE1 {
        interfaces {
            fxp0 {
                unit 100 {
                    vlan-id 100;
                    family inet {
                        address 192.168.1.2/30;
                    }
                    family inet6 {
                        address 2001:d30:1::3/126;
                    }
                }
            }
            lo0 {
                unit 106 {
                    family inet {
                        address 172.17.63.1/32;
                    }
                    family inet6 {
                        address 2001:5c0:1::1/128;
                    }
                }
            }
        }
        protocols {
            bgp {
                group toPE1 {
                    type external;
                    export direct;
                    peer-as 2500;
                    neighbor 192.168.1.1;
                }
            }
        }
        policy-options {
            policy-statement direct {
                term 1 {
                    from protocol direct;
                    then accept;
                }
            }
        }
        routing-options {
            rib inet6.0 {
                static {
                    route ::/0 next-hop 2001:d30:1::1;
                }
            }
            autonomous-system 777;
        }
    }

 

 Let’s we see troubleshoot on PE & CE router

root# run show route logical-system PE1

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

10.1.1.0/30        *[Direct/0] 01:11:28
                    > via fxp1.10
10.1.1.1/32        *[Local/0] 01:11:28
                      Local via fxp1.10
10.1.2.0/30        *[OSPF/10] 01:10:34, metric 2
                    > to 10.1.1.2 via fxp1.10
10.1.3.0/30        *[OSPF/10] 01:10:34, metric 3
                    > to 10.1.1.2 via fxp1.10
202.162.208.1/32   *[Direct/0] 01:11:25
                    > via lo0.15
202.162.208.7/32   *[OSPF/10] 01:10:34, metric 3
                    > to 10.1.1.2 via fxp1.10
202.162.208.252/32 *[OSPF/10] 01:10:34, metric 2
                    > to 10.1.1.2 via fxp1.10
202.162.208.254/32 *[OSPF/10] 01:10:34, metric 1
                    > to 10.1.1.2 via fxp1.10
224.0.0.5/32       *[OSPF/10] 01:11:33, metric 1
                      MultiRecv

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

202.162.208.7/32   *[RSVP/7] 01:10:32, metric 3
                    > to 10.1.1.2 via fxp1.10, label-switched-path toPE2

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

172.17.63.1/32     *[BGP/170] 01:11:07, localpref 100
                      AS path: 777 I
                    > to 192.168.1.2 via fxp1.100
172.17.68.1/32     *[BGP/170] 00:07:05, localpref 100, from 202.162.208.7
                      AS path: 911 I
                    > to 10.1.1.2 via fxp1.10, label-switched-path toPE2
192.168.1.0/30     *[Direct/0] 01:11:26
                    > via fxp1.100
                    [BGP/170] 01:11:07, localpref 100
                      AS path: 777 I
                    > to 192.168.1.2 via fxp1.100
192.168.1.1/32     *[Local/0] 01:11:26
                      Local via fxp1.100
192.168.1.100/32   *[Direct/0] 01:11:23
                    > via lo0.105
192.168.2.0/30     *[BGP/170] 00:07:05, localpref 100, from 202.162.208.7
                      AS path: I
                    > to 10.1.1.2 via fxp1.10, label-switched-path toPE2
192.168.2.100/32   *[BGP/170] 00:07:05, localpref 100, from 202.162.208.7
                      AS path: I
                    > to 10.1.1.2 via fxp1.10, label-switched-path toPE2

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

172.17.63.0/24     *[Static/5] 00:14:00
                    > to 192.168.1.2 via fxp1.110
172.17.68.77/32    *[BGP/170] 00:07:00, localpref 100, from 202.162.208.7
                      AS path: 1500 I
                    > to 10.1.1.2 via fxp1.10, label-switched-path toPE2
192.168.1.0/30     *[Direct/0] 00:14:02
                    > via fxp1.110
192.168.1.1/32     *[Local/0] 00:14:02
                      Local via fxp1.110
192.168.1.77/32    *[Direct/0] 00:14:02
                    > via lo0.115
192.168.2.0/30     *[BGP/170] 00:07:04, localpref 100, from 202.162.208.7
                      AS path: I
                    > to 10.1.1.2 via fxp1.10, label-switched-path toPE2
192.168.2.77/32    *[BGP/170] 00:07:04, localpref 100, from 202.162.208.7
                      AS path: I
                    > to 10.1.1.2 via fxp1.10, label-switched-path toPE2

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

0                  *[MPLS/0] 01:11:33, metric 1
                      Receive
1                  *[MPLS/0] 01:11:33, metric 1
                      Receive
2                  *[MPLS/0] 01:11:33, metric 1
                      Receive
16                 *[VPN/0] 01:11:31
                      to table vpn.inet.0, Pop
17                 *[VPN/0] 00:47:06
                      to table vpnv6.inet.0, Pop

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

2500:100:172.17.68.1/32
                   *[BGP/170] 01:10:13, localpref 100, from 202.162.208.7
                      AS path: 911 I
                    > to 10.1.1.2 via fxp1.10, label-switched-path toPE2
2500:100:192.168.2.0/30
                   *[BGP/170] 01:10:13, localpref 100, from 202.162.208.7
                      AS path: I
                    > to 10.1.1.2 via fxp1.10, label-switched-path toPE2
2500:100:192.168.2.100/32
                   *[BGP/170] 01:10:13, localpref 100, from 202.162.208.7
                      AS path: I
                    > to 10.1.1.2 via fxp1.10, label-switched-path toPE2
2500:666:172.17.68.77/32
                   *[BGP/170] 00:07:00, localpref 100, from 202.162.208.7
                      AS path: 1500 I
                    > to 10.1.1.2 via fxp1.10, label-switched-path toPE2
2500:666:192.168.2.0/30
                   *[BGP/170] 00:07:04, localpref 100, from 202.162.208.7
                      AS path: I
                    > to 10.1.1.2 via fxp1.10, label-switched-path toPE2
2500:666:192.168.2.77/32
                   *[BGP/170] 00:07:04, localpref 100, from 202.162.208.7
                      AS path: I
                    > to 10.1.1.2 via fxp1.10, label-switched-path toPE2

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

::ffff:202.162.208.7/128
                   *[RSVP/7] 01:10:32, metric 3
                    > to 10.1.1.2 via fxp1.10, label-switched-path toPE2

vpn.inet6.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

2001:5c0:1::/126   *[Static/5] 01:11:25
                    > to 2001:d30:1::3 via fxp1.100
2001:5c0:7::/126   *[BGP/170] 00:07:05, localpref 100, from 202.162.208.7
                      AS path: I
                    > to 10.1.1.2 via fxp1.10, label-switched-path toPE2
2001:d30:1::/126   *[Direct/0] 01:11:25
                    > via fxp1.100
2001:d30:1::1/128  *[Local/0] 01:11:25
                      Local via fxp1.100
2001:d30:1::100/128*[Direct/0] 01:11:23
                    > via lo0.105
2001:d30:7::/126   *[BGP/170] 00:07:05, localpref 100, from 202.162.208.7
                      AS path: I
                    > to 10.1.1.2 via fxp1.10, label-switched-path toPE2
2001:d30:7::700/128*[BGP/170] 00:07:05, localpref 100, from 202.162.208.7
                      AS path: I
                    > to 10.1.1.2 via fxp1.10, label-switched-path toPE2
fe80::/64          *[Direct/0] 01:11:25
                    > via fxp1.100
fe80::2aa:0:644e:4a02/128
                   *[Local/0] 01:11:25
                      Local via fxp1.100
fe80::2aa:ff:fe00:101/128
                   *[Direct/0] 01:11:23
                    > via lo0.105

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

2500:100:2001:5c0:7::/126
                   *[BGP/170] 01:10:13, localpref 100, from 202.162.208.7
                      AS path: I
                    > to 10.1.1.2 via fxp1.10, label-switched-path toPE2
2500:100:2001:d30:7::/126
                   *[BGP/170] 01:10:13, localpref 100, from 202.162.208.7
                      AS path: I
                    > to 10.1.1.2 via fxp1.10, label-switched-path toPE2
2500:100:2001:d30:7::700/128
                   *[BGP/170] 01:10:13, localpref 100, from 202.162.208.7
                      AS path: I
                    > to 10.1.1.2 via fxp1.10, label-switched-path toPE2

root# run show mpls lsp  logical-system PE1
Ingress LSP: 1 sessions
To              From            State Rt P     ActivePath       LSPname
202.162.208.7   202.162.208.1   Up     0 *                      toPE2
Total 1 displayed, Up 1, Down 0

Egress LSP: 1 sessions
To              From            State   Rt Style Labelin Labelout LSPname
202.162.208.1   202.162.208.7   Up       0  1 FF       3        - toPE1
Total 1 displayed, Up 1, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

root# run ping logical-system CE1 172.17.68.1 source 172.17.63.1
PING 172.17.68.1 (172.17.68.1): 56 data bytes
64 bytes from 172.17.68.1: icmp_seq=0 ttl=63 time=8.470 ms
64 bytes from 172.17.68.1: icmp_seq=1 ttl=63 time=3.902 ms
64 bytes from 172.17.68.1: icmp_seq=2 ttl=63 time=3.809 ms
64 bytes from 172.17.68.1: icmp_seq=3 ttl=63 time=3.737 ms
64 bytes from 172.17.68.1: icmp_seq=4 ttl=63 time=5.779 ms
64 bytes from 172.17.68.1: icmp_seq=5 ttl=63 time=4.181 ms
^C
— 172.17.68.1 ping statistics —
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max/stddev = 3.737/4.980/8.470/1.710 ms

root# …system CE1 2001:5c0:7::1 source 2001:5c0:1::1
PING6(56=40+8+8 bytes) 2001:d30:1::3 –> 2001:5c0:7::1
16 bytes from 2001:5c0:7::1, icmp_seq=0 hlim=63 time=15.334 ms
16 bytes from 2001:5c0:7::1, icmp_seq=1 hlim=63 time=4.490 ms
16 bytes from 2001:5c0:7::1, icmp_seq=2 hlim=63 time=4.573 ms
16 bytes from 2001:5c0:7::1, icmp_seq=3 hlim=63 time=7.387 ms
16 bytes from 2001:5c0:7::1, icmp_seq=4 hlim=63 time=4.463 ms
16 bytes from 2001:5c0:7::1, icmp_seq=5 hlim=63 time=4.147 ms
16 bytes from 2001:5c0:7::1, icmp_seq=6 hlim=63 time=6.445 ms
^C
— 2001:5c0:7::1 ping6 statistics —
8 packets transmitted, 7 packets received, 12% packet loss
round-trip min/avg/max/std-dev = 4.147/6.691/15.334/3.704 ms

 

 If you want to see all configuration download at this link 






















Get free blog up and running in minutes with Blogsome
Theme designed by Hadley Wickham