Assigning an IP address to a virtual interface
You can configure IP routing interface parameters on a virtual interface. This section describes how to configure an IP address on a virtual interface. Other sections in this chapter that describe how to configure interface parameters also apply to virtual interfaces.
To add a virtual interface to a VLAN and configure an IP address on the interface, enter commands such as the following.
device(config)# vlan 2 name IP-Subnet_10.1.2.0/24 device(config-vlan-2)# untag ethernet 1 to 4 device(config-vlan-2)# router-interface ve 1 device(config-vlan-2)# interface ve 1 device(config-vif-1)# ip address 10.1.2.1/24
The first two commands in this example create a Layer 3 protocol-based VLAN name "IP-Subnet_10.1.2.0/24" and add a range of untagged ports to the VLAN. The router-interface command creates virtual interface 1 as the routing interface for the VLAN.
Syntax: router-interface ve num
The num variable specifies the virtual interface number. You can enter a number from 1 through 4095.
When configuring virtual routing interfaces on a device, you can specify a number from 1 through 4095. However, the total number of virtual routing interfaces that are configured must not exceed the system-max limit of 512 (or 255 for the ICX 7150).
The last two commands move the configuration to the interface configuration mode for the virtual interface and assign an IP address to the interface.
Syntax: interface ve num