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.


Tidak ada komentar:

Posting Komentar