H3C Technologies H3C SecPath F1000-E User Manual

Page 291

Advertising
background image

266

To do…

Use the command

Remarks

Configure the operating mode of
the interface as Layer 3

port link-mode route

Optional
The default operating mode is

Layer 3.

Create a subinterface of the
ten-GigabitEthernet interface and
enter subinterface view

interface ten-gigabitEthernet
interface-number.subnumber

Required

Set the encapsulation type and
associate the subinterface with a

VLAN

vlan-type dot1q vid vid

Required
The subinterface receives packets
with the vid.

Assign an IP address to the
subinterface

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

Required
By default, no IP address is

configured for the subinterface.

Add the subinterface to a security
zone

Enter the Web page and select
System > Zone. On the modify
zone page, add the subinterface to

the zone.

Required
This security zone is for incoming
packets.

Create another subinterface and
enter subinterface view

interface ten-gigabitEthernet
interface-number.subnumber

Required

Set the encapsulation type and
associate the subinterface with a
VLAN

vlan-type dot1q vid vid

Optional
The subinterface receives packets
with the vid.

Assign an IP address to the
subinterface

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

Required
By default, no IP address is
configured for the subinterface.

Add the subinterface to a security
zone

Enter the Web page and select
System > Zone. On the modify

zone page, add the subinterface to

the zone.

Required
This security zone is for outgoing

packets.

Displaying and maintaining Layer 3 subinterface forwarding

To do…

Use the Command

Remarks

Display brief interface information

display brief interface
[ interface-type [ interface-number
| interface-number.subnumber
] ]

[ | { begin | include | exclude }

text ]

Available in any view

Display interface/subinterface
state and related information

display interface [ interface-type
[interface-number |
interface-number.subnumber
] ]

Available in any view

Clear interface/subinterface
statistics

reset counters interface

[ interface-type [ interface-number
| interface-number.subnumber
] ]

Available in user view

Advertising