beautypg.com

Configuring basic settings of a vlan interface – H3C Technologies H3C SecPath F1000-E User Manual

Page 62

background image

37

Step Command

Remarks

5.

Configure the
description of the VLAN. description text

Optional.
By default, the description of a VLAN is its

VLAN ID. For example, VLAN 0001.

NOTE:

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

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 subnet different from that of the 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.

3.

Assign an IP address to the

VLAN interface.

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

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

4.

Configure the description
of the VLAN interface.

description text

Optional.
By default, the description of a VLAN is
the VLAN interface name. For example,

Vlan-interface1 Interface.

5.

Set the MTU for the VLAN
interface.

mtu size

Optional.
By default, the MTU is 1500 bytes.

6.

Restore the default settings
for the VLAN interface.

default

Optional.

7.

Shut down the VLAN
interface.

shutdown

Optional.
By default, a VLAN interface is in the up

state. The VLAN interface is up if one or
more ports in the VLAN is up, and goes

down if all ports in the VLAN go down.
A VLAN interface shut down with the

shutdown command, however, will be in
the DOWN (Administratively) state until

you bring it up, regardless of how the

state of the ports in the VLAN changes.