- Configure a VLAN and include ports 1/0/2 in the VLAN.
- Select Routing > VLAN > VLAN Routing Wizard.
A screen similar to the following displays.

- Enter the following information:
- In the Vlan ID field, enter 10.
- In the IP Address field, enter 192.150.3.1.
- In the Network Mask field, enter 255.255.255.0.
- Click Unit 1. The ports display:
Click the gray box under port 2 until T displays.
The T specifies that the egress packet is tagged for the port.
- Click Apply to save the VLAN that includes ports 2.
- Select Routing > VLAN > VLAN Routing Wizard.
- Configure a VLAN, and include port 1/0/3 in the VLAN.
- Select Routing > VLAN > VLAN Routing Wizard.
A screen similar to the following displays.

- Enter the following information:
- In the Vlan ID field, enter 20.
- In the IP Address field, enter 192.150.4.1.
- In the Network Mask field, enter 255.255.255.0.
- Click Unit 1. The ports display:
Click the gray box under port 3 until T displays.
The T specifies that the egress packet is tagged for the port.
- Click Apply to save the VLAN that includes port 3.
- Select Routing > VLAN > VLAN Routing Wizard.
- Enable OSPF on the switch.
- Select Routing > OSPF > Basic > OSPF Configuration.
A screen similar to the following displays.

- For OSPF Admin Mode, select the Enable radio button.
- In the Router ID field, enter 192.150.9.9.
- Click Apply to save the setting.
- Select Routing > OSPF > Basic > OSPF Configuration.
- Enable OSPF on VLAN 10.
- Select Routing > OSPF > Advanced > Interface Configuration.
A screen similar to the following displays.

- Under Interface Configuration, click VLANS to show all the VLAN interfaces.
- Scroll down and select the interface 0/2/1 check box. Now 0/2/1 appears in the Interface field at the top.
- Enter the following information:
- In the OSPF Area ID field, enter 0.0.0.2.
- In the OSPF Admin Mode field, select Enable.
- In the Priority field, enter 128.
- In the Metric Cost field, enter 32.
- Click Apply to save the settings.
- Select Routing > OSPF > Advanced > Interface Configuration.
- Enable OSPF on VLAN 20.
- Select Routing > OSPF > Advanced > Interface Configuration.
A screen similar to the following displays.

- Under Interface Configuration, click VLANS to show all the VLAN interfaces.
- Scroll down and select the interface 0/2/2 check box.
Now 0/2/2 appears in the Interface field at the top.
- Enter the following information:
- In the OSPF Area ID field, enter 0.0.0.3.
- In the OSPF Admin Mode field, select the Enable.
- In the Priority field, enter 255.
- In the Metric Cost field, enter 64.
- Click Apply to save the settings.
- Select Routing > OSPF > Advanced > Interface Configuration.
For more information, see the following support articles:
This article applies to the following managed switches and their respective firmware:
- M5300 - firmware version 10.0.0.x
-
- M5300-28G (GSM7228S)
- M5300-5G (GSM7252S)
- M5300-28G3 (GSM7328Sv2h2)
- M5300-52G3 (GSM7352Sv2h2)
- M5300-28G_POE+ (GSM7228PSv1h2)
- M5300-52G-POE+ (GSM7252PSv1h2)
- M5300-28GF3 (GSM7328FSv2)
- XSM7224S - firmware version 9.0.1.x (license required to support the feature described in this article)