ospf redistribute-connected

hi

i have disabled redistribute-connected, but the ethernet connected routes are still propagated to other ospf routers.
i would like to understand why.

setup:

(eth1 1.54)R1(eth3 2.1) -- (eth1 2.2)R2(eth2 3.1) -- (eth1 3.2) R3 (eth2 4.1)

on R2:

/routing ospf instance
set [ find default=yes ] disabled=no distribute-default=never in-filter=ospf-in \
    metric-bgp=auto metric-connected=20 metric-default=1 metric-other-ospf=auto \
    metric-rip=20 metric-static=20 name=default out-filter=ospf-out \
    redistribute-bgp=no redistribute-connected=no redistribute-other-ospf=no \
    redistribute-rip=no redistribute-static=no router-id=0.0.0.0
/routing ospf area
set [ find default=yes ] area-id=0.0.0.0 disabled=no instance=default name=\
    backbone type=default
/routing ospf network
add area=backbone disabled=no network=0.0.0.0/0



/ip address
add address=172.28.2.2/24 disabled=no interface=ether1 network=172.28.2.0
add address=172.28.3.1/24 disabled=no interface=ether2 network=172.28.3.0

on R1:

ospf route:
30 172.28.3.0/24      intra-area     20            172.28.2.2      
31 172.28.4.0/24      intra-area     30            172.28.2.2

could someone explain ?
thank you very much.

Because you have added 0.0.0.0/0 to ospf networks. It means that OSPF will run on all interfaces and redistribute as intra-area routes.

thank you :slight_smile: