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

Page 156

Advertising
background image

122

NOTE:

As the system default VLAN, VLAN 1 cannot be created or deleted.

Before you delete a dynamic VLAN, a VLAN configured with the QoS policy, or a VLAN locked by an
application, you must first remove the configuration from the VLAN.

Configuring basic settings of a VLAN interface

For hosts of different VLANs to communicate at Layer 3, you can use VLAN interfaces. 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 and assign an IP

address to it. The VLAN interface acts as the gateway of the VLAN to forward packets destined for

another IP subnet.
When you configure a VLAN interface, follow these restrictions and guidelines:

Before you create a VLAN interface for a VLAN, create the VLAN first.

You cannot create a VLAN interface for a sub-VLAN. For more information about sub-VLANs, see
"Configuring super VLANs."

You cannot create VLAN interfaces for secondary VLANs that have the following characteristics:

{

Associated with the same primary VLAN.

{

Enabled with Layer 3 communication in VLAN interface view of the primary VLAN interface.

For more information about secondary VLANs, see "Configuring the private VLAN."

To configure basic settings of a VLAN interface:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Create a VLAN interface

and enter VLAN interface
view.

interface vlan-interface
vlan-interface-id

If the VLAN interface already exists, you
enter its view directly.
By default, no VLAN interface is created.

3.

Assign an IP address to the
VLAN interface.

ip address ip-address { mask |
mask-length } [ sub ]

By default, no IP address is assigned to
any VLAN interface.

4.

Configure the description

of the VLAN interface.

description text

The default setting is the VLAN interface
name. For example, Vlan-interface1
Interface.

5.

(Optional.) Specify a

member device for
forwarding the traffic on

the current VLAN interface.

service slot slot-number

By default, no member devices are
specified.

6.

Configure the MTU for the
VLAN interface.

mtu size

The default setting is 1500 bytes.

7.

Configure the expected
bandwidth of the interface. bandwidth bandwidth-value

By default, the expected bandwidth (in
kbps) is the interface baud rate divided

by 1000.

8.

(Optional.) Restore the
default settings for the

VLAN interface.

default

N/A

Advertising