Layer 2 - LAN Switching Command Reference

HomeSupportWLANH3C WA2200 Series WLAN Access PointsReference GuidesCommand ReferencesH3C WA Series WLAN Access Points Command Reference-6W100Layer 2 - LAN Switching Command Reference
03-Loopback and Null Interface Commands
Title Size Download
03-Loopback and Null Interface Commands 45.68 KB

l          The models listed in this document are not applicable to all regions. Please consult your local sales office for the models applicable to your region.

l          Support of the H3C WA series WLAN access points (APs) for commands may vary by AP model. For more information, see Feature Matrix.

l          The interface types and the number of interfaces vary by AP model.

 

Loopback and Null Interface Configuration Commands

description

Syntax

description text

undo description

View

Loopback interface view, Null 0 interface view

Default Level

2: System level

Parameters

text: Creates an interface description, a string of 1 to 80 characters. Valid characters and symbols include English letters (A to Z, a to z), digits (1 to 9), special English characters, spaces, and other Unicode characters and symbols.

 

l          Each Unicode character takes the space of two regular characters.

l          To use a type of Unicode characters or symbols in an interface description, install the specific input method editor and log in to the AP through remote login software that supports this character type.

l          When the length of a description string reaches or exceeds the maximum line width on the terminal software, the software starts a new line, possibly breaking a Unicode character into two. As a result, garbled characters may be displayed at the end of a line.

 

Description

Use the description command to set a description for the current interface.

Use the undo description command to restore the default.

By default, the description of an interface is the interface name followed by the word interface, Loopback1 interface for example.

Related commands: display interface (Ethernet Interface in the Layer 2 – LAN Switching Command Reference).

Examples

# Configure the description of loopback interface Loopback 0 as loopback0.

<Sysname> system-view

[Sysname] interface loopback 0

[Sysname- loopback0] description loopback0

display interface loopback

Syntax

display interface loopback [ interface-number ]

View

Any view

Default Level

1: Monitor level

Parameters

interface-number: Loopback interface number, which is fixed to 0.

Description

Use the display interface loopback command to display the information about a Loopback interface. If you do not specify the interface-number argument, this command will display the information about all the existing Loopback interfaces.

Related commands: interface loopback.

Examples

# Display the information about interface Loopback 0.

<Sysname> display interface loopback 0

LoopBack0 current state: UP

Line protocol current state: UP (spoofing)

Description: LoopBack0 Interface

The Maximum Transmit Unit is 1536

Internet protocol processing : disabled

Physical is Loopback

    Last 300 seconds input:  0 bytes/sec, 0 bits/sec, 0 packets/sec

    Last 300 seconds output:  0 bytes/sec, 0 bits/sec, 0 packets/sec

    0 packets input, 0 bytes, 0 drops

    0 packets output, 0 bytes, 0 drops

Table 1-1 display interface loopback command output description

Field

Description

current state

Physical state of the interface (up or administratively down)

Line protocol current state

State of the data link layer protocol: up (spoofing). Spoofing refers to the spoofing attribute of the interface. That is, when the network layer protocol state of the interface is displayed as up, the corresponding link may not exist, or the corresponding link is non-permanent and established on demand.

Description

Description string of the interface

The Maximum Transmit Unit

Maximum transmit unit (MTU) of the interface

Internet protocol processing

State of the network layer protocol, which can be disabled or enabled (displayed as Internet Address is X.X.X.X/XX Primary)

Physical

Physical type of the interface

Last 300 seconds input:  0 bytes/sec, 0 bits/sec, 0 packets/sec

Average input rate over the last 300 seconds, where:

l      packets/sec indicates the average number of packets received per second.

l      bytes/sec indicates the average number of bytes received per second.

l      bits/sec indicates the average number of bits received per second.

Last 300 seconds output:  0 bytes/sec, 0 bits/sec, 0 packets/sec

Average output rate over the last 300 seconds, where:

l      packets/sec indicates the average number of packets sent per second.

l      bytes/sec indicates the average number of bytes sent per second.

l      bits/sec indicates the average number of bits sent per second.

0 packets input, 0 bytes, 0 drops

Total number and size (in bytes) of the input packets of the interface and the number of the dropped packets

0 packets output, 0 bytes, 0 drops

Total number and size (in bytes) of the output packets of the interface and the number of the dropped packets

 

display interface null

Syntax

display interface null [ 0 ]

View

Any view

Default Level

1: Monitor level

Parameters

0: Specifies the Null interface. This null interface number is fixed to 0.

Description

Use the display interface null command to display the information about the null interface. Because Null 0 interface is the only null interface on the AP, this command displays information about Null 0 interface even if you do not specify the 0 keyword.

Related commands: interface null.

Examples

# Display information about null interface Null 0.

<Sysname> display interface null 0

NULL0 current state :UP

Line protocol current state :UP (spoofing)

Description :  NULL0 Interface

The Maximum Transmit Unit is 1500

Internet protocol processing : disabled

Physical is NULL DEV

    Last 300 seconds input:  0 bytes/sec, 0 bits/sec, 0 packets/sec

    Last 300 seconds output:  0 bytes/sec, 0 bits/sec, 0 packets/sec

    0 packets input, 0 bytes, 0 drops

    0 packets output, 0 bytes, 0 drops

See Table 1-1 for the description on the fields in the display interface null command output.

interface loopback

Syntax

interface loopback interface-number

undo interface loopback interface-number

View

System view

Default Level

2: System level

Parameters

interface-number: Loopback interface number, which is fixed to 0.

Description

Use the interface loopback command to create a Loopback interface or enter Loopback interface view.

Use the undo interface loopback command to remove a Loopback interface.

Related commands: display interface loopback.

Examples

# Create interface Loopback 0.

<Sysname> system-view

[Sysname] interface loopback 0

[Sysname-LoopBack0]

interface null

Syntax

interface null 0

View

System view

Default Level

2: System level

Parameters

0: Specifies the null interface number.

Description

Use the interface null command to enter null interface view.

An AP has only one null interface, the Null 0 interface. Null 0 interface is always up and cannot be removed.

Related commands: display interface null.

Examples

# Enter Null 0 interface view.

<Sysname> system-view

[Sysname] interface null 0

[Sysname-NULL0]

reset counters interface

Syntax

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

View

User view

Default Level

2: System level

Parameters

interface-type: Logical interface type.

interface-number: Logical interface number.

interface-number.subnumber: Logical subinterface number, where interface-number is an interface number and subnumber is the number of a subinterface created under the interface. The value of subnumber ranges from 1 to 4094.

Description

Use the reset counters interface command to clear the statistics of a logical interface/subinterface.

Before collecting traffic statistics within a specific period of time on a logical interface, you need to clear the existing statistics.

l          If no interface type is specified, this command clears the statistics on all interfaces in the system.

l          If only the interface type is specified, this command clears the statistics on logical interfaces of the specified interface type.

l          If both the interface type and interface number are specified, this command clears the statistics on the specified logical interface.

Examples

# Clear the statistics on loopback interface Loopback 0.

<Sysname> reset counters interface loopback 0

shutdown

Syntax

shutdown

undo shutdown

View

Loopback interface view

Default Level

2: System level

Parameters

None

Description

Use the shutdown command to shut down the current loopback interface.

Use the undo shutdown command to bring up the current loopback interface.

By default, a loopback interface is up.

Examples

# Shut down loopback interface Loopback 0.

<Sysname> system-view

[Sysname] interface loopback 0

[Sysname-Loopback0] shutdown

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网