Tuesday 16 August 2016

JUNIPER RIP,OSPF,ISIS,Ebgp,Ibgp

Serem juga nih judul, kaya orang bener aja dah gw,

cuma siapa takut dengan judul di atas, jika kita ingin mempelajari nya hehehhehehe, sekilas dari judul di atas memang menakutkan, tapi kalau sudah terjun di dalam nya sungguh di luar dugaan. berikut topologi yang akan kita buat. dan yang terpenting ga perlu bayar mahal buat belajar heheheheh, padahal ane bayar mahal buat belajarnya hehehhehehe.


dan berikut tools perlengkapan nya:
1.tinggal sedot vmware disini
2.tinggal sedot pipe disini
3.secure crt disini kalau mau pake putty silahkan monggo.

yang paling penting jgn tanya ane cara instal nya, gw harap kalau cuma next next aja udh pada bisa heheheh.
install dahulu ke dulu semua nya ya,ane pulang kerja dahulu nanti di sambung lagi ya....
========================================================================
mari kita sambung lagi, apa sudah di install program di atas? jika sudah langkah selanjutnya
silahkan sedot disini untuk olive junipernya.
langkah 1
extract dahulu olive junipernya


tinggal double clik aja gan r1 yang ane tandain di gambar, dan akan kebawa ke vmware yang ane kasih di atas.
nah gambarnya kaya di bawah



   bisa kan gan hehehhehehe, cuma belum kelar nih, ada beberapa step lagi kalau mau junipernya pisa running, klik kana pada r1 seperti gambar di bawah. dan klik serial port dan copy \\.\pipe\serial1.




















masukan \\.\pipe\serial1 ke dalam pipe proxy yang di atas jg gw sertain. dan berikan angka 1 di port dan clik add.

 sampai sini apakah masih ada yang binggung? kalau binggung siap siap pegangan yang keras
ditembok hehehheheh.
dah ah istirahat lagi dl ya ntar di sambung lagi.
=======================================================================

bagaimana apakah sudah ada yang bisa sampai sini? atau blm mengerti?
ok kita lanjutkan saja dan saya angap sudah pada bisa kalau hanya sampai di sini, selanjut nya coba di start r1 yang berada di vmware nya.... dan buka secure crt yang saya berikan di atas, atau buka putty yang anda punya, dan ketikan ip berikut 127.0.0.1 dengan port 1, tadaaa saat ini anda sudah mempunyai router juniper dengan menggunakan logikal router,
 jaringan lemot oi, nanti di sambung lagi deh ya kalau udh ga lemot
========================================================================

hmmmm coba update lagi nih biar kelar walaupun pelan pelan yang penting sampe
okk okk okk mudah mudahan bahasa yang saya tuliskan dapat di mengerti,
lanjut nih ya gan....
setelah sudah bisa masuk ke secure crt di atas saat nya kita ngprek nih router ga hehehhehe,
di atas di minta login coba masukan login root dan password root123. tadaaaa, anda bersiap siap  menjadi network enginer, WEW sotoy nih gw heheheheh.
langsung aja gan kita configur....kita mulai dari RIP





ketikan cli lalu configur








perlu di ingat seblum melakukan konfigurasi di bawah anda sudah harus mengerti namanya logical router, karena saya tidak membahas logical router tersebut.
===========================RIP===========================================
[edit]
root# show logical-routers RIP
interfaces {
    em2 {
        unit 12 {
            vlan-id 12;
            family inet {
                address 172.100.10.2/30;
            }
        }
        unit 13 {
            vlan-id 13;
            family inet {
                address 172.100.10.5/30;
            }
        }
    }
    lo0 {
        unit 9 {
            family inet {
                address 1.1.1.1/32;
            }
        }
    }
}
protocols {        
    rip {          
        group RIP-R5-R6 {
            export BOCORIN_ROUTING;
            neighbor em2.12;
            neighbor em2.13;
            neighbor lo0.9;
        }          
    }              
}                  
policy-options {   
    policy-statement BOCORIN_ROUTING {
        term RIP { 
            from protocol rip;
            then accept;
        }          
        term DIRECT {
            from protocol direct;
            then accept;
        }          
    }              
}     
==============================ROUTER R5================================

