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

AR500, AR510, and AR530 V200R007 Commands Reference

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

NOTE:

AR502G-L-D-H, AR502GR-L-D-H do not support the dialer interface and the Virtual-Template (VT) interface.

The AR550 series do not support the Virtual-Template (VT) interface.

The AR510 series (except AR511EGW-LcAV2, AR515GW-LM9-D and AR515CGW-L) do not support the Virtual-Template (VT) and Virtual-Ethernet (VE) interface.

arp broadcast

Function

The arp broadcast command enables ARP broadcast on a VLAN tag termination sub-interface.

The undo arp broadcast command disables ARP broadcast on a VLAN tag termination sub-interface.

By default, ARP broadcast is enabled on a VLAN tag termination sub-interface.

Format

arp broadcast enable

undo arp broadcast enable

arp broadcast disable

undo arp broadcast disable

Parameters

None

Views

Ethernet sub-interface view, GE sub-interface view, Eth-Trunk sub-interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

VLAN tag termination sub-interfaces discard broadcast packets after receiving the packets. To permit a VLAN tag termination sub-interface to forward broadcast packets, run the arp broadcast enable command on the sub-interface to enable ARP broadcast.

You can also use the arp broadcast disable command to disable ARP broadcast on a VLAN tag termination sub-interface, and run the undo arp broadcast disable command to enable ARP broadcast on a VLAN tag termination sub-interface.

Configuration Impact

When IP packets need to be sent from a VLAN tag termination sub-interface:
  • The system discards IP packets when ARP broadcast is not enabled on the VLAN tag termination sub-interface.

  • The system tags an ARP broadcast packet and forwards it through the VLAN tag termination sub-interface when ARP broadcast is enaled run on the VLAN tag termination sub-interface.

Precautions

When you enable or disable ARP broadcast on a VLAN tag termination sub-interface, the routing status of the sub-interface becomes Down and then Up. This may result in route flapping on the entire network, affecting services.

Example

# Enable ARP broadcast on Ethernet0/0/1.1.

<Huawei> system-view
[Huawei] interface ethernet 0/0/1.1
[Huawei-Ethernet0/0/1.1] dot1q termination vid 10
[Huawei-Ethernet0/0/1.1] arp broadcast enable

display dot1q information

Function

The display dot1q information termination command displays the configuration of a dot1q sub-interface.

Format

display dot1q information termination [ interface interface-type interface-number [.subinterface-number ] ]

Parameters

Parameter Description Value
interface interface-type interface-number Specifies the type and number of an interface. -
subinterface-number Specifies the number of a sub-interface. The value is an integer that ranges from 1 to 4096.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After configuring dot1q termination on sub-interfaces, run the display dot1q information termination command to view the sub-interfaces where dot1q termination is configured and configuration of the dot1q sub-interfaces.

Example

# Display the configuration of all dot1q sub-interfaces.

<Huawei> display dot1q information termination
  Ethernet0/0/1.3
    Total QinQ Num: 1
    dot1q  termination vid 3
    Total vlan-group Num: 0
Table 4-29  Description of the display dot1q information command output

Item

Description

Ethernet0/0/1.3

Sub-interface name.

Total QinQ Num

Number of QinQ entries configured for user packets on a sub-interface.

dot1q termination vid 3

VLAN allowed by a sub-interface.

Total vlan-group Num

Number of VLAN groups configured on a sub-interface.

Related Topics

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 ]

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.

-

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                                                    
Line protocol current state : UP (spoofing)                                     
Description:HUAWEI, AR Series, LoopBack6 Interface                              
Route Port,The Maximum Transmit Unit is 1500                                    
Internet Address is 10.10.1.1/32                                              
Physical is Loopback                                                            
Current system time: 2012-05-28 11:20:08                                        
    Last 300 seconds input rate 0 bits/sec, 0 packets/sec                       
    Last 300 seconds output rate 0 bits/sec, 0 packets/sec                      
    Realtime 2 seconds input rate 0 bits/sec, 0 packets/sec                     
    Realtime 2 seconds output rate 0 bits/sec, 0 packets/sec                    
    Input: 0 bytes                                                              
    Output:0 bytes                                                              
    Input bandwidth utilization  :    0%                                        
    Output bandwidth utilization :    0%                  
