LAB 3 - OSPF

Assalamualaikum wr. wb.
Kali ini kita akan melakukan konfigurasi OSPF.
Buat yang lupa-lupa ingat atau belum pernah ingat sama sekali tentang OSPF saya akan mencoba untuk menjelaskannya secara ringkas.

OSPF (Open Shortest Path First) merupakan salah satu jenis routing protocol.
OSPF termasuk ke dalam routinOSPF akan memilih jalur berdasarkan bandwith.

Namun kali ini kita akan melakukan konfigurasi OSPF basic (multi area).



#Router 1
[admin@IDN_R1] > ip add pr
Flags: X - disabled, I - invalid, D - dynamic
 #   ADDRESS            NETWORK         INTERFACE
 0   ;;; R1toR2
     12.12.12.1/24      12.12.12.0      ether1
 1   ;;; R1toPC1
     192.168.1.1/24     192.168.1.0     ether2
 2   ;;; R1toPC2
     192.168.2.1/24     192.168.2.0     ether3
 3   1.1.1.1/32         1.1.1.1         loopback
[admin@IDN_R1] > routing ospf area
range  add  comment  disable  edit  enable  export  find  print  remove  set
[admin@IDN_R1] > routing ospf area print
Flags: X - disabled, I - invalid, * - default
 #    NAME                                                                           AREA-ID         TYPE    DEFAULT-COST
 0  * backbone                                                                       0.0.0.0         default
 1    area1                                                                          0.0.0.1         default
[admin@IDN_R1] > routing ospf network print
Flags: X - disabled, I - invalid
 #   NETWORK            AREA
 0   1.1.1.1/32         area1
 1   12.12.12.0/24      area1
 2   192.168.1.0/24     area1
 3   192.168.2.0/24     area1
[admin@IDN_R1] > ip route  print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 ADC  1.1.1.1/32         1.1.1.1         loopback                  0
 1 ADo  2.2.2.2/32                         12.12.12.2              110
 2 ADo  3.3.3.3/32                         12.12.12.2              110
 3 ADo  4.4.4.4/32                         12.12.12.2              110
 4 ADo  5.5.5.5/32                         12.12.12.2              110
 5 ADC  12.12.12.0/24      12.12.12.1      ether1                    0
 6 ADo  23.23.23.0/24                      12.12.12.2              110
 7 ADo  25.25.25.0/24                      12.12.12.2              110
 8 ADo  34.34.34.0/24                      12.12.12.2              110
 9 ADo  35.35.35.0/24                      12.12.12.2              110
10 ADC  192.168.1.0/24     192.168.1.1     ether2                    0
11 ADC  192.168.2.0/24     192.168.2.1     ether3                    0
12 ADo  192.168.3.0/24                     12.12.12.2              110
13 ADo  192.168.4.0/24                     12.12.12.2              110
14 ADo  192.168.58.0/24                    12.12.12.2              110
[admin@IDN_R1] >

#Router 2
[admin@IDN_R2] > ip add print
Flags: X - disabled, I - invalid, D - dynamic
 #   ADDRESS            NETWORK         INTERFACE
 0   2.2.2.2/32         2.2.2.2         loopback
 1   12.12.12.2/24      12.12.12.0      ether1
 2   23.23.23.2/24      23.23.23.0      ether2
 3   25.25.25.2/24      25.25.25.0      ether3
[admin@IDN_R2] > routing ospf area pr
Flags: X - disabled, I - invalid, * - default
 #    NAME                                                                                                                        AREA-ID         TYPE    DEFAULT-COST
 0  * backbone                                                                                                                    0.0.0.0         default
 1    area1                                                                                                                       0.0.0.1         default
[admin@IDN_R2] > routing ospf network pr
Flags: X - disabled, I - invalid
 #   NETWORK            AREA
 0   12.12.12.0/24      area1
 1   2.2.2.2/32         backbone
 2   25.25.25.0/24      backbone
