# Configuring an IP address and enabling routing for a VLAN

Use the following procedure to configure an IP address and enable routing for a VLAN.

## Prerequisites

- Enable routing globally on the switch.

## Procedure steps

1. From the navigation pane, double-click VLAN.

2. In the VLAN tree, click VLANs.

3. In the work area, select the desired VLAN from the table.

4. In the toolbar, click IP.

5. In the toolbar, click Insert.

6. Configure the parameters as required.

7. Click Insert.

To enable or disable IP routing for a specific VLAN, go to the VLANs page and select the Routing option. A value of true enables IP routing for the VLAN, a value of false disables IP routing for the VLAN.

## Variable definitions

The following table describes the fields of the IP Address tab.

Field | Description
--- | ---
IpAddress | Specifies the IP address to associate with the selected VLAN.
NetMask | Specifies the subnet mask.
BcastAddrFormat | Specifies the IP broadcast address format used on this interface.
ReasmMaxSize | Specifies the size of the largest IP datagram which this entity can reassemble from fragmented incoming IP datagrams received on this interface.
VlanId | Specifies the VLAN ID.
MacOffset | Specifies the value used to calculate the VLAN MAC address, which is offset from the switch MAC address. The valid range is 1-256. Specify the value 1 for the Management VLAN only. If no MAC offset is specified, the switch applies one automatically.
SecondaryIf | Indicates whether or not this entry corresponds to a secondary interface. If the value is false, then this is the primary IP address, if the value is true, then this is a secondary IP address. Note You can assign 1 primary IP address and up to 8 secondary IP addresses to a VLAN.