如何从OSPF配置中删除lans?

问题描述 投票:-1回答:1

有没有办法从OSPF配置中删除一个lan网络(44.44.44.024)?我做过,但我认为不正确。

En
Conf t
router ospf 100
no ip address 44.44.44.0 0.255.255.255 

networking cisco ospf
1个回答
0
投票

这取决于你是如何通过OSPF来宣传你的网络。如果你想从OSPF中删除现有的网络,那么下面考虑到你已经在OSPF配置下有44.44.44.0 0.255.255.255的条目。

Conf t
router ospf 100
no network 44.44.44.0 0.255.255.255 

如果您在接口下有OSPF,那么您应该使用

router ospf 100
passive-interface default ( it will apply to all interfaces) 
no passive-interface {interface name} ( Networks bound to this interfaces will be advertised in ospf) 
© www.soinside.com 2019 - 2024. All rights reserved.