Configuration procedure, Vlan interface configuration example, Network requirements – H3C Technologies H3C S12500 Series Switches User Manual

Page 17

Advertising
background image

4

Configuration procedure

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 VLAN interface name is
used, for example, Vlan-interface1

Interface.

5.

Set the MTU for the VLAN
interface.

mtu size

Optional.
The default setting is 1500 bytes.

6.

Restore the default settings

for the VLAN interface.

default

Optional.

7.

Bring up the VLAN interface. undo shutdown

Optional.
By default, a VLAN interface is in the
down state. After you bring up a VLAN

interface, 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.

VLAN interface configuration example

Network requirements

As shown in

Figure 4

, PC A is assigned to VLAN 5. PC B is assigned to VLAN 10. The PCs belong to

different IP subnets and cannot communicate with each other.
Configure VLAN interfaces on Switch A and configure the PCs to enable Layer 3 communication
between the PCs.

Advertising
This manual is related to the following products: