hostname ulesa
password klfzebra3
enable password klfzebra3
log stdout
!log file /var/log/ospfd.log
!log record-priority
!service advanced-vty
!
interface lo
!
interface dummy0
 description dummy-IP
 ip ospf cost 10
!
interface enp1s0
 description PeerKozovka
 ip ospf cost 5
 ip ospf priority 1
 ip ospf authentication message-digest
 ip ospf message-digest-key 1 md5 eastpass
!
interface vlan106
 description peerD3
 ip ospf cost 10
 ip ospf priority 1
 ip ospf authentication message-digest
 ip ospf message-digest-key 1 md5 test
!
interface vlan105
 description peerD1
 ip ospf cost 10
 ip ospf priority 1
 ip ospf authentication message-digest
 ip ospf message-digest-key 1 md5 test
!
router ospf
  ospf router-id 10.218.9.97
  redistribute kernel metric 100 route-map just-10 
  passive-interface dummy0
  passive-interface vlan300
  passive-interface vlan301
  passive-interface vlan302
  passive-interface vlan303
!dns
  network 10.102.0.252/32 area 0
!eth0 
! hlavni spoj kozovka
  network 10.218.9.0/29 area 0
! peer toplifeczech
  network 10.218.9.16/29 area 9
! sektory a lanka
  network 10.218.9.32/27 area 9
  network 10.218.9.64/27 area 9
  network 10.218.9.96/27 area 9
! peer bytovka a lanka
  network 10.218.12.128/29 area 9
  network 10.218.12.160/27 area 9
!bio peer
 network 10.218.9.8/29 area 9
!doksy1 peer
 network 10.102.204.0/29 area 9
!doksy3 peer
 network 10.102.207.224/29 area 9
!
access-list net-10 deny 192.168.123.0/24
access-list net-10 permit 192.168.0.0/16
access-list net-10 permit 172.24.0.0/16
access-list net-10 permit 10.102.0.0/16
access-list net-10 permit 10.218.0.0/16
access-list term permit 127.0.0.1/32
access-list term permit 10.102.222.0/24
access-list term deny any
!
route-map just-10 permit 10
 match ip address net-10
!
line vty
 access-class term
