hostname visnovka
password klfzebra3
enable password klfzebra3
log stdout
!log file /var/log/ospfd.log
!log record-priority
!service advanced-vty
!
interface lo
!
interface dummy0
 description router ip
 ip ospf cost 10
!
interface enp1s0
 description peer_bender 
 ip ospf cost 1000
 ip ospf priority 1
 ip ospf dead-interval 40
 ip ospf authentication message-digest
 ip ospf message-digest-key 1 md5 eastpass 
!
interface vlan400
 description PeerJenec
 ip ospf cost 150
 ip ospf dead-interval 60
 ip ospf priority 1
 ip ospf authentication message-digest
 ip ospf message-digest-key 1 md5 test
!
interface vlan114
 description peer_jenec2
 ip ospf cost 10
 ip ospf dead-interval 60
 ip ospf priority 1
 ip ospf authentication message-digest
 ip ospf message-digest-key 1 md5 eastpass 
!
router ospf
 ospf router-id 10.102.232.3
! redistribute connected route-map just-10
 redistribute kernel metric-type 1 metric 100
! redistribute static metric 200

 passive-interface dummy0
 passive-interface vlan300
 passive-interface vlan306
 passive-interface vlan305
 passive-interface vlan301
 passive-interface vlan302
 passive-interface vlan303
 passive-interface vlan304

! PEEROVE SUBNETY NA OKOLNI ROUTERY   
! peer jenec2
 network 10.102.184.208/29 area 5
! peer bender
 network 10.102.232.0/29 area 5
! Peer Jenec
 network 10.102.232.8/29 area 5
!
! uzivatelsky rozsahy 
 network 10.102.232.192/26 area 5
 network 10.102.232.128/26 area 5
 network 10.102.232.16/29 area 5
 network 10.102.232.24/29 area 5
 network 10.102.232.32/27 area 5
 network 10.102.232.64/27 area 5
 network 10.102.232.96/27 area 5
 
access-list net-10 permit 10.102.0.0/16
access-list net-10 permit 10.218.0.0/16
access-list net-10 permit 192.168.0.0/16
access-list net-10 deny 192.168.123.0/24
access-list net-10 deny 192.168.0.0/24
access-list term permit 127.0.0.1/32
access-list term deny any
!
route-map just-10 permit 10
 match ip address net-10
!
line vty
 access-class term


