6-5
Default Level
2: System level
Parameters
vlan-interface-id
: VLAN interface number, in the range of 1 to 4094.
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.
Before you can create the VLAN interface of a VLAN, create the VLAN first.
Use the
undo interface vlan-interface
command to remove the specified VLAN interface.
You can use the
ip address
command in VLAN interface view to configure an IP address for a VLAN
interface to perform IP routing.
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
: IP address to be assigned to the current VLAN interface, in dotted decimal format.
mask
: Subnet mask in dotted decimal notation.
mask-length
: Subnet mask length, the number of consecutive ones in the mask. The value range is 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.
Summary of Contents for E4510-48G
Page 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Page 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Page 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Page 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Page 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Page 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Page 914: ...5 17 Sysname reset oam ...
Page 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Page 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...