Table 4-30  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.

Description

Description of the interface. Up to 242 case-sensitive characters (including spaces) can be entered. 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.

Physical is Loopback

Information about the link at the physical layer.

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.

Last 300 seconds input rate

Last 300 seconds output rate

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

You can run the set flow-stat interval command to change the interval at which traffic statistics are collected.

Realtime 2 seconds input rate

Realtime 2 seconds output rate

Real-time rates at which the interface sends and receives packets and bytes within 2 seconds.

It refers to the interval between two display commands that are run on the same interface. The maximum value is the statistical interval displayed in the previous piece of information. This entry is displayed only when information about a logical interface is viewed.

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.

Input bandwidth utilization

Percentage of the packet receiving to the total bandwidth.

Output bandwidth utilization

Percentage of the packet sending rate to the total bandwidth.

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 ]

Parameters

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

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                                                        
Line protocol current state : UP (spoofing)                                     
Description:HUAWEI, AR Series, NULL0 Interface                                  
Route Port,The Maximum Transmit Unit is 1500                                    
Internet protocol processing : disabled                                         
Physical is NULL DEV                                                            
Current system time: 2012-08-28 15:09:56                                        
    Last 300 seconds input rate 0 bits/sec, 0 packets/sec                       
    Last 300 seconds output rate 0 bits/sec, 0 packets/sec                      
    Realtime 2 seconds input rate 0 bits/sec, 0 packets/sec                     
    Realtime 2 seconds output rate 0 bits/sec, 0 packets/sec                    
    Input: 0 bytes                                                              
    Output:0 bytes                                                              
    Input bandwidth utilization  :    0%                                        
    Output bandwidth utilization :    0%    
Table 4-31  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. Up to 242 case-sensitive characters (including spaces) can be entered. 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.

Physical is NULL DEV

The interface does not exist physically.

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.

Last 300 seconds input rate

Last 300 seconds output rate

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

Realtime 2 seconds input rate

Realtime 2 seconds output rate

Real-time rates of sending and receiving the bytes and the packets within 2 seconds.

It refers to the interval between two display commands that are run on the same interface. The maximum value is the statistical interval displayed in the previous piece of information. This entry is displayed only when information about a logical interface is viewed.

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.

Input bandwidth utilization

Percentage of the rate for receiving packets to the total bandwidth.

Output bandwidth utilization

Percentage of the rate for sending packets to the total bandwidth.

Related Topics

display interface virtual-ethernet

Function

The display interface virtual-ethernet command displays the status of a virtual Ethernet (VE) interface.

If no interface number is specified, information about all VE interfaces is displayed.

Format

display interface virtual-ethernet [ ve-number ]

Parameters

Parameter Description Value
ve-number Specifies the number of a VE interface. The interface number consists of the slot ID, card number, and sequence number. The VE sequence number of the AR500 series range from 0 to 127. The VE sequence number of the AR510 series range from 0 to 7.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display interface virtual-ethernet command displays the status of a VE interface, including the current physical status, link layer protocol status, last time the link layer protocol status goes Up, description, MTU, IP address, frame format, maximum QoS bandwidth, output queue status, and current system time.

Example

# Display the status of VE 0/0/0.

<Huawei> display interface virtual-ethernet 0/0/0
Virtual-Ethernet0/0/0 current state : UP
Line protocol current state : UP
Description:HUAWEI,  Series, Virtual-Ethernet0/0/0 Interface
Route Port,The Maximum Transmit Unit is 1500
Internet protocol processing: 10.1.1.1/24
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0000-0000-0000
Current system time: 2010-09-07 15:27:28                                       
    Input bandwidth utilization  : 0%                                        
    Output bandwidth utilization : 0%  
Table 4-32  Description of the display interface virtual-Ethernet command output

Item

Description

Virtual-Ethernet0/0/0 current state

