Netgear M4300-28G-PoE+ (GSM4328PB) - 24x1G PoE+ Stackable Managed Switch with 2x10GBASE-T and 2xSFP+ (1000W PSU) Administrator's Guide

Page of 688
OSPF 
108
Managed Switches 
OSPF on a Border Router
The example is shown as CLI commands and as a web interface procedure. For an OSPF 
sample network, see 
CLI: Configure OSPF on a Border Router
1. 
Enable routing for the switch.
2. 
Enable routing and assign IPs for ports 1/0/2, 1/0/3, and 1/0/4.
3. 
Specify the router ID, and enable OSPF for the switch. 
Set disable 1583compatibility to prevent a routing loop.
(Netgear Switch) #config
(Netgear Switch) (Config)#ip routing
(Netgear Switch) (Config)#interface 1/0/2
(Netgear Switch) (Interface 1/0/2)#routing
(Netgear Switch) (Interface 1/0/2)#ip address 192.150.2.2 255.255.255.0
(Netgear Switch) (Interface 1/0/2)#exit
(Netgear Switch) (Config)#interface 1/0/3 
(Netgear Switch) (Interface 1/0/3)#routing
(Netgear Switch) (Interface 1/0/3)#ip address 192.130.3.1 255.255.255.0
(Netgear Switch) (Interface 1/0/3)#exit
(Netgear Switch) (Config)#interface 1/0/4
(Netgear Switch) (Interface 1/0/4)#routing
(Netgear Switch) (Interface 1/0/4)#ip address 192.64.4.1 255.255.255.0
(Netgear Switch) (Interface 1/0/4)#exit
(Netgear Switch) (Config)#router ospf
(Netgear Switch) (Config router)#enable
(Netgear Switch) (Config router)#router-id 192.130.1.1
(Netgear Switch) (Config router)#no 1583compatibility
(Netgear Switch) (Config router)#exit
(Netgear Switch) (Config)#exit