HP (Hewlett-Packard) MSM3XX Switch User Manual


 
CLI commands
VLAN interface context
Path: View > Enable > Config > Port-2 interface > VLAN interface
View > Enable > Config > Port-1 interface > VLAN interface
View > Enable > Config > Local mesh > VLAN interface
This context provides commands for configuring Virtual LANs (VLANs). In this context, VLANs
can be added or edited.
For example, to create a new VLAN interface named "hongkong" on the LAN port with VLAN id 88,
do the following:
CLI(config)# interface lan
CLI(if-lan)# interface vlan 88
CLI(if-vlan)# vlan name hongkong
CLI(if-vlan)# ip address mode dhcp
CLI(if-vlan)# no nat
CLI(if-vlan)# end
CLI(if-lan)#
end
Supported on: MSM310 MSM320 MSM335 MSM410 MSM422
end
Switches to parent context.
ip address
Supported on: MSM310 MSM320 MSM335 MSM410 MSM422
ip address <ip address>/<mask>
Sets a static IP address for the VLAN.
Parameters
<address> IP address.
</mask> Subnet mask in CIDR format. Specifies the number of bits in the mask.
ip address mode
Supported on: MSM310 MSM320 MSM335 MSM410 MSM422
ip address mode (dhcp | static | none)
Sets the IP addressing mode for this VLAN interface.
Parameters
dhcp Dynamic host configuration protocol. The DHCP server will automatically
assign an address to the AP, which functions as a DHCP client.
static This option enables you to manually assign an IP address to the AP.
none This VLAN does not have an IP address.
2-67