![HP 3100 v2 Series Скачать руководство пользователя страница 148](http://html.mh-extra.com/html/hp/3100-v2-series/3100-v2-series_command-reference-manual_165751148.webp)
141
undo ip address
[
ip-address
{
mask
|
mask-length
} ]
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.
Description
Use
ip address
to assign an IP address and subnet mask to a VLAN interface.
Use
undo ip address
to remove the IP address and subnet mask for a VLAN interface.
By default, no IP address is assigned to any VLAN interface.
Related commands:
display ip interface
(
Layer 3—IP Services Command Reference
).
Examples
# Specify the IP address as 1.1.0.1, the subnet mask as 255.255.255.0 for VLAN interface 1.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] ip address 1.1.0.1 255.255.255.0
mtu
Syntax
mtu
size
undo mtu
View
VLAN interface view
Default level
2: System level
Parameters
size
: Sets the maximum transmission unit (MTU), in the range of 46 to 1500 bytes.
Description
Use
mtu
to set the MTU for a VLAN interface.
Use
undo mtu
to restore the default.
By default, the MTU of a VLAN interface is 1500 bytes.
Related commands:
display interface vlan-interface
.
Examples
# Set the MTU to 1492 bytes for VLAN-interface 1.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] mtu 1492