I am using Cisco 2960XR switch is directly connected on gi1/0/1 is directly connected on gi1/0/7

router ospf 10

q1) how do i prevent direct route from being advertised out of gi1/0/7 ?

can anyone give an example

  • Did any answer help you? if so, you should accept the answer so that the question does not keep popping up forever, looking for an answer. Alternatively, you could post and accept your own answer.
    – Ron Maupin
    Commented Dec 23, 2021 at 21:36

1 Answer 1


If there isn’t another router on the subnet, simply remove the network statement under the OSPF configuration.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.