No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Logical Interface Configuration Commands

Logical Interface Configuration Commands

display interface loopback

Function

Using the display interface loopback command, you can view the status of a loopback interface.

Format

display interface loopback [ loopback-number | main ]

Parameters

Parameter Description Value
loopback-number Specifies the number of a loopback interface.

If loopback-number is not specified, the status of all loopback interfaces is displayed.

The LoopBack interface number is an integer ranging from 0 to 1023.
main

Displays the status of all loopback interfaces.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

In the scenario where you need to monitor the status of an interface or locate an interface fault, you can use the display interface loopback command to collect the statistics on the interface including the status. Through the displayed information, you can collect the traffic statistics and troubleshoot the interface.

Example

# Display the status of a specified loopback interface.

<HUAWEI> display interface loopback 6
LoopBack6 current state : UP (ifindex: 268)                                                     
Line protocol current state : UP (spoofing)                                     
Last line protocol up time : 2012-08-28 19:15:47                          
Description:      
Route Port,The Maximum Transmit Unit is 1500                                    
Internet Address is 10.10.1.1/32                                              
Current system time: 2012-08-28 19:15:50                                  
Physical is Loopback                                                            
    Last 300 seconds input rate 0 bits/sec, 0 packets/sec                       
    Last 300 seconds output rate 0 bits/sec, 0 packets/sec                      
    Input: 0 packets,0 bytes                                                    
           0 unicast,0 broadcast,0 multicast                                    
           0 errors,0 drops                                                     
    Output:0 packets,0 bytes                                                    
           0 unicast,0 broadcast,0 multicast                                    
           0 errors,0 drops                                                     
    Last 300 seconds input utility rate:  0.00%                                 
    Last 300 seconds output utility rate: 0.00%                               
Table 6-32  Description of the display interface loopback command output

Item

Description

LoopBack6 current state

Physical status of the loopback interface. After a loopback interface is created, the physical status keeps Up.

Line protocol current state

Link layer protocol status of the interface. After a loopback interface is created, the status of the link layer protocol keeps Up.

Last line protocol up time

Last time the link-layer protocol of the interface goes Up.

Description

Description of the interface. The description helps you to know the functions of the interface.

The Maximum Transmit Unit is

Maximum transmission unit (MTU). The default MTU is 1500 bytes. Packets whose size is greater than the MTU are fragmented before being transmitted. If fragmentation is not allowed, the packets are discarded.

Internet Address is

IP address of the interface.

Current system time

Current system time.

If the system is configured with a time zone and is in the summer time, the time is displayed in the format of YYYY/MM/DD HH:MM:SS UTC±HH:MM DST.

Physical is Loopback

Information about the link at the physical layer.

Last 300 seconds input rate

Average rates at which the interface receives packets and bytes in the last five minutes.

Last 300 seconds output rate

Average rates at which the interface sends packets and bytes in the last five minutes.

Input

Total number of packets and the total number of bytes received by the interface.

Output

Total number of packets and the total number of bytes sent by the interface.

Last 300 seconds input utility rate

Inbound bandwidth utilization within the last 300 seconds.

Last 300 seconds output utility rate

Outbound bandwidth utilization within the last 300 seconds.

Related Topics

display interface null

Function

Using the display interface null command, you can view the status of a null interface.

Format

display interface null [ 0 | main ]

Parameters

Parameter Description Value
0 Specifies the number of the null interface. The value can be 0 only.
main Specifies the status of a null interface. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The display interface null command displays the status of a null interface. The interface status information includes: the physical status, link layer protocol status, description, MTU, IP address, current system time, last time statistics about the null interface are cleared, incoming and outgoing packet rates in bit/s and pps, total numbers of packets and bytes received and sent by the null interface, and percentages of the rates for receiving and sending packets to the total bandwidth.

Precautions

There is only one null interface, namely, NULL 0.

Example

# Display the status of Null 0 interface.

<HUAWEI> display interface null 0
NULL0 current state : UP (ifindex: 1)                                           
Line protocol current state : UP (spoofing)                                     
Description:                                                                    
Route Port,The Maximum Transmit Unit is 1500                                    
Internet protocol processing : disabled                                         
Current system time: 2013-09-14 15:30:47                                        
Physical is NULL DEV                                                            
    Last 300 seconds input rate 0 bits/sec, 0 packets/sec                       
    Last 300 seconds output rate 0 bits/sec, 0 packets/sec                      
    Input: 0 packets,0 bytes                                                    
           0 unicast,0 broadcast,0 multicast                                    
           0 errors,0 drops                                                     
    Output:0 packets,0 bytes                                                    
           0 unicast,0 broadcast,0 multicast                                    
           0 errors,0 drops                                                     
    Last 300 seconds input utility rate:  0.00%                                 
    Last 300 seconds output utility rate: 0.00%  
Table 6-33  Description of the display interface null command output

Item

Description

NULL0 current state

Physical status of the null interface. The physical status of the null interface remains Up.

Line protocol current state

Link layer protocol status of the null interface. The link layer protocol status of the null interface remains Up.

Description

Description of the interface. The description helps know the functions of the interface.