[admin@IDN_R2] > ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 ADo  1.1.1.1/32                         12.12.12.1              110
 1 ADC  2.2.2.2/32         2.2.2.2         loopback                  0
 2 ADo  3.3.3.3/32                         25.25.25.5              110
 3 ADo  4.4.4.4/32                         25.25.25.5              110
 4 ADo  5.5.5.5/32                         25.25.25.5              110
 5 ADC  12.12.12.0/24      12.12.12.2      ether1                    0
 6 ADC  23.23.23.0/24      23.23.23.2      ether2                    0
 7  Do  23.23.23.0/24                      25.25.25.5              110
 8 ADC  25.25.25.0/24      25.25.25.2      ether3                    0
 9 ADo  34.34.34.0/24                      25.25.25.5              110
10 ADo  35.35.35.0/24                      25.25.25.5              110
11 ADo  192.168.1.0/24                     12.12.12.1              110
12 ADo  192.168.2.0/24                     12.12.12.1              110
13 ADo  192.168.3.0/24                     25.25.25.5              110
14 ADo  192.168.4.0/24                     25.25.25.5              110
15 ADo  192.168.58.0/24                    25.25.25.5              110
[admin@IDN_R2] >
#Router 3 
[admin@IDN_R3] > ip add pr
Flags: X - disabled, I - invalid, D - dynamic
 #   ADDRESS            NETWORK         INTERFACE
 0   23.23.23.3/24      23.23.23.0      ether2
 1   35.35.35.3/24      35.35.35.0      ether4
 2   3.3.3.3/32         3.3.3.3         loopback
 3   34.34.34.3/24      34.34.34.0      ether1
[admin@IDN_R3] > routing ospf area print
Flags: X - disabled, I - invalid, * - default
 #    NAME                                                                                                                        AREA-ID         TYPE    DEFAULT-COST
 0  * backbone                                                                                                                    0.0.0.0         default
 1    area2                                                                                                                       0.0.0.2         default
[admin@IDN_R3] > routing ospf network print
Flags: X - disabled, I - invalid
 #   NETWORK            AREA
 0   23.23.23.0/24      backbone
 1   34.34.34.0/24      area2
 2   35.35.35.0/24      backbone
 3   3.3.3.3/32         backbone
[admin@IDN_R3] > ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 ADo  1.1.1.1/32                         35.35.35.5              110
 1 ADo  2.2.2.2/32                         35.35.35.5              110
 2 ADC  3.3.3.3/32         3.3.3.3         loopback                  0
 3 ADo  4.4.4.4/32                         34.34.34.4              110
 4 ADo  5.5.5.5/32                         35.35.35.5              110
 5 ADo  12.12.12.0/24                      35.35.35.5              110
 6 ADC  23.23.23.0/24      23.23.23.3      ether2                    0
 7 ADo  25.25.25.0/24                      35.35.35.5              110
 8 ADC  34.34.34.0/24      34.34.34.3      ether1                    0
 9 ADC  35.35.35.0/24      35.35.35.3      ether4                    0
10 ADo  192.168.1.0/24                     35.35.35.5              110
11 ADo  192.168.2.0/24                     35.35.35.5              110
12 ADo  192.168.3.0/24                     34.34.34.4              110
13 ADo  192.168.4.0/24                     34.34.34.4              110
14 ADo  192.168.58.0/24                    35.35.35.5              110
[admin@IDN_R3] >

#Router 4
[admin@IDN_R4] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
 #   ADDRESS            NETWORK         INTERFACE
 0   34.34.34.4/24      34.34.34.0      ether1
 1   4.4.4.4/32         4.4.4.4         loopback
 2   192.168.3.1/24     192.168.3.0     ether2
 3   192.168.4.1/24     192.168.4.0     ether3
[admin@IDN_R4] > routing ospf area print
Flags: X - disabled, I - invalid, * - default
 #    NAME                                                                                                                        AREA-ID         TYPE    DEFAULT-COST
 0  * backbone                                                                                                                    0.0.0.0         default
 1    area2                                                                                                                       0.0.0.2         default
[admin@IDN_R4] > routing ospf network  print
Flags: X - disabled, I - invalid
 #   NETWORK            AREA
 0   34.34.34.0/24      area2
 1   192.168.3.0/24     area2
 2   192.168.4.0/24     area2
 3   4.4.4.4/32         area2