berikut configurasi logical router di R5

root# show logical-routers R5    
interfaces {
    em1 {
        unit 9 {
            vlan-id 9;
            family inet {
                address 10.100.10.41/30;
            }
            family iso;
        }
        unit 11 {
            vlan-id 11;
            family inet {
                address 10.100.10.49/30;
            }
            family iso;
        }
        unit 12 {
            vlan-id 12;
            family inet {
                address 172.100.10.1/30;
            }
        }
    }
    lo0 {          
        unit 5 {
            family inet {
                address 10.100.1.5/32;
            }
            family iso {
                address 49.0001.1001.0010.0500.00;
            }
        }
    }
}
protocols {
    isis {
        export [ BOCORIN_ROUTING ISIS ];
        interface em1.9 {
            level 2 disable;
        }
        interface em1.11 {
            level 2 disable;
        }
        interface lo0.5 {
            level 2 {
                disable;
                passive;
            }
        }
    }
    rip {
        group RIP-R5-R6 {
            export [ BOCORIN_ROUTING ISIS ];
            neighbor em1.12;
            neighbor lo0.5;
        }
    }
}
policy-options {
    policy-statement BOCORIN_ROUTING {
        term RIP {
            from protocol rip;
            then accept;
        }
        term DIRECT {
            from protocol direct;
            then accept;
        }
    }
    policy-statement ISIS {
        term isis {
            from protocol isis;
            then accept;
        }
        term DIRECT {
            from protocol direct;
            then accept;
        }
    }
}          
=============================ROUTER R6=================================
root# show logical-routers R6   
interfaces {
    em1 {
        unit 10 {
            vlan-id 10;
            family inet {
                address 10.100.10.46/30;
            }
            family iso;
        }
        unit 13 {
            vlan-id 13;
            family inet {
                address 172.100.10.6/30;
            }
        }
    }
    em2 {
        unit 11 {
            vlan-id 11;
            family inet {
                address 10.100.10.50/30;
            }
            family iso;
        }          
        unit 17 {
            vlan-id 17;
            family inet {
                address 172.100.1.14/30;
                address 172.16.1.14/30;
            }
        }
        unit 18 {
            vlan-id 18;
            family inet {
                address 172.100.1.18/30;
                address 172.16.1.18/30;
            }
        }
    }
    lo0 {
        unit 6 {
            family inet {
                address 10.100.1.6/32;
            }
            family iso {
                address 49.0001.1001.0010.0600.00;
            }      
        }
    }
}
protocols {
    bgp {
        export [ BGP BOCORIN_ROUTING ISIS ];
        group EXTERNAL1 {
            type external;
            neighbor 172.16.1.13 {
                peer-as 65431;
            }
        }
        group EXTERNAL2 {
            type external;
            export [ BGP BOCORIN_ROUTING ISIS ];
            neighbor 172.16.1.17 {
                peer-as 65431;
            }
        }
    }
    isis {
        export [ BOCORIN_ROUTING ISIS BGP ];
        interface em1.10 {
            level 2 disable;
        }
        interface em2.11 {
            level 2 disable;
        }
        interface lo0.6 {
            level 2 {
                disable;
                passive;
            }
        }
    }
    rip {
        group RIP-R5-R6 {
            export [ BOCORIN_ROUTING ISIS BGP ];
            neighbor em1.13;
            neighbor lo0.6;
        }
    }
}
policy-options {
    policy-statement BGP {
        term bgp1 {
            from protocol bgp;
            then accept;
        }
        term DIRECT {
            from protocol direct;
            then accept;
        }
    }
    policy-statement BOCORIN_ROUTING {
        term RIP {
            from protocol rip;
            then accept;
        }
        term DIRECT {
            from protocol direct;
            then accept;
        }
    }
    policy-statement ISIS {
        term isis {
            from protocol isis;
            then accept;
        }          
        term DIRECT {
            from protocol direct;
            then accept;
        }
    }
}
routing-options {
    autonomous-system 54321;
}

