Netgear M5300-28G-POE+ (GSM7228PSv1h2) - 12-Port Managed Gigabit Switch Ratgeber Für Administratoren
![Netgear](https://files.manualsbrain.com/attachments/cf1ad5de25a3f8d6c88ef0ab489c1b137eebe11f/common/fit/150/50/17742d1e0cdacf24edeb88c30757620088415c5f7699f69b4517262e21e0/brand_logo.jpeg)
OSPF
152
Managed Switches
CLI: Configure Area 1 as a Stub Area on A2
1.
Enable routing on the switch.
(Netgear Switch) #config
(Netgear Switch) (Config)#ip routing
(Netgear Switch) (Config)#router ospf
2.
Set the router ID to 2.2.2.2.
(Netgear Switch) (Config-router)#router-id 2.2.2.2
3.
Configure area 0.0.0.1 as a stub area.
(Netgear Switch) (Config-router)#area 0.0.0.1 stub
4.
Enable OSPF area 0.0.0.1 on the 1/0/15.
(Netgear Switch) (Config-router)#exit
(Netgear Switch) (Config-router)#exit
(Netgear Switch) (Config)#interface 1/0/15
(Netgear Switch) (Interface 1/0/15)#routing
(Netgear Switch) (Interface 1/0/15)#ip address 192.168.20.2 255.255.255.0
(Netgear Switch) (Interface 1/0/15)#ip ospf
(Netgear Switch) (Interface 1/0/15)#ip ospf areaid 0.0.0.1
(Netgear Switch) (Interface 1/0/15)#exit
(Netgear Switch) (Config)#exit
(Netgear Switch) #show ip route
Total Number of Routes......................... 2
Network Subnet Next Hop Next Hop
Address Mask Protocol Intf IP Address
--------------- --------------- ------------ --------- ---------------
0.0.0.0 0.0.0.0 OSPF Inter 1/0/15 192.168.20.1
192.168.20.0 255.255.255.0 Local 1/0/15 192.168.20.2