# Configuring OSPF host routes

Use the following procedure to create OSPF hosts routes to specify which hosts are directly attached to the router, and the metrics that must be advertised for them.

## Prerequisites

- Install the Advanced License.

- Enable IP routing globally on the switch.

- Assign an IP address to the VLAN that you want to enable with OSPF.

  Routing is automatically enabled on the VLAN when you assign an IP address to it.

## Procedure steps

1. From the navigation tree, double-click IP Routing.

2. In the IP Routing tree, double-click OSPF.

3. In the work area, click the Hosts tab.

4. IN the toolbar, click Insert.

   The OSPF Insert Hosts dialog box appears.

5. Configure the parameters as required.

6. Click Insert.

## Variable definitions

The following table describes the fields of the Hosts tab.

Field | Description
--- | ---
IpAddress | Specifies the host IP address.
TOS | Specifies the configured route type of service. The value in this field should be 0 as TOS-based routing is not supported.
Metric | Specifies the configured cost of the host.
AreaID | Specifies the ID of the area connected to the host.