Physical status of the VE interface:
  • UP: indicates that the interface works properly.

  • DOWN: indicates that the physical connection of the interface is Down.

  • Administratively down: indicates that the administrator has run the shutdown command on the interface.

Line protocol current state

Link layer protocol status of the interface:
  • UP: indicates that the link layer protocol on the interface is Up.

  • DOWN: indicates that the link layer protocol on the interface is Down or no IP address is assigned to the interface.

Description

Description of the interface. A maximum of 242 case-sensitive characters (including spaces) can be entered. The description helps know the functions of the interface.

The Maximum Transmit Unit is

MTU of the interface. The default value of the MTU is 1500 bytes on a serial interface. Packets whose size is greater than the MTU are fragmented before being transmitted. If fragmentation is not allowed, the packets are discarded.

Internet protocol processing : disabled

No IP address is assigned to the interface, the information is displayed as "Internet protocol processing : disabled ".

If an IP address is assigned to the interface, the IP address and subnet mask are displayed.

IP Sending Frames' Format is

Frame format of the sent IP packets.

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.

Input bandwidth utilization

Percentage of the rate for receiving packets to the total bandwidth.

Output bandwidth utilization

Percentage of the rate for sending packets to the total bandwidth.

display interface virtual-template

Function

Using the display interface virtual-template command, you can view the status of a virtual template (VT) interface.

Format

display interface virtual-template [ vt-number ]

Parameters

Parameter Description Value
vt-number Displays the status of the specified VT interface. If no VT number is specified, the status of all VT interfaces is displayed. The value is an integer that ranges from 0 to 1023.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display interface virtual-template command displays the status of a VT interface, including the current physical status, link layer protocol and its status, IP address, description, output queue status, incoming and outgoing packet rates in bit/s and pps, total numbers of packets and bytes received and sent by the VT interface, and percentages of the rates for receiving and sending packets to the total bandwidth.

Example

# Display the status of a specified VT interface.

<Huawei> display interface virtual-template 1
Virtual-Template1 current state : UP
Line protocol current state :UP (spoofing)
Description:HUAWEI, AR Series, Virtual-Template1 Interface
Route Port,The Maximum Transmit Unit is 1500
Internet Address is 10.1.1.1/24
Link layer protocol is PPP
LCP initial, MP opened
Physical is None, baudrate is 64000 bps
Current system time: 2007-09-06 20:57:31
    Last 300 seconds input rate 0 bits/sec, 0 packets/sec
    Last 300 seconds output rate 0 bits/sec, 0 packets/sec
    Realtime 2 seconds input rate 0 bits/sec, 0 packets/sec
    Realtime 2 seconds output rate 0 bits/sec, 0 packets/sec
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%
Table 4-33  Description of the display interface virtual-template command output

Item

Description

Virtual-Template1 current state

Physical status of the VT interface:
  • UP: indicates that the interface works properly.

Line protocol current state

Link layer protocol status of the interface:
  • UP (spoofing): indicates that the link layer protocol of the interface is always Up with the spoofing feature enabled.

Link layer protocol is

Link layer protocol.

Internet Address is

IP address assigned to the interface. If no IP address is assigned to the interface, "Internet protocol processing : disabled" is displayed.

LCP initial, MP opened

Indicates the status of LCP.

Description

Description of the interface. A maximum of 242 case-sensitive characters (including spaces) can be entered. The description helps you to know the functions of the interface.

The Maximum Transmit Unit is

MTU of the interface. The default value of the MTU is 1500 bytes on a serial interface. Packets whose size is greater than the MTU are fragmented before being transmitted. If fragmentation is not allowed, the packets are discarded.

Physical is None

No physical interface exists. Logical interfaces do not exist physically.

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.

Last 300 seconds input rate

Last 300 seconds output rate

Rates of the bytes and the packets that the interface sends and receives in the last 300 seconds.

Realtime 2 seconds input rate

Realtime 2 seconds output rate

Real-time rates of sending and receiving the bytes and the packets within 2 seconds.