========================================ROUTER R4======================
root# show logical-routers R4   
interfaces {
    em2 {
        unit 7 {
            vlan-id 7;
            family inet {
                address 10.100.10.34/30;
            }
            family iso;
        }
        unit 8 {
            vlan-id 8;
            family inet {
                address 10.100.10.37/30;
            }
            family iso;
        }
        unit 9 {
            vlan-id 9;
            family inet {
                address 10.100.10.42/30;
            }
            family iso;
        }
        unit 10 {  
            vlan-id 10;
            family inet {
                address 10.100.10.45/30;
            }
            family iso;
        }
    }
    lo0 {
        unit 4 {
            family inet {
                address 10.100.1.4/32;
            }
            family iso {
                address 49.0001.1001.0010.0400.00;
                address 49.0002.1001.0010.0400.00;
            }
        }
    }
}
protocols {
    isis {
        export [ ISIS ISIS1 ];
        interface em2.7 {
            level 1 disable;
        }
        interface em2.8 {
            level 1 disable;
        }
        interface em2.9 {
            level 2 disable;
        }
        interface em2.10 {
            level 2 disable;
        }
        interface lo0.4 {
            passive;
            level 1 disable;
            level 2 disable;
        }
    }
}
policy-options {
    policy-statement ISIS {
        term isis1 {
            from protocol isis;
            then accept;
        }
        term DIRECT {
            from protocol direct;
            then accept;
        }
    }
    policy-statement ISIS1 {
        term isis1 {
            from protocol isis;
            then accept;
        }
        term DIRECT {
            from protocol direct;
            then accept;
        }
    }
}
=================================ROUTER R3=============================
root# show logical-routers R3   
interfaces {
    em1 {
        unit 6 {
            vlan-id 6;
            family inet {
                address 10.100.10.29/30;
            }
            family iso;
        }
        unit 7 {
            vlan-id 7;
            family inet {
                address 10.100.10.33/30;
            }
            family iso;
        }
    }
    em2 {
        unit 4 {
            vlan-id 4;
            family inet {
                address 10.100.10.22/30;
            }
        }          
    }
    lo0 {
        unit 3 {
            family inet {
                address 10.100.1.3/32;
            }
            family iso {
                address 49.0002.1001.0010.0300.00;
            }
        }
    }
}
protocols {
    isis {
        export [ ISIS OSPF0 ];
        interface em1.6 {
            level 1 disable;
        }
        interface em1.7 {
            level 1 disable;
        }
        interface lo0.3 {
            level 1 {
                disable;
                passive;
            }
        }
    }
    ospf {
        export [ OSPF0 ISIS ];
        area 0.0.0.0 {
            interface em2.4;
            interface em1.6;
            interface lo0.3 {
                passive;
            }
        }
    }
}
policy-options {
    policy-statement ISIS {
        term isis1 {
            from protocol isis;
            then accept;
        }
        term DIRECT {
            from protocol direct;
            then accept;
        }
    }
    policy-statement OSPF0 {
        term ospf0 {
            from protocol ospf;
            then accept;
        }
        term DIRECT {
            from protocol direct;
            then accept;
        }
    }
}

