!
hostname r2
ip forwarding
!
interface r2-eth0
 ip address 10.1.1.2/24
 ip ospf network broadcast
 ip ospf hello-interval 1
 ip ospf dead-interval 30
!
interface r2-eth1
 ip address 10.1.2.2/24
 ip ospf network non-broadcast
 ip ospf hello-interval 1
 ip ospf dead-interval 30
!
!
interface r2-eth2
 ip address 10.1.3.2/24
 ip ospf network point-to-point
 ip ospf hello-interval 1
 ip ospf dead-interval 30
!
!
interface r2-eth3
 ip address 10.1.4.2/24
 ip ospf network point-to-multipoint
 ip ospf hello-interval 1
 ip ospf dead-interval 30
!
!
interface r2-eth4
 ip address 10.1.5.2/24
 ip ospf network broadcast
 ip ospf hello-interval 1
 ip ospf dead-interval 30
!
!
interface r2-eth5
 ip address 10.1.6.2/24
 ip ospf network broadcast
 ip ospf hello-interval 1
 ip ospf dead-interval 30
!
!
router ospf
  ospf router-id 2.2.2.2
  distance 20
  network 10.1.1.0/24 area 0
  network 10.1.2.0/24 area 0
  network 10.1.3.0/24 area 0
  network 10.1.4.0/24 area 0
  network 10.1.5.0/24 area 0
  network 10.1.6.0/24 area 1
!
