Konfigurasi Routing OSPF
Konfigurasi Routing OSPF
Konfigurasi Routing OSPF
==================================
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Konfigurasi interface
===================================
Router(config)#hostname R1
R1(config)#int g0/1
R1(config-if)#ip add 192.168.0.1 255.255.255.0
R1(config-if)#no sh
R1(config)#int g0/0
R1(config-if)#ip add 30.56.164.1 255.255.255.252
R1(config-if)#no sh
R1(config-if)#ex
Validasi OSPF
===================================
R1#sh ip pr
R1#sh ip ro
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
Router R2
==================================
Konfigurasi interface
===================================
Router(config)#hostname R1
R1(config)#int g0/1
R1(config-if)#ip add 110.200.200.1 255.255.255.248
R1(config-if)#no sh
R1(config)#int g0/0
R1(config-if)#ip add 30.56.164.2 255.255.255.252
R1(config-if)#no sh
R2(config-if)#ex
Validasi OSPF
===================================
R2#sh ip pr
R2#sh ip ro
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
R2#