[admin@IDN_R4] > ip
accounting  arp          dhcp-relay   dns       hotspot  neighbor  pool   route    settings  socks  tftp          upnp
address     dhcp-client  dhcp-server  firewall  ipsec    packing   proxy  service  smb       ssh    traffic-flow  export
[admin@IDN_R4] > routing ospf area print
Flags: X - disabled, I - invalid, * - default
 #    NAME                                                                                                                        AREA-ID         TYPE    DEFAULT-COST
 0  * backbone                                                                                                                    0.0.0.0         default
 1    area2                                                                                                                       0.0.0.2         default
[admin@IDN_R4] > ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 ADo  1.1.1.1/32                         34.34.34.3              110
 1 ADo  2.2.2.2/32                         34.34.34.3              110
 2 ADo  3.3.3.3/32                         34.34.34.3              110
 3 ADC  4.4.4.4/32         4.4.4.4         loopback                  0
 4 ADo  5.5.5.5/32                         34.34.34.3              110
 5 ADo  12.12.12.0/24                      34.34.34.3              110
 6 ADo  23.23.23.0/24                      34.34.34.3              110
 7 ADo  25.25.25.0/24                      34.34.34.3              110
 8 ADC  34.34.34.0/24      34.34.34.4      ether1                    0
 9 ADo  35.35.35.0/24                      34.34.34.3              110
10 ADo  192.168.1.0/24                     34.34.34.3              110
11 ADo  192.168.2.0/24                     34.34.34.3              110
12 ADC  192.168.3.0/24     192.168.3.1     ether2                    0
13 ADC  192.168.4.0/24     192.168.4.1     ether3                    0
14 ADo  192.168.58.0/24                    34.34.34.3              110
[admin@IDN_R4] >

#Router 5
[admin@IDN_R5] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
 #   ADDRESS            NETWORK         INTERFACE
 0   25.25.25.5/24      25.25.25.0      ether3
 1   35.35.35.5/24      35.35.35.0      ether4
 2   5.5.5.5/32         5.5.5.5         loopback
 3   192.168.58.1/24    192.168.58.0    local
[admin@IDN_R5] > ip dhcp-server print
Flags: X - disabled, I - invalid
 #   NAME                                  INTERFACE                                  RELAY           ADDRESS-POOL                                  LEASE-TIME ADD-ARP
 0   dhcp1                                 local                                                      dhcp_pool1                                    3d
[admin@IDN_R5] > routing ospf area print
Flags: X - disabled, I - invalid, * - default
 #    NAME                                                                                                                        AREA-ID         TYPE    DEFAULT-COST
 0  * backbone                                                                                                                    0.0.0.0         default
[admin@IDN_R5] > routing ospf network  print
Flags: X - disabled, I - invalid
 #   NETWORK            AREA
 0   25.25.25.0/24      backbone
 1   35.35.35.0/24      backbone
[admin@IDN_R5] > ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 ADo  1.1.1.1/32                         25.25.25.2              110
 1 ADo  2.2.2.2/32                         25.25.25.2              110
 2 ADo  3.3.3.3/32                         35.35.35.3              110
 3 ADo  4.4.4.4/32                         35.35.35.3              110
 4 ADC  5.5.5.5/32         5.5.5.5         loopback                  0
 5 ADo  12.12.12.0/24                      25.25.25.2              110
 6 ADo  23.23.23.0/24                      35.35.35.3              110
 7 ADC  25.25.25.0/24      25.25.25.5      ether3                    0
 8 ADo  34.34.34.0/24                      35.35.35.3              110
 9 ADC  35.35.35.0/24      35.35.35.5      ether4                    0
10 ADo  192.168.1.0/24                     25.25.25.2              110
11 ADo  192.168.2.0/24                     25.25.25.2              110
12 ADo  192.168.3.0/24                     35.35.35.3              110
13 ADo  192.168.4.0/24                     35.35.35.3              110
14 ADC  192.168.58.0/24    192.168.58.1    local                     0
[admin@IDN_R5] > 

Untuk PC5, PC6, PC7, PC8 di set sebagai dhcp client.
Untuk tes koneksi, lakukan ping antar pc yang sesama ataupun yang berbeda area.

No comments:

Post a Comment

Tak ada gading yang tak retak!!
Komentar dan masukan yang bersifat membangun selalu kami harapkan, demi kebaikan bersama.

Pages