This section uses an example to describe how to configure interface parameters, such as the interface description, maximum transmission unit (MTU), and interval at which traffic statistics are collected.
The configuration roadmap is as follows:
Configure description for an interface.
Set an MTU for the interface to ensure successful packet transmission over the interface.
Set the interval at which traffic statistics (including the traffic volumes and rates) are collected globally.
Create a sub-interface and set an MTU for the sub-interface so that packets can reach the receiver.
To complete the configuration, you need the following data:
Interface name
Interface description
Interface MTU
Interval at which traffic statistics are collected globally
Sub-interface MTU
<HUAWEI> system-view [~HUAWEI] interface gigabitethernet 0/1/8 [~HUAWEI-GigabitEthernet0/1/8] description for IFM [*HUAWEI-GigabitEthernet0/1/8] commit
[*HUAWEI-GigabitEthernet0/1/8] mtu 1000 [*HUAWEI-GigabitEthernet0/1/8] commit [~HUAWEI-GigabitEthernet0/1/8] quit
[*HUAWEI] set flow-stat interval 100 [*HUAWEI] commit
[*HUAWEI] interface gigabitethernet 0/1/8.1 [*HUAWEI-GigabitEthernet0/1/8.1] mtu 800 [*HUAWEI-GigabitEthernet0/1/8.1] commit