Configuring basic settings of a vlan interface – H3C Technologies H3C S7500E Series Switches User Manual

Page 212

Advertising
background image

15-4

To do…

Use the command…

Remarks

Configure the description of

the current VLAN

description text

Optional

VLAN ID is used by default, VLAN 0001 for

example.

As the default VLAN, VLAN 1 cannot be created or removed.

You cannot manually create or remove VLANs reserved for special purposes.

Dynamic VLANs cannot be removed with the undo vlan command.

A VLAN with a QoS policy applied cannot be removed.

After associating an isolate-user-VLAN with a secondary VLAN, you cannot add ports to, remove
ports from, or remove, the VLANs. To do that, remove the association first.

A VLAN operating as a probe VLAN for remote port mirroring or an RRPP protected VLAN cannot
be removed with the undo vlan command. To do that, remove the remote mirroring VLAN or
RRPP protected VLAN configuration from it first.

Configuring Basic Settings of a VLAN Interface

For hosts of different VLANs to communicate, you must use a router or Layer 3 switch to perform layer
3 forwarding. To achieve this, VLAN interfaces are used.

VLAN interfaces are virtual interfaces used for Layer 3 communication between different VLANs. They
do not exist as physical entities on devices. For each VLAN, you can create one VLAN interface. You
can assign the VLAN interface an IP address and specify it as the gateway of the VLAN to forward
traffic destined for an IP network segment different from that of the VLAN.

Follow these steps to configure basic settings of a VLAN interface:

To do…

Use the command…

Remarks

Enter system view

system-view

Create a VLAN interface and

enter VLAN interface view

interface vlan-interface

vlan-interface-id

Required

If the VLAN interface already exists, you

enter its view directly.

Assign an IP address to the

VLAN interface

ip

address ip-address { mask |

mask-length

} [ sub ]

Optional

No IP address is assigned to any VLAN

interface by default.

Configure the description of the

VLAN interface

description text

Optional

VLAN interface name is used by default,

for example, Vlan-interface1 Interface.

Advertising