NETGEAR 7000 Series Managed Switch Administration Guide Version 7.2

Example of configuring OSPF on a 7000 Series Managed Switch acting as an inter-area router:

(Netgear Switch) #vlan data (Netgear Switch) (Vlan)#vlan 10 (Netgear Switch) (Vlan)#vlan 20 (Netgear Switch) (Vlan)#vlan routing 10 (Netgear Switch) (Vlan)#vlan routing 20 (Netgear Switch) (Vlan)#exit (Netgear Switch) #conf

(Netgear Switch) (Config)#ip routing

(Netgear Switch) (Config)#vlan port tagging all 10 (Netgear Switch) (Config)#vlan port tagging all 20 (Netgear Switch) (Config)#interface 1/0/2

(Netgear Switch) (Interface 1/0/2)#vlan participation include 10 (Netgear Switch) (Interface 1/0/2)#vlan pvid 10

(Netgear Switch) (Interface 1/0/2)#exit (Netgear Switch) (Config)#interface 1/0/3

(Netgear Switch) (Interface 1/0/3)#vlan participation include 20 (Netgear Switch) (Interface 1/0/3)#vlan pvid 20

(Netgear Switch) (Interface 1/0/3)#exit (Netgear Switch) (Config)#interface vlan 10

(Netgear Switch) (Interface vlan 10)#ip address 192.150.3.1 255.255.255.0 (Netgear Switch) (Interface vlan 10)#exit

(Netgear Switch) (Config)#interface vlan 20

(Netgear Switch) (Interface vlan 20)#ip address 192.150.4.1 255.255.255.0 (Netgear Switch) (Interface vlan 20)#exit

Specify the router ID and enable OSPF for the switch. (Netgear Switch) (Config)#router ospf

(Netgear Switch) (Config router)#router-id 192.150.9.9 (Netgear Switch) (Config router)#enable

(Netgear Switch) (Config router)#exit

Enable OSPF for the VLAN and physical router ports. (Netgear Switch) (Config)#interface vlan 10

(Netgear Switch) (Interface vlan 10)#ip ospf areaid 0.0.0.2 (Netgear Switch) (Interface vlan 10)#ip ospf

(Netgear Switch) (Interface vlan 10)#exit (Netgear Switch) (Config)#interface vlan 20

(Netgear Switch) (Interface vlan 20)#ip ospf areaid 0.0.0.3 (Netgear Switch) (Interface vlan 20)#ip ospf

(Netgear Switch) (Interface vlan 20)#exit

IP Routing Services

7-11

v1.0, May 2008

Page 61
Image 61
NETGEAR 7000 Series manual V1.0, May