Encrypt interface commands -- bandwidth

Use bandwidth to set the expected bandwidth of an encrypt interface.

Use undo bandwidth to restore the default.

Syntax

bandwidth bandwidth-value

undo bandwidth

Default

The value is the interface baud rate divided by 1000 in kbps.

Views

Encrypt interface view

Predefined user roles

network-admin

mdc-admin

Parameters

bandwidth-value: Specifies an expected bandwidth in the range of 1 to 400000000 kbps.

Usage guidelines

The expected bandwidth of an interface affects the link costs in OSPF, OSPFv3, and IS-IS. For more information, see Layer 3—IP Routing Configuration Guide.

Examples

# Set the expected bandwidth to 50 kbps for Encrypt 2/4/0.

<Sysname> system-view

[Sysname] interface encrypt 2/4/0

[Sysname-Encrypt2/4/0] bandwidth 50

Encrypt interface commands -- description

Use description to configure the description of an interface.

Use undo description to restore the default.

Syntax

description text

undo description

Default

The description of an encrypt interface is Encrypt number Interface, for example, Encrypt2/4/0 Interface.

Views

Encrypt interface view

Predefined user roles

network-admin

mdc-admin

Parameters

text: Specifies a description for the interface, a case-sensitive string of 1 to 255 characters.

Examples

# Configure the description of Encrypt 2/4/0 as encrypt-intf.

<Sysname> system-view

[Sysname] interface encrypt 2/4/0

[Sysname-Encrypt2/4/0] description encrypt-intf

Encrypt interface commands -- display interface encrypt

Use display interface encrypt to display information about encrypt interfaces.

Syntax

