EasyManua.ls Logo

H3C S5120-EI Series - Ip Address

H3C S5120-EI Series
242 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
Loading...
141
Description
Use the interface vlan-interface command to create a VLAN interface and enter its view or enter the view
of an existing VLAN interface.
Use the undo interface vlan-interface command to remove the specified VLAN interface.
You must create the VLAN before you create the VLAN interface.
To configure an IP address for a VLAN interface to perform IP routing, use the ip address command in
VLAN interface view.
Related commands: display interface vlan-interface.
Examples
# Create VLAN-interface 2.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] quit
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2]
ip address
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 ones in the subnet mask, ranging from 0 to 32.
sub: Indicates the address is a secondary 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.
In general conditions, you need to assign only one IP address for a VLAN interface. For a VLAN to
connect to multiple subnets on an Ethernet switch, you can assign up to five IP addresses to a VLAN
interface. Among these IP addresses, one is primary and the others are secondary.
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.
Before removing the primary IP address, remove all secondary IP addresses.

Table of Contents

Other manuals for H3C S5120-EI Series

Related product manuals