It refers to the interval between two display commands that are run on the same interface. The maximum value is the statistical interval displayed in the previous piece of information. This entry is displayed only when information about a logical interface is viewed.

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.

Input bandwidth utilization

Percentage of the rate for receiving packets to the total bandwidth.

Output bandwidth utilization

Percentage of the rate for sending packets to the total bandwidth.

display qinq information

Function

Using the display qinq information command, you can view the names of all the interfaces configured with QinQ termination and the number of QinqQ on the interfaces.

Format

display qinq information termination [ interface interface-type interface-number [.subinterface-number ] ]

Parameters

Parameter Description Value
interface interface-type interface-number Specifies the type and number of an interface. -
subinterface-number Specifies the number of a sub-interface. The value is an integer that ranges from 1 to 4096.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After configuring the qinq termination, you can run the display qinq information command to view the interfaces configured with qinq termination and the related configuration of qinq termination.

Example

# Display all the sub-interfaces configured with QinQ termination.

<Huawei> display dot1q information termination
  Ethernet0/0/1.30
    Total QinQ Num: 1
    qinq termination pe-vid 300 ce-vid 200
    Total vlan-group Num: 0
Table 4-34  Description of the display qinq information command output

Item

Description

Ethernet0/0/1.30

Sub-interface name.

Total QinQ Num

Number of QinQ entries configured for user packets on a sub-interface.

Total vlan-group Num

Number of VLAN groups configured on a sub-interface.

display virtual-access

Function

The display virtual-access command displays the virtual access interface status.

Format

display virtual-access [ vt vt-number | dialer dialer-interface-number | user user-name | peer peer-address | va-number ]*

Parameters

Parameter Description Value
vt vt-number Specifies the number of the VT interface bound to the VA interface. The value is an integer that ranges from 0 to 1023.
dialer dialer-interface-number Specifies the number of the dialer interface bound to the VA interface.

The value is an integer that ranges from 0 to 127.

user user-name Specifies the user name for logging in to the VA interface. The value is a string of 1 to 64 case-sensitive characters without spaces.
peer peer-address Specifies the IP address of the peer device connected to the VA interface. The value is in dotted decimal notation.
va-number Specifies the number of the VA interface. The value is an integer that ranges from 0 to 1023.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

A VA interface is generated after the VT interface is instantialized. A VA interface is generated for one PPP connection. For example, a VA interface is generated for a PPPoE session or a PPPoFR connection.

When monitoring the interface status or locating faults on an interface, you can run the display virtual-access command to obtain the status of and statistics on the interface.

If no parameter is specified, the status of all VT interfaces are displayed.

Example

# Display the status of all VA interfaces when a VA interface is generated on a VT interface.

<Huawei> display virtual-access
Virtual-Template1:0 current state : UP                                          
Line protocol current state : UP                                                
Last line protocol up time : 2012-07-18 10:54:39                                
Description:HUAWEI, AR Series, Virtual-Template1:0 Interface                    
Route Port,The Maximum Transmit Unit is 1500, Hold timer is 10(sec)             
Link layer protocol is PPP                                                      
LCP opened, MP opened, IPCP opened                                              
Physical is MP                                                                  
Current system time: 2012-07-18 10:56:28                                        
    Last 300 seconds input rate 0 bits/sec, 0 packets/sec                       
    Last 300 seconds output rate 0 bits/sec, 0 packets/sec                      
    Realtime 0 seconds input rate 0 bits/sec, 0 packets/sec                     
    Realtime 0 seconds output rate 0 bits/sec, 0 packets/sec                    
    Input: 0 bytes                                                              
    Output:0 bytes                                                              
    Input bandwidth utilization  :    0%                                        
    Output bandwidth utilization :    0%   
Table 4-35  Description of the display virtual-access command output

Item

Description

Virtual-Template1:0 current state

Virtual-Template interface status:
  • UP: indicates that the physical status of the interface is Up.

  • DOWN: indicates that the physical status of the interface is Down.

In this field, the number following Virtual-Template indicates "VT interface number:VA interface number". For example, 1:0 indicates that the VT interface number is 1 and VA interface number is 0.

