Ip Address - H3C MSR Series Command Reference Manual

Comware 5 layer 2 - lan switching
Hide thumbs Also See for MSR Series:
Table of Contents

Advertisement

undo interface vlan-interface vlan-interface-id
Views
System view
Default command level
2: System level
Parameters
vlan-interface-id: Specifies a VLAN-interface number in the range of 1 to 4094.
Usage guidelines
Create the VLAN before you create the VLAN-interface.
To configure an IP address for a VLAN-interface that will perform IP routing, use the ip address
command in VLAN-interface view.
Examples
# Create VLAN-interface 2, and enter its view.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] quit
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2]
Related commands
display interface vlan-interface

ip address

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.
Syntax
ip address ip-address { mask | mask-length } [ sub ]
undo ip address [ ip-address { mask | mask-length } [ sub ] ]
Default
No IP address is assigned to any VLAN-interface.
Views
VLAN-interface view
Default command 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.
19

Advertisement

Table of Contents
loading

Table of Contents