EasyManuals Logo

HP A5830 Series Command Reference

HP A5830 Series
249 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #157 background imageLoading...
Page #157 background image
150
Parameter
vlan-interface-id: Specifies a VLAN interface number, in the range of 1 to 4094.
Example
# Create VLAN-interface 2.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] quit
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2]
ip address
Description
Use the ip address command to assign an IP address and subnet mask to a VLAN interface.
Use the undo ip address command to remove the IP address and subnet mask for a VLAN interface.
By default, no IP address is assigned to any VLAN interface.
To connect a VLAN to multiple subnets, assign one primary IP address and multiple secondary IP
addresses to a VLAN interface.
When configuring IP addresses for a VLAN interface, follow these rules:
The primary IP address you assign to a VLAN interface overwrites the previous one, if any.
Remove all secondary IP addresses before you remove the primary IP address.
To remove all IP addresses, use the undo ip address command without any parameter.
To remove the primary IP address, use the undo ip address ip-address { mask | mask-length }
command.
To remove a secondary IP address, use the undo ip address [ ip-address { mask | mask-length } [
sub ] ] command
Related commands: display ip interface (Layer 3—IP Services Command Reference).
Syntax
ip address ip-address { mask | mask-length } [ sub ]
undo ip address [ ip-address { mask | mask-length } [ sub ] ]
View
VLAN interface view
Default level
2: System level
Parameters
ip-address: Specifies an IP address in dotted decimal notation.
mask: Specifies a subnet mask in dotted decimal notation.
mask-length: Sets the number of consecutive 1s in the subnet mask, in the range of 0 to 32.
sub: Indicates the address is a secondary IP address.

Table of Contents

Other manuals for HP A5830 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP A5830 Series and is the answer not in the manual?

HP A5830 Series Specifications

General IconGeneral
BrandHP
ModelA5830 Series
CategorySwitch
LanguageEnglish

Related product manuals