Command Reference Guide

Virtual LAN Routing Commands
CLI Command Reference
September 2014 Page 533
HP Moonshot Switch Module CLI Command Reference
Logical
VLAN ID Interface IP Address Subnet Mask
------- -------------- --------------- ---------------
144 0/4/44 0.0.0.0 0.0.0.0
222 0/4/1 0.0.0.0 0.0.0.0
Example: In Example 3, you select an interface ID that is already in use. In this case, the CLI displays an error
message and does not create the VLAN interface.
(Routing)#vlan database
(Routing)(Vlan)#vlan 15
(Routing)(Vlan)#vlan routing 15 1
Interface ID 1 is already assigned to another interface
Example: The show running configuration command always lists the interface ID for each routing VLAN, as
shown in Example 4 below.
(Routing) #show running-config
!Current Configuration:
!
!System Description "Moonshot-180G Switch, 2.0.0.5, Linux 2.6.34.6"
!System Software Version "2.0.0.5"
!System Up Time "0 days 0 hrs 17 mins 30 secs"
!Cut-through mode is configured as disabled
!Additional Packages QOS,IPv6 Management,Stacking,Routing
!Current SNTP Synchronized Time: SNTP Client Mode Is Disabled
!
vlan database
vlan 144,222
vlan routing 222 1
vlan routing 144 44
exit
interface vlan
Use this command to enter Interface configuration mode for the specified VLAN. The vlan-id range is 1 to 4093.
show ip vlan
This command displays the VLAN routing information for all VLANs with routing enabled.
Format
interface vlan vlan-id
Mode Global Config
Format
show ip vlan
Modes •Privileged EXEC
User EXEC