===============================ROUTER R7===============================
root# show logical-routers R7   
interfaces {
    em1 {
        unit 8 {
            vlan-id 8;
            family inet {
                address 10.100.10.38/30;
            }
            family iso;
        }
        unit 15 {
            vlan-id 15;
            family inet {
                address 172.16.1.5/30;
            }
        }
        unit 21 {
            vlan-id 21;
            family inet {
                address 10.100.10.54/30;
            }
        }
        unit 22 {
            vlan-id 22;
            family inet {
                address 172.16.1.25/30;
            }
        }
    }
    em2 {
        unit 5 {
            vlan-id 5;
            family inet {
                address 10.100.10.26/30;
            }
        }
        unit 6 {
            vlan-id 6;
            family inet {
                address 10.100.10.30/30;
            }
            family iso;
        }
    }
    lo0 {
        unit 7 {
            family inet {
                address 10.100.1.7/32;
            }
            family iso {
                address 49.0002.1001.0010.0700.00;
            }
        }
    }
}
protocols {
    bgp {
        group EXTERNAL1 {
            type external;
            export [ ISIS OSPF BOCORIN_BGP ];
            neighbor 172.16.1.26 {
                peer-as 65432;
            }
        }
        group EXTERNAL2 {
            type external;
            export [ BOCORIN_BGP OSPF ISIS ];
            neighbor 172.16.1.6 {
                peer-as 65432;
            }
        }          
    }
    isis {
        export [ ISIS OSPF BOCORIN_BGP ];
        interface em1.8 {
            level 1 disable;
        }
        interface em2.6 {
            level 1 disable;
        }
        interface lo0.7 {
            passive;
            level 1 disable;
        }
    }
    ospf {
        export [ OSPF ISIS BOCORIN_BGP ];
        area 0.0.0.0 {
            interface em2.5;
            interface em2.21;
            interface em2.6;
        }
    }
}                  
policy-options {
    policy-statement BOCORIN_BGP {
        term DIRECT {
            from protocol direct;
            then accept;
        }
    }
    policy-statement ISIS {
        term isis {
            from protocol isis;
            then accept;
        }
        term DIRECT {
            from protocol direct;
            then accept;
        }
    }
    policy-statement OSPF {
        term ospf {
            from protocol ospf;
            then accept;
        }
        term DIRECT {
            from protocol direct;
            then accept;
        }
    }
}
routing-options {
    autonomous-system 54321;
}

==================================ROUTER R2============================
root# show logical-routers R2   
interfaces {
    em1 {
        unit 3 {
            vlan-id 3;
            family inet {
                address 10.100.10.17/30;
            }
        }
        unit 4 {
            vlan-id 4;
            family inet {
                address 10.100.10.21/30;
            }
        }
    }
    em2 {
        unit 1 {
            vlan-id 1;
            family inet {
                address 10.100.10.10/30;
            }
        }
        unit 21 {
            vlan-id 21;
            family inet {
                address 10.100.10.53/30;
            }
        }
    }
    lo0 {
        unit 2 {
            family inet {
                address 10.100.1.2/32;
            }
        }
    }
}
protocols {
    ospf {
        export OSPF;
        area 0.0.0.0 {
            interface em1.3;
            interface em1.4;
            interface em2.21;
            interface lo0.2 {
                passive;
            }      
        }
        area 0.0.0.1 {
            interface em2.1;
        }
    }
}
policy-options {
    policy-statement OSPF {
        term ospf {
            from protocol ospf;
            then accept;
        }
        term DIRECT {
            from protocol direct;
            then accept;
        }
    }
}

================================ROUTER R8==============================
root# show logical-routers R8   
interfaces {
    em1 {
        unit 5 {
            vlan-id 5;
            family inet {
                address 10.100.10.25/30;
            }
        }
        unit 14 {
            vlan-id 14;
            family inet {
                address 172.16.1.1/30;
            }
        }
        unit 31 {
            vlan-id 31;
            family inet {
                address 172.16.1.21/30;
            }
        }
    }
    em2 {
        unit 2 {
            vlan-id 2;
            family inet {
                address 10.100.10.6/30;
            }
        }
        unit 3 {
            vlan-id 3;
            family inet {
                address 10.100.10.18/30;
            }
        }
    }
    lo0 {
        unit 8 {
            family inet {
                address 10.100.1.8/32;
            }
        }
    }
}
protocols {
    bgp {
        group EXTERNAL1 {
            type external;
            export [ BOCORIN_BGP OSPF ];
            neighbor 172.16.1.22 {
                peer-as 65432;
            }
        }
        group EXTERNAL2 {
            type external;
            neighbor 172.16.1.2 {
                peer-as 65432;
            }
        }
    }
    ospf {
        export [ OSPF BOCORIN_BGP ];
        area 0.0.0.0 {
            interface em2.3;
            interface em1.5;
            interface lo0.8 {
                passive;
            }
        }
        area 0.0.0.1 {
            interface em2.2;
        }
    }
}
policy-options {
    policy-statement BOCORIN_BGP {
        term DIRECT {
            from protocol bgp;
            then accept;
        }
    }
    policy-statement OSPF {
        term ospf0 {
            from protocol ospf;
            then accept;
        }
        term DIRECT {
            from protocol direct;
            then accept;
        }
    }
}
routing-options {
    autonomous-system 54321;
}

