Command Reference Guide

Virtual LAN Routing Commands
CLI Command Reference
September 2014 Page 532
HP Moonshot Switch Module CLI Command Reference
Virtual LAN Routing Commands
This section describes the commands you use to view and configure VLAN routing and to view VLAN routing
status information.
vlan routing
This command enables routing on a VLAN. The vlanid value has a range from 1 to 4093. The [interface ID]
value has a range from 1 to 128. Typically, you will not supply the interface ID argument, and the system
automatically selects the interface ID. However, if you specify an interface ID, the interface ID becomes the port
number in the
unit/slot/port for the VLAN routing interface. If you select an interface ID that is already in use,
the CLI displays an error message and does not create the VLAN interface. For products that use text-based
configuration, including the interface ID in the vlan routing command for the text configuration ensures that
the
unit/slot/port for the VLAN interface stays the same across a restart. Keeping the unit/slot/port the
same ensures that the correct interface configuration is applied to each interface when the system restarts.
To view the unit/slot/port designation associated with a VLAN routing interface, use the
show ip vlan
command.
no vlan routing
This command deletes routing on a VLAN.
Example: Example 1 shows the command specifying a
vlanid value. The interface ID argument is not used.
(Routing) #vlan database
(Routing) (Vlan)#vlan 222
(Routing) (Vlan)#vlan routing 222 ?
<cr> Press enter to execute the command.
<1-128> Enter interface ID
Typically, you press <Enter> without supplying the Interface ID value; the system automatically selects the
interface ID.
Example: In Example 2, a new VLAN with the VLAN ID 144 is created, and the VLAN routing command
specifies interface ID 44 for VLAN 144 interface. The interface ID becomes the port number in the
unit/
slot/port for the VLAN routing interface. In this example, unit/slot/port is 0/4/44 for VLAN 144 interface.
(Routing)(Vlan)#vlan 144 44
(Routing)(Vlan)#exit
(Routing) #show ip vlan
MAC Address used by Routing VLANs: 00:24:81:D0:1D:99
Format
vlan routing vlanid [interface ID]
Mode VLAN Config
Format
no vlan routing vlanid
Mode VLAN Config