Sabtu, 16 April 2016

Lab2. OSPF



Objective :
·        Mempelajari cara mengkonfigurasi routing protocol OSPF
·        Mendeskripsikan berbagai type area yang dimiliki oleh OSPF
·        Mempelajari cara distribusi routing protocol lain kedalam OSPF

Topologi Lab :


Metoda Lab :
  • Lanjutan Lab 1
  • Menggunakan 4 buah router logical
  • Konfigure R4 dan R1
  • Redistribute RIP kedalam OSPF
Konfigurasi Lab :

logical-routers {
    R1 {
        interfaces {
            em0 {
                unit 12 {
                    vlan-id 12;
                    family inet {
                        address 12.12.12.1/24;
                    }
                }
            }
            lo0 {
                unit 0 {
                    family inet {
                        address 1.1.1.1/32;
                    }
                }
            }
        }
        protocols {
            ospf {
                area 0.0.0.0 {
                    interface em0.12;
                    interface lo0.0;
                }
            }
        }
    }              
    R2 {
        interfaces {
            em0 {
                unit 23 {
                    vlan-id 23;
                    family inet {
                        address 23.23.23.2/24;
                    }
                }
            }
            em1 {
                unit 12 {
                    vlan-id 12;
                    family inet {
                        address 12.12.12.2/24;
                    }
                }
            }
            lo0 {
                unit 1 {
                    family inet {
                        address 2.2.2.2/32;
                    }
                }
            }
        }
        protocols {
            ospf {
                area 0.0.0.0 {
                    interface em1.12;
                }
                area 0.0.0.1 {
                    interface lo0.1;
                    interface em0.23;
                }
            }
        }
    }
    R3 {
        interfaces {
            em1 {
                unit 23 {
                    vlan-id 23;
                    family inet {
                        address 23.23.23.3/24;
                    }
                }
            }
            lo0 {
                unit 2 {
                    family inet {
                        address 3.3.3.3/32;
                    }
                }
            }
        }
        protocols {
            ospf {
                area 0.0.0.1 {
                    interface lo0.2;
                    interface em1.23;
                }
            }
        }
    }
}
interfaces {
    em0 {
        vlan-tagging;
    }
    em1 {
        vlan-tagging;
    }
}

1.      Konfigure link R1-R4

root# run show configuration logical-routers R4
interfaces {
    em0 {
        unit 14 {
            vlan-id 14;
            family inet {
                address 14.14.14.4/24;
            }
        }
    }
    lo0 {
        unit 3 {
            family inet {
                address 4.4.4.4/32;
            }
        }
    }
}

[edit logical-routers R1]
root# show    
interfaces {
    em1 {
        unit 14 {
            vlan-id 14;
            family inet {
                address 14.14.14.1/24;
            }
        }
    }

Verifikasi : pastikan bisa ping point-to-point

2.      Konfigure routing protocol RIP
R1
---
protocols {   
    rip {
        group rip-group {
            neighbor em1.14;
        }
    }
}

R4
---
protocols {
    rip {
        group rip-group {
            neighbor em0.14;
        }
    }              
}

Verifikasi: pastikan routing rip telah terbentuk

3.      Redistribute RIP ke OSPF dan vice-versa

R1
---
protocols {
    ospf {
        export BOCORKAN_ROUTING;
        area 0.0.0.0 {
            interface em0.12;
            interface lo0.0;
        }
    }
    rip {
        group rip-group {
            export [ BOCORKAN_ROUTING BOCORKAN_LOOPBACK ];
            neighbor em1.14;
        }
    }
}
policy-options {
    policy-statement BOCORKAN_LOOPBACK {
        term LOOPBACK {
            from protocol direct;
            then accept;
        }
    }              
    policy-statement BOCORKAN_ROUTING {
        term BOCORKAN_RIP {
            from protocol rip;
            then accept;
        }
        term BOCORKAN_OSPF {
            from protocol ospf;
            then accept;
        }
    }
}

R4
---
protocols {
    rip {
        group rip-group {
            export [ BOCORKAN_ROUTING BOCORKAN_LOOPBACK ];
            neighbor em0.14;
        }
    }              
}
policy-options {
    policy-statement BOCORKAN_LOOPBACK {
        term LOOPBACK {
            from protocol direct;
            then accept;
        }
    }
    policy-statement BOCORKAN_ROUTING {
        term BOCORKAN_RIP {
            from protocol rip;
            then accept;
        }
    }
}

Verifikasi: Pastikan semua loopback dapat di ping.


1 komentar:

  1. MestiQQ Adalah perusahaan judi online KELAS DUNIA ber-grade A

    Sudah saatnya Pencinta POKER Bergabung bersama kami dengan Pemain - Pemain RATING-A

    Hanya dengan MINIMAL DEPOSIT RP. 10.000 anda sudah bisa bermain di semua games.

    Kini terdapat 8 permainan yang hanya menggunakan 1 User ID & hanya dalam 1 website.
    ( POKER, DOMINO99, ADU-Q, BANDAR POKER, BANDARQ, CAPSA SUSUN, SAKONG ONLINE, BANDAR66 )

    PROSES DEPOSIT DAN WITHDRAWAL CEPAT Dan AMAN TIDAK LEBIH DARI 2 MENIT.

    100% tanpa robot, 100% Player VS Player.
    Live Chat Online 24 Jam Dan Dilayani Oleh Customer Service Profesional.

    Segera DAFTARKAN diri anda dan Coba keberuntungan anda bersama MestiQQ
    ** Register/Pendaftaran : WWW-MestiQQ-POKER
    Jadilah Milionare Sekarang Juga Hanya di MestiQQ ^^

    Untuk Informasi lebih lanjut silahkan Hubungi Customer Service kami :
    BBM : 2C2EC3A3
    WA: +855966531715
    SKYPE : mestiqqcom@gmail.com

    BalasHapus