Line protocol current state

Link layer protocol status of the interface:
  • UP: indicates that the link layer protocol status of the interface is Up.

  • DOWN: indicates that the link layer protocol status of the interface is Down or no IP address is assigned to the interface.

Last line protocol up time

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

Description

Interface description.

The Maximum Transmit Unit is

Maximum Transmission Unit (MTU) of the interface. The default MTU on a serial interface is 1480 bytes. Packets whose size is greater than the MTU are fragmented before being transmitted. If non-fragmentation is enabled, the packets are discarded.

Run the mtu command to set the maximum transmission unit (MTU) of an interface.

Hold timer is

Lifecycle of a packet. If a packet is not sent out before the hold timer times out, the packet is discarded.

Link layer protocol is

Link layer protocol type.

LCP

Status of the Link Control Protocol (LCP).

The LCP status is as follows:
  • Initial: indicates that the physical layer is unavailable.
  • Starting: indicates that the physical layer is starting. The device retains in Starting state for a short time.
  • Closed: indicates that the device sends a Terminate-Ack packet to terminate the connection after receiving the Configure-Request packet.
  • Stopped: indicates that the device receives the Configure-Request packet, but does not receive a Configure-Ack packet from the peer device. In this case, the device sends a Terminate-Ack packet.
  • Closing: indicates that the connection is being closed. The device enters the Closed state if the device receives a Configure-Ack packet from the peer device or the timer expires. The device retains in Closing state for a short time.
  • Stopping: indicates that the connection is being closed to prevent subsequent traffic transmission. The device retains in Stopping state for a short time.
  • Req-Sent: indicates an attempt to establish a connection. The device sends a Configure-Request packet, but does not receive a Configure-Ack packet from the peer device.
  • Ack-Rcvd: indicates that the device sends a Configure-Request packet and receives a Configure-Ack packet from the peer device but does not receive a Configure-Ack packet to the peer device.
  • Ack-Sent: indicates that the device sends a Configure-Request packet and a Configure-Ack packet to the peer device and receives a Configure-Ack packet from the peer device.
  • Opened: indicates that the device sends a Configure-Ack packet to the peer device and receives a Configure-Ack packet from the peer device. The link layer works properly.

MP

MP link status. If the MP link is in Opened state, the MP link works properly. The MP link is in Opened state only when the LCP status of all member links in the MP link is Opened.

IPCP

Internet Protocol Control Protocol (IPCP) status of the MP link. If IPCP is in Opened state, the MP link works properly. The IPCP status of the MP link is Opened only when the IPCP status of the primary link in the MP link is Opened.

Current system time

Current system time.

If the time zone is configured and system time uses the daylight-saving-time (DST). The time is in YYYY/MM/DD HH:MM:SS UTC±HH:MM DST format.

Last 300 seconds input rate

Incoming packet rate (bits per second and packets per second) within the last 300 seconds.

Last 300 seconds output rate

Outgoing packet rate (bits per second and packets per second) within the last 300 seconds.

Realtime 0 seconds input rate

Rate of packets received when this command is being executed.

Realtime 0 seconds output rate

Rate of packets sent when this command is being executed.

Input

Total number of received packets.

Output

Total number of sent packets.

Input bandwidth utilization

Inbound bandwidth usage.

Output bandwidth utilization

Outbound bandwidth usage.

dot1q termination vid

Function

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

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

By default, the single VLAN ID for Dot1q termination is not set on a sub-interface.

Format

dot1q termination vid pe-vid

undo dot1q termination vid pe-vid

Parameters

Parameter

Description

Value

pe-vid

Specifies the value of the VLAN ID in user packets.

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

Views

Ethernet sub-interface view, GE sub-interface view, Eth-Trunk 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 router.
    • Through the Layer 3 Ethernet interface on the router.

      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 sub-interface on the Layer 3 Ethernet interface and enable QinQ termination on the 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 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.

    To configure QinQ termination, run the qinq termination pe-vid ce-vid command in the sub-interface view.