==============================ROUTER R1================================
root# show logical-routers R1   
interfaces {
    em1 {
        unit 1 {
            vlan-id 1;
            family inet {
                address 10.100.10.9/30;
            }
        }
        unit 2 {
            vlan-id 2;
            family inet {
                address 10.100.10.5/30;
            }
        }
    }
    lo0 {
        unit 1 {
            family inet {
                address 10.100.10.1/32;
            }
        }
    }
}
protocols {        
    ospf {
        area 0.0.0.1 {
            interface em1.1;
            interface em1.2;
            interface lo0.1 {
                passive;
            }
        }
    }
}
policy-options {
    policy-statement BOCORIN_ROUTE {
        term ospf1 {
            from protocol ospf;
            then accept;
        }
        term DIRECT {
            from protocol direct;
            then accept;
        }
    }
}

===========================ROUTER P1===================================
root# show logical-routers P1   
interfaces {
    em1 {
        unit 16 {
            vlan-id 16;
            family inet {
                address 172.16.1.10/30;
            }
        }
    }
    em2 {
        unit 14 {
            vlan-id 14;
            family inet {
                address 172.16.1.2/30;
            }
        }
        unit 31 {
            vlan-id 31;
            family inet {
                address 172.16.1.22/30;
            }
        }
    }
    lo0 {          
        unit 11 {
            family inet {
                address 150.150.0.1/32;
            }
        }
    }
}
protocols {
    bgp {
        group EXTERNAL1 {
            type external;
            neighbor 172.16.1.1 {
                peer-as 54321;
            }
        }
        group EXTERNAL2 {
            type external;
            neighbor 172.16.1.21 {
                peer-as 54321;
            }
        }
        group INTERNAL1 {
            type internal;
            neighbor 172.16.1.9 {
                peer-as 65432;
            }
        }
    }
}
routing-options {
    autonomous-system 65432;
}
===================================ROUTER P2============================
root# show logical-routers P2   
interfaces {
    em2 {
        unit 15 {
            vlan-id 15;
            family inet {
                address 172.16.1.6/30;
            }
        }
        unit 16 {
            vlan-id 16;
            family inet {
                address 172.16.1.9/30;
            }
        }
        unit 22 {
            vlan-id 22;
            family inet {
                address 172.16.1.26/30;
            }
        }
    }
    lo0 {
        unit 12 {
            family inet {
                address 150.150.0.2/32;
            }
        }
    }
}
protocols {
    bgp {
        group EXTERNAL1 {
            type external;
            export BOCORIN_BGP;
            neighbor 172.16.1.5 {
                peer-as 54321;
            }
        }
        group EXTERNAL2 {
            type external;
            export BOCORIN_BGP;
            neighbor 172.16.1.25 {
                peer-as 54321;
            }
        }
        group INTERNAL {
            type internal;
            export BOCORIN_BGP;
            neighbor 172.16.1.10 {
                peer-as 65432;
            }
        }
    }
}
policy-options {
    policy-statement BOCORIN_BGP {
        term DIRECT {
            from protocol direct;
            then accept;
        }
    }
}
routing-options {
    autonomous-system 65432;
}







jika ingin melihat route dari ospf dari semua router ketikan
root> show route protocol ospf logical-router all , salah satu contohnya di bawah






















No comments:

Post a Comment