Konfigurasi OSPF CISCO




Berikut aku tuliskan konfigurasi OSPF CISCO secara sederhana menggunkan 3 router dengn IP static

1. PC 0, IP : 172.16.0.2/24, GW:172.16.0.1
2. Router 0 :
Router#sh run
Building configuration...

Current configuration : 900 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2911/K9 sn FTX1524000000000000
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
ip address 10.10.10.1 255.255.255.252
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 10.20.20.1 255.255.255.252
duplex auto
speed auto
!
interface GigabitEthernet0/2
ip address 172.16.0.1 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
network 10.10.10.0 0.0.0.3 area 0
network 10.20.20.0 0.0.0.3 area 0
network 172.0.0.0 0.255.255.255 area 1
!
ip classless
!
ip flow-export version 9
!
!
!
no cdp run
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end


Router#

3. PC 1, IP : 172.16.1.2/24, GW:172.16.1.1
4. Router 1 
Router1#sh run
Building configuration...

Current configuration : 891 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router1
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2911/K9 sn FTX15240000000000000000
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
ip address 10.10.10.2 255.255.255.252
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 10.30.30.1 255.255.255.252
duplex auto
speed auto
!
interface GigabitEthernet0/2
ip address 172.16.1.1 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
router ospf 100
log-adjacency-changes
network 172.16.1.0 0.0.0.255 area 2
network 10.10.10.0 0.0.0.3 area 0
network 10.30.30.0 0.0.0.3 area 0
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end


Router1#

5. PC 2, IP:172.16.2.2/24 GW:172.16.2.1
6. Router 3
Router2#sh run
Building configuration...

Current configuration : 865 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router2
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2911/K9 sn FTX152400000000000000000000
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
ip address 10.30.30.2 255.255.255.252
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 10.20.20.2 255.255.255.252
duplex auto
speed auto
!
interface GigabitEthernet0/2
ip address 172.16.2.1 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
router ospf 100
log-adjacency-changes
network 172.0.0.0 0.255.255.255 area 100
network 10.30.30.0 0.0.0.3 area 0
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end


Router2#



 

Post a Comment

0 Comments