After the dot1q termination vid command is run, the sub-interface for VLAN tag termination processes the packet in the following procedures:
  • The 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 sub-interface adds VLAN information to the packet and then sends the packet.

Precautions

The tag values of the user packet received by the sub-interface must be in the range of pe-vids specified in the command; otherwise, the packet is discarded.

You can run this command multiple times; however, the VLANs that are allowed to pass the sub-interface must be different.

When you run the undo dot1q termination vid command to delete the single VLAN ID for Dot1q termination on a sub-interface, the VLAN ID must be the same as that specified in the dot1q termination vid command.

Configuration Impact

After you run this command to enable batch VLAN termination on a sub-interface, the sub-interface can only connect to an L2VPN but cannot be used for Layer 3 forwarding.

Example

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

<Huawei> system-view
[Huawei] interface ethernet 0/0/1.1
[Huawei-Ethernet0/0/1.1] dot1q termination vid 100

mtu

Function

The mtu command sets the maximum transmission unit (MTU) of an interface.

The undo mtu command restores the default MTU of an interface.

By default, the MTU of an interface is 1500 bytes.

Format

mtu size

undo mtu

Parameters

Parameter Description Value
size

Specifies the MTU of an interface.

The value is an integer that ranges from 128 to 1500, in bytes.

Views

dialer interface view, virtual template interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Generally, the IP layer limits the size of a packet sent each time. Any time the IP layer receives an IP packet, it checks to which local interface the packet needs to be sent and obtains the MTU of the interface. Then, the IP layer compares the MTU with the packet size. If the packet size is larger than the MTU, the IP layer disassembles the packet to fragments smaller than the MTU.

If forcible unfragmentation is configured, oversized packets are discarded at the IP layer. To prevent packet loss on the network, oversized packets must be forcibly fragmented. You can run the mtu command to set the size of a fragment.

Precautions

After running the mtu command on an interface, restart the interface to make the configured MTU take effect.

You can restart an interface by using the following methods:
NOTE:

The device does not support restart of a virtual template interface.

Example

# Set the MTU of Virtual-template 10 to 1200 bytes.

<Huawei> system-view
[Huawei] interface virtual-template 10
[Huawei-Virtual-Template10] mtu 1200
[Huawei-Virtual-Template10] restart

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 at the physical layer and link layer unless it is manually shut down.

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]

interface virtual-ethernet

Function

Using the interface virtual-ethernet command, you can create a virtual Ethernet (VE) interface.

Using the undo interface virtual-ethernet command, you can delete a VE interface.

Format

interface virtual-ethernet ve-number

undo interface virtual-ethernet ve-number

Parameters

Parameter Description Value
ve-number Specifies the number of a VE interface, in the format of slot number/card number/sequence number. The card number can be the number of an absent card. The VE sequence number of the AR500 series range from 0 to 127. The VE sequence number of the AR510 series range from 0 to 7.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A VE interface is a logical interface that has Ethernet features. When PPPoE packets or IPoE packets need to be transmitted over an ATM network, a VE interface is required to implement interworking between PPPoE and ATM, or between IPoE and ATM.

Precautions

If a VE interface is bound to a physical interface, you must unbind the VE interface from the physical interface before deleting the VE interface.

Example

# Create a VE interface 0/0/12.
<Huawei> system-view
[Huawei] interface virtual-ethernet 0/0/12
[Huawei-Virtual-Ethernet0/0/12]

interface virtual-template

Function

Using the interface virtual-template command, you can create a virtual template (VT) interface and enter the VT interface view.

Using the undo interface virtual-template command, you can delete a VT interface.

Format

interface virtual-template vt-number

undo interface virtual-template vt-number

Parameters

Parameter Description Value
vt-number Specifies the number of a VT interface. The VT sequence number of the AR500 series series range from 0 to 127. The VT sequence number of the AR510 series range from 0 to 7.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Layer 2 protocols such as PPP cannot transmit packets of each other, and need to communicate by using virtual access (VA) interfaces. When Layer 2 protocols need to communicate, the system automatically creates a VA interface. You can configure a VA interface only by setting attributes for a VT interface. A VT interface is used by the system to configure VA interfaces.