The Maximum Transmit Unit is

Maximum transmission unit (MTU). The value is 1500 bytes.

Internet protocol processing : disabled

No IP address is assigned to the interface.

Current system time

Current system time.

If the system is configured with a time zone and is in the summer time, the time is displayed in the format of YYYY/MM/DD HH:MM:SS UTC±HH:MM DST.

Physical is NULL DEV

The interface does not exist physically.

Last 300 seconds input rate

Rates for receiving the bytes and the packets by the interface in the last five minutes.

Last 300 seconds output rate

Rates for sending the bytes and the packets by the interface in the last five minutes.

Input

Total number of packets and total number of bytes received by the interface.

Output

Total number of packets and total number of bytes sent by the interface.

Last 300 seconds input utility rate

Inbound bandwidth utilization within the last 300 seconds.

Last 300 seconds output utility rate

Outbound bandwidth utilization within the last 300 seconds.

Related Topics

dot1q termination vid

Function

The dot1q termination vid command sets the single VLAN ID for Dot1q termination on a Layer 3 sub-interface.

The undo dot1q termination vid command deletes the single VLAN ID for Dot1q termination on a Layer 3 sub-interface.

By default, the single VLAN ID for Dot1q termination is not set on a Layer 3 sub-interface. That is, a Layer 3 sub-interface uses Dot1q for encapsulation by default.

Format

dot1q termination vid vid

undo dot1q termination vid vid

NOTE:

Only the CE6810LI does not support configuring Layer 3 sub-interfaces.

Parameters

Parameter

Description

Value

vid

Specifies the value of the VLAN tag in user packets.

The value is an integer that ranges from 1 to 4063.

Views

Layer 3 sub-interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

  • Communication between VLANs

    VLANs are widely used because they can separate Layer 2 packets. A physical LAN is divided into multiple logical broadcast domains. Hosts in the same VLAN can communicate with each other but the hosts of different VLANs cannot. The Layer 3 routing technology is used for communication between hosts of different VLANs in the following two methods:
    • Through the VLANIF interface on the Layer 3 switch.
    • Through the Layer 3 Ethernet interface on the Layer 3 switch.

      However, when a traditional Layer 3 Ethernet interface receives VLAN packets, the VLAN packets are discarded. To enable communication between hosts of different VLANs, you can create an Ethernet Layer 3 sub-interface on the Layer 3 Ethernet interface and enable QinQ termination on the Layer 3 sub-interface to remove the tag from the VLAN packet.

  • Communication between a LAN and a WAN

    Most packets on a LAN have VLAN tags, but some WAN protocols such as ATM, FR, and PPP, cannot identify VLAN packets. To send a VLAN packet from LAN to WAN, the device records VLAN information in the packet, removes the VLAN tag, and forwards the packet.

Based on the number of tags, VLAN packets can be classified into Dot1q packets and QinQ packets. A Dot1q packet carries a single-layer VLAN tag and a QinQ packet carries a double-layer VLAN tag. Accordingly, there are two VLAN tag termination modes:
  • Dot1q termination, which terminates tags carried in Dot1q packets

    To configure Dot1q termination, run the dot1q termination vid command.

  • QinQ termination, which terminates tags carried in QinQ packets.

    NOTE:

    The current device does not support the QinQ termination.

After the dot1q termination vid command is run, the Layer 3 sub-interface for VLAN tag termination processes the packet in the following procedures:
  • The Layer 3 sub-interface removes the tag in the VLAN packet when receiving the packet and forwards the packet on Layer 3. The outbound interface determines whether the forwarded VLAN packet carries tags.
  • The Layer 3 sub-interface adds VLAN information to the packet and then sends the packet.

Precautions

The tag values of the user packet received by the Layer 3 sub-interface must be the specified vid in the command; otherwise, the packet is discarded.

Example

# Set the encapsulation mode on 10GE1/0/1.1 to Dot1q and allow the packets with the VLAN tag 100 to pass through.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1.1
[*HUAWEI-10GE1/0/1.1] dot1q termination vid 100

interface loopback

Function

The interface loopback command creates a loopback interface.

The undo interface loopback command deletes a loopback interface.

Format

interface loopback loopback-number

undo interface loopback loopback-number

Parameters

Parameter Description Value
loopback-number Specifies the number of a loopback interface. The value is an integer that ranges from 0 to 1023.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

A loopback interface is always Up.

The IP address of a loopback interface is usually specified as the source address of packets.

Example

# Create loopback interface 5.

<HUAWEI> system-view
[~HUAWEI] interface loopback 5
[*HUAWEI-LoopBack5]

interface null

Function

Using the interface null command, you can enter the null interface view.

Format

interface null 0

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The Null0 interface never forwards or accepts any traffic. All traffic sent to this interface is directly discarded. Unnecessary traffic can be sent to the Null0 interface to avoid using ACLs.

Precautions

There is only one null interface, named null0. This interface is always Up and cannot be shut down or deleted.

Example

# Enter the view of the Null0 interface.

<HUAWEI> system-view
[~HUAWEI] interface null 0
[~HUAWEI-NULL0]
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 69055

Downloads: 374

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next