Cisco | OSPF and Redistribute
Berikut Konfigurasinya
Router R1
hostname R1
interface Loopback1
ip address 1.1.1.1 255.255.255.255
exit
interface gi0/0
ip address 192.168.152.254 255.255.255.0
exit
interface gi0/1
ip address 10.0.0.1 255.255.255.252
ip ospf 1 area 0
exit
router ospf 1
default-information originate
exit
ip route 0.0.0.0 0.0.0.0 192.168.152.2
hostname R2
interface Loopback1
ip address 2.2.2.2 255.255.255.255
!
interface gi0/0
ip address 10.0.0.2 255.255.255.252
ip ospf 1 area 0
no shut
exit
interface gi0/1
ip address 172.16.10.254 255.255.255.0
no shut
exit
router ospf 1
redistribute connected
exit
Verifikasi: Seharunya dari komputer sdh bisa internet
Skenario -2
interface Loopback1
ip address 10.10.10.10 255.255.255.255
exit
interface gi0/0
ip address 192.168.152.254 255.255.255.0
exit
interface gi0/1
ip address 10.0.0.1 255.255.255.252
ip ospf 1 area 0
exit
router ospf 1
default-information originate
exit
ip route 0.0.0.0 0.0.0.0 192.168.152.2
hostname R2
interface Loopback1
ip address 2.2.2.2 255.255.255.255
!
interface gi0/0
ip address 10.0.0.2 255.255.255.252
ip ospf 1 area 0
no shut
exit
interface gi0/1
ip address 172.16.10.254 255.255.255.0
ip ospf 1 area 1
no shut
exit
hostname R3
interface Loopback1
ip address 3.3.3.3 255.255.255.255
!
interface gi0/0
ip address 10.0.1.2 255.255.255.252
ip ospf 1 area 1
no shut
exit
interface gi0/1
ip address 172.16.10.254 255.255.255.0
no shut
exit
router ospf 1
redistribute connected
exit
Selesai,
Harusnya dari user/komputer sdh bisa akses intenet, dan dari R3 dan komputerbs ping ke 10.10.10.10 (ip loopack R1)
Posting Komentar untuk "Cisco | OSPF and Redistribute"