cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2553
Views
0
Helpful
5
Replies

Unable to remove network statements in OSPF configuration on Nexus switch

Sergey Lisitsin
VIP Alumni
VIP Alumni

Good afternoon,

 

We've got a Nexus 3k switch running OSPF. In the OSPF config section we've got a bunch of network x.x.x.x/yy statements, which we can't delete. We also can't add any new entries, however we can configure the interfaces for OSPF process. Can anyone suggest a way to add/delete network statements.

 

Nexus code version is 

Software
BIOS: version 3.5.0
NXOS: version 7.0(3)I2(2b)
BIOS compile time: 01/25/2016
NXOS image file is: bootflash:///nxos.7.0.3.I2.2b.bin

 

Cheers,

Sergey.

5 Replies 5

marce1000
VIP
VIP

 

 - Can you provide examples ?

 M.



-- ' 'Good body every evening' ' this sentence was once spotted on a logo at the entrance of a Weight Watchers Club !

marce1000,

 

Sure,

 

version 7.0(3)I2(2b)
feature ospf

router ospf 1
router-id 192.168.10.253
network 10.10.9.33/32 area 0.0.0.1
network 10.10.9.34/32 area 0.0.0.1
network 10.10.9.49/32 area 0.0.0.1
network 172.20.10.252/32 area 0.0.0.1
network 172.31.10.252/32 area 0.0.0.1
network 192.168.10.252/32 area 0.0.0.1
network 192.168.255.2/32 area 0.0.0.1
network 192.168.255.6/32 area 0.0.0.1
default-information originate
redistribute static route-map rm.static-to-ospf
log-adjacency-changes

 

XXX-3172T-02# conf t
Enter configuration commands, one per line. End with CNTL/Z.
XXX-3172T-02(config)# router ospf 1
XXX-3172T-02(config-router)# no net?
^
% Invalid command at '^' marker.
XXX-3172T-02(config-router)# no net?
^
% Invalid command at '^' marker.
XXX-3172T-02(config-router)# no net

 

OK guys,

 

It looks like a bug in NXOS. The network command is not shown in the list of available commands, but it is accepted when fully typed in. Strange thing. I have labbed it up in GNS3 and got the desired result. 

 

Thanks to everyone looking at this issue.

 

balaji.bandi
Hall of Fame
Hall of Fame

Can you post the output while removing from router ospf process no network x.x.x.x/yy

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello,

 

check if you have OSPFv3 enabled (which doesn't use network statements under the OSPF process). 

 

Try and enable OSPFv2:

 

N3K#conf t

N3K(config)#feature ospf

 

and check if you can remove the network statements...

Review Cisco Networking products for a $25 gift card