display interface [ encrypt [ interface-number ] ] [ brief [ description | down ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface-number: Specifies an encrypt interface by its number.

brief: Displays brief information. If you do not specify this keyword, the command displays detailed information.

description: Displays complete interface descriptions. If you do not specify this keyword, the command displays only the first 27 characters of interface descriptions.

down: Displays information about encrypt interfaces in the physical state of DOWN and the causes. If you do not specify this keyword, the command displays information about encrypt interfaces in all states.

Usage guidelines

If you do not specify the encrypt keyword, this command displays information about all interfaces on the device.

If you specify the encrypt keyword without the interface-number argument, this command displays information about all existing encrypt interfaces.

Examples

# Display detailed information about Encrypt 2/4/0.

<Sysname> display interface encrypt 2/4/0

Encrypt2/4/0

Current state: DOWN

Line protocol state: DOWN

Description: Encrypt2/4/0 Interface

Bandwidth: 64kbps

Maximum Transmit Unit: 64000

Internet protocol processing: disabled

Physical: Encrypt2/4/0, baudrate: 64000 bps

Last 5 seconds input: 0 bytes/sec, 0 packets/sec

Last 5 seconds output: 0 bytes/sec, 0 packets/sec

Input: 0 packets, 0 bytes, 0 dropped

Output: 0 packets, 0 bytes, 0 dropped

# Display brief information about Encrypt 2/4/0.

<Sysname> display interface encrypt 2/4/0 brief

Brief information on interface(s) under route mode:

Link: ADM - administratively down; Stby - standby

Protocol: (s) - spoofing

Interface Link Protocol Main IP Description

En2/4/0 DOWN DOWN --

# Display information about encrypt interfaces in DOWN state and the causes.

<Sysname> display interface encrypt brief down

Brief information on interface(s) under route mode:

Link: ADM - administratively down; Stby - standby

Interface Link Cause

En2/4/0 ADM Administratively

En2/4/1 DOWN Not connected

En2/4/2 DOWN Not connected

En2/4/3 DOWN Not connected

En2/4/4 DOWN Not connected

En2/4/5 DOWN Not connected

En2/4/6 DOWN Not connected

En2/4/7 DOWN Not connected

Table 1 Command output

Field | Description
Encrypt2/4/0 Current state | Physical link state of the interface: · Administratively DOWN—The interface has been shut down by using the shutdown command. · DOWN—The interface is administratively up, but its physical state is down (possibly because no physical link exists or the link has failed). · UP—The interface is both administratively and physically up.
Line protocol state | Link layer protocol state of the interface: · UP—The data link layer protocol is up. · DOWN—The data link layer protocol is down.
Description | Description of the interface.
Bandwidth | Expected bandwidth for the interface.
Maximum Transmit Unit | MTU of the interface.
Physical | Physical link information for the interface.
baudrate | Baud rate of the interface.
Last 5 seconds input: 0 bytes/sec, 0 packets/sec | Average inbound traffic rate (in Bps and pps) in the last 5 seconds.
Last 5 seconds output: 0 bytes/sec, 0 packets/sec | Average outbound traffic rate (in Bps and pps) in the last 5 seconds.
Input: 0 packets, 0 bytes, 0 dropped | Number of received packets, received bytes, and packets dropped due to insufficient receiving buffer.
Output: 0 packets, 0 bytes, 0 dropped | Number of sent packets, sent bytes, and packets dropped due to insufficient transmitting buffer.
Brief information on interface(s) under route mode: | Brief information about Layer 3 interfaces.
Interface | Interface name.
Link | Physical link state of the interface: · UP—The link is physically up. · ADM—The interface has been shut down by using the shutdown command. To restore the physical state of the interface, use the undo shutdown command. · Stby—The interface is a backup interface in standby state. To see the primary interface, use the display interface-backup state command.
Protocol | Data link layer protocol state of the interface: · UP—The data link layer protocol of the interface is up. · DOWN—The data link layer protocol of the interface is down. · UP(s)—The data link layer protocol of the interface is up, but the link is an on-demand link or does not exist. The (s) attribute represents the spoofing flag. This value is typical of null interfaces and loopback interfaces.
Main IP | Primary IP address of the interface. This field displays two hyphens (--) if the interface does not have an IP address.
Cause | Cause for the physical link state of an interface to be DOWN: · Administratively—The interface has been manually shut down by using the shutdown command. To restore the physical state of the interface, use the undo shutdown command. · Not connected—No physical connection exists (possibly because the network cable is disconnected or faulty).

Related commands

interface encrypt

reset counters interface

Encrypt interface commands -- interface encrypt

Use interface encrypt to enter encrypt interface view.

Syntax

interface encrypt number

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

number: Specifies an encrypt interface by its number.

Examples

# Enter the view of encrypt interface Encrypt 2/4/0.

<Sysname> system-view

[Sysname] interface encrypt 2/4/0

[Sysname-Encrypt2/4/0]

Encrypt interface commands -- reset counters interface

Use reset counters interface to clear interface statistics.

Syntax

reset counters interface [ encrypt [ interface-number ] ]

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

encrypt: Specifies an encrypt interface.

interface-number: Specifies an interface by its number.

Usage guidelines

Use this command to clear old statistics so you can observe new traffic statistics on an encrypt interface.

· If you do not specify the encrypt keyword or an interface, this command clears statistics for all interfaces.

· If you specify the encrypt keyword but do not specify an interface, this command clears statistics for all encrypt interfaces.

· If you specify the encrypt keyword and an interface, this command clears statistics for the specified encrypt interface.

Examples

# Clear statistics for Encrypt 2/4/0.

<Sysname> reset counters interface encrypt 2/4/0

Related commands

display interface encrypt

Encrypt interface commands -- shutdown

Use shutdown to shut down an encrypt interface.

Use undo shutdown to bring up an encrypt interface.

Syntax

shutdown

undo shutdown

Default

An encrypt interface is up.

Views

Encrypt interface view

Predefined user roles

network-admin

mdc-admin

Examples

# Shut down Encrypt 2/4/0.

<Sysname> system-view

[Sysname] interface encrypt 2/4/0

[Sysname-Encrypt2/4/0] shutdown