Prerequisites

A VT interface has been created before the system creates a VA interface.

Precautions

After a VT interface is deleted, all of its derived VA interfaces are deleted automatically.

The link layer protocol of a VT interface is Up only when VA interfaces in Up state exist on the VT interface.

Example

# Create VT interface 10.

<Huawei> system-view
[Huawei] interface virtual-template 10
[Huawei-Virtual-Template10]

qinq termination pe-vid ce-vid

Function

The qinq termination pe-vid ce-vid command configures QinQ termination on a sub-interface.

The undo qinq termination pe-vid ce-vid command cancels QinQ termination on a sub-interface.

By default, QinQ termination is disabled on a sub-interface.

Format

qinq termination pe-vid pe-vid ce-vid ce-vid

undo qinq termination pe-vid pe-vid ce-vid ce-vid

Parameters

Parameter

Description

Value

pe-vid pe-vid

Specifies the outer VLAN ID.

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

ce-vid ce-vid

Specifies the inner VLAN ID.

The value of ce-vid is an integer that ranges from 1 to 4094.

Views

Ethernet sub-interface view, GE sub-interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

  • Communication between VLANs

    The VLAN technology is widely used because it helps Layer 2 packets of different users to be separately transmitted. With the VLAN technology, a physical LAN is divided into multiple logical broadcast domains, that is, VLANs. In this manner, hosts in a VLAN can communicate with each other, but hosts in different VLANs cannot communicate at Layer 2. The Layer 3 routing technology is required for communication of hosts in different VLANs.

  • Communication between a LAN and a WAN

    Most packets on a LAN have VLAN tags, but some WAN protocols such as 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 in the sub-interface view.

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

    To configure Dot1q termination, run the qinq termination pe-vid ce-vid command.

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

Batch VLAN termination applies to the Terminal access scenario only.

Precautions

The MTU of a sub-interface must be at least 4 bytes smaller than the MTU of its primary interface. Especially, the MTU of a QinQ sub-interface must be at least 8 bytes smaller than the MTU of its primary interface.

Ethernet sub-interfaces of VDSL interfaces in PTM mode do not support QinQ commands.

Configuration Impact

After you run this command to enable batch VLAN termination on a sub-interface, the sub-interface can only connect to an L2VPN but cannot be used for Layer 3 forwarding.

Example

# Set the encapsulation mode on Ethernet0/0/1.1 to QinQ and allow the packets with the outer VLAN tag 100 and inner VLAN tag 200 to pass through.

<Huawei> system-view
[Huawei] interface ethernet 0/0/1.1
[Huawei-Ethernet0/0/1.1] qinq termination pe-vid 100 ce-vid 200
Related Topics

trigger trap

Function

Using the trigger trap command, you can configure an interface to send traps to the NMS.

Format

trigger trap { linkup | linkdown }

Parameters

Parameter Description Value
linkup Sends the LinkUp trap to the NMS. -
linkdown Sends the LinkDown trap to the NMS. -

Views

Loopback interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The traps configured by trigger trap are used to check whether the network between the NMS and device functions properly. If the NMS receives a trap sent from the interface, the network between the NMS and device functions properly; otherwise, a fault may occur on the network.

Prerequisites

Run the snmp-agent trap enable feature-name command to enable the LinkUp and LinkDown traps.

Precautions

The trigger trap command is used on loopback interfaces to check the network between the NMS and device. The interface status does not change according to the meaning of the trap. For example, if the trigger trap linkdown command is used, the loopback interface sends a LinkDown trap to the NMS but does not change its status to Down. If you have used the trigger trap linkdown command, you must run the trigger trap linkup command to clear the LinkDown trap on the NMS.

Example

# Configure a loopback interface to send the LinkUp trap to the NMS.

<Huawei> system-view
[Huawei] interface loopback 1
[Huawei-LoopBack1] trigger trap linkup
Translation
Download
Updated: 2019-05-29

Document ID: EDOC1000097293

Views: 49784

Downloads: 102

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