Configuring an ethernet subinterface – H3C Technologies H3C SecPath F1000-E User Manual

Page 4

Advertising
background image

3

To do…

Use the command…

Remarks

Enter system view

system-view

Enter Ethernet interface view

interface interface-type

interface-number

Change the description of the
interface

description text

Optional
By default, the description of an

interface is the interface name followed

by the “Interface” string,
GigabitEthernet0/1 Interface for

example.

Set the duplex mode

duplex { auto | full | half }

Optional
By default, the duplex mode is auto for

an Ethernet interface.
Optical interfaces do not support the
half keyword.

Set the port speed

speed { 10 | 100 | 1000 |
auto
}

Optional
By default, the port speed is auto for an
Ethernet interface.
Optical interfaces do not support the 10
or 100 keyword.

Shut down the Ethernet interface shutdown

Optional
By default, an Ethernet interface is in up

state.
To bring up an Ethernet interface, use
the undo shutdown command.

Configuring an Ethernet subinterface

Ethernet subinterfaces fall into two categories: Layer 2 Ethernet subinterfaces and Layer 3 subinterfaces.

Layer 2 Ethernet subinterface enables Layer 2 packets to be forwarded across VLANs. By
configuring Layer 2 Ethernet subinterfaces for VLANs, you can forward Layer 2 Ethernet packets

across VLANs through the corresponding Layer 2 Ethernet subinterfaces. Layer 2 Ethernet

subinterfaces are used usually when the device is working with a high-end firewall plug-in card.

Layer 3 Ethernet subinterface enables Layer 3 Ethernet interfaces to identify packets by VLANs. By

configuring multiple subinterfaces on an Ethernet interface, you can have packets of different

VLANs forwarded through their corresponding subinterfaces, thus achieving flexibility.

Follow these steps to configure an Ethernet subinterface:

To do…

Use the command…

Remarks

Enter system view

system-view

Create an Ethernet subinterface interface interface-type

interface-number.subnumber

Required
This command also leads you to Ethernet
subinterface view.

Advertising
This manual is related to the following products: