- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
03-WAN interface commands | 118.63 KB |
WAN interface commands
Only the HRIC-ET16-G interface module supports this feature. For more information about the interfaces provided by the device, see the installation guide and interface module manual of the device.
Common WAN interface commands
default
Use default to restore the default settings for an interface.
Syntax
default
Views
CE1 interface view
Predefined user roles
network-admin
Usage guidelines
CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impact of this command when you use it on a live network. |
This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions. You can use the display this command in interface view to check for these commands, and use their undo forms or follow the command reference to restore their respective default settings. If your restoration attempt still fails, follow the error message instructions to resolve the problem.
Examples
# Restore the default settings of E1 2/0/1..
<Sysname> system-view
[Sysname] controller e1 2/0/1
[Sysname-E1 2/0/1] default
description
Use description to configure the description of an interface.
Use undo description to restore the default.
Syntax
description text
undo description
Default
The interface description uses the interface name Interface format, for example, E1 2/0/1 Interface.
Views
CE1 interface view
Predefined user roles
network-admin
Parameters
text: Specifies the description, a case-sensitive string of 1 to 255 characters.
Examples
# Configure the description of E1 2/0/1 as router-interface.
<Sysname> system-view
[Sysname] controller e1 2/0/1
[Sysname-E1 2/0/1] description router-interface
shutdown
Use shutdown to shut down an interface.
Use undo shutdown to restore the default.
Syntax
shutdown
undo shutdown
Default
A WAN interface is up.
Views
CE1 interface view
Predefined user roles
network-admin
Examples
# Shut down E1 2/0/1.
<Sysname> system-view
[Sysname] controller e1 2/0/1
[Sysname-E1 2/0/1] shutdown
Basic CE1 interface commands
cem-set (CE1 interface)
Use cem-set to bundle timeslots into a CEM set on a CE1 interface.
Use undo cem-set to remove a CEM set.
Syntax
cem-set set-number timeslot-list list
undo cem-set [ set-number ]
Default
No CEM sets exist on a CE1 interface.
Views
CE1 interface view
Predefined user roles
network-admin
Parameters
set-number: Specifies the number of the CEM set for the timeslot bundle. The value range is 0 to 30.
timeslot-list list: Specifies a comma-separated list of timeslot items. An item can be an individual timeslot or a timeslot range. Use a hyphen (-) to separate the start and end timeslot numbers of a range. The value range for the timeslot number is 1 to 31.
Usage guidelines
A CE1 interface in CE1 mode is physically divided into 32 timeslots numbered 0 through 31. All timeslots except timeslot 0 can be bundled into CEM sets. For each CEM set, the system automatically creates a CEM interface.
The CEM interface name uses the circuit-emulation interface-number:set-number format. The interface-number argument specifies the CE1 interface number. The set-number argument specifies the CEM set number.
Examples
# On E1 2/0/1, bundle timeslots 1, 2, 5, 10 through 15, and 18 into CEM set 0 and specify the CAS signaling method for the set.
<Sysname> system-view
[Sysname] controller e1 2/0/1
[Sysname-E1 2/0/1] cem-set 0 timeslot-list 1,2,5,10-15,18
clock (CE1 interface)
Use clock to set the clock mode of a CE1 interface.
Use undo clock to restore the default.
Syntax
clock { master | slave }
undo clock
Default
The clock mode of a CE1 interface is slave.
Views
CE1 interface view
Predefined user roles
network-admin
Parameters
master: Sets the clock mode to master.
slave: Sets the clock mode to slave.
Usage guidelines
When the clock mode of an interface is master, it uses the internal clock source. When the clock mode of an interface is slave, it uses the line clock source.
Set the clock mode for a CE1 interface according to its operating mode:
· When the interface is operating in DCE mode, set its clock mode to master.
· When the interface is operating in DTE mode, set its clock mode to slave.
Examples
# Set the clock mode to master for CE1 interface E1 2/0/1.
<Sysname> system-view
[Sysname] controller e1 2/0/1
[Sysname-E1 2/0/1] clock master
clock-change auto
Use clock-change auto to enable automatic clock mode switchover on an interface.
Use undo clock-change auto to disable automatic clock mode switchover.
Syntax
clock-change auto
undo clock-change auto
Default
Automatic clock mode switchover is disabled on an interface.
Views
CE1 interface view
Predefined user roles
network-admin
Usage guidelines
When automatic clock mode switchover is enabled, the interface automatically switches to the master clock mode when both of the following conditions exist:
· The interface uses the slave clock mode.
· The interface receives an alarm indication signal (AIS), loss of signal (LOS), or loss of frame (LOF) alarm.
After the alarm is cleared, the interface automatically switches back to the slave mode.
When automatic clock mode switchover is disabled, the interface uses the user-configured clock mode.
Examples
# Enable automatic clock mode switchover for E1 2/0/1.
<Sysname> system-view
[Sysname] controller e1 2/0/1
[Sysname-E1 2/0/1] clock-change auto
Related commands
clock
code (CE1 interface)
Use code to set the line code format for a CE1 interface.
Use undo code to restore the default.
Syntax
code { ami | hdb3 }
undo code
Default
The line code format is HDB3 for the CE1 interface.
Views
CE1 interface view
Predefined user roles
network-admin
Parameters
ami: Specifies the alternate mark inversion (AMI) line code format.
hdb3: Specifies the high-density bipolar 3 (HDB3) line code format.
Usage guidelines
A CE1 interface must use the same line code format as its remote end.
For the interface to operate correctly, configure the data-coding inverted command on the interface if the AMI format is used.
Examples
# Set the line code format to AMI for E1 2/0/1.
<Sysname> system-view
[Sysname] controller e1 2/0/1
[Sysname-E1 2/0/1] code ami
Related commands
data-coding
controller e1
Use controller e1 to enter CE1 interface view.
Syntax
controller e1 interface-number
Views
System view
Predefined user roles
network-admin
Parameters
interface-number: Specifies a CE1 interface by its number.
Examples
# Enter E1 2/0/1 interface view.
<Sysname> system-view
[Sysname] controller e1 2/0/1
[Sysname-E1 2/0/1]
data-coding (CE1 interface)
Use data-coding to enable user data inversion on a CE1 interface.
Use undo data-coding to restore the default.
Syntax
data-coding { inverted | normal }
undo data-coding
Default
Data inversion is disabled on a CE1 interface.
Views
CE1 interface view
Predefined user roles
network-admin
Parameters
inverted: Enables user data inversion.
normal: Disables user data inversion.
Usage guidelines
To prevent 7e in valid data from being mistaken for padding characters, HDLC inserts a zero after every five consecutive ones in the data stream. In data inversion, each bit one is inverted to bit zero, and each bit zero is inverted to bit one. After the inversion, at least a bit one is present in every eight consecutive bits.
When AMI encoding is used on an E1 interface, data inversion eliminates the presence of multiple consecutive zeros.
The data inversion setting must be the same on the CE1 interfaces at two ends of an E1 line.
Examples
# Enable user data inversion on E1 2/0/1.
<Sysname> system-view
[Sysname] controller e1 2/0/1
[Sysname-E1 2/0/1] data-coding inverted
display controller e1
Use display controller e1 to display information about CE1 interfaces.
Syntax
display controller [ e1 [ interface-number ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
e1 [ interface-number ]: Specifies a CE1 interface by its number. If you do not specify the e1 keyword, the command displays information about all CE1 interfaces. If you specify the e1 keyword without specifying an interface, the command displays information about all CE1 interfaces.
Examples
# Display information about E1 2/0/1.
<Sysname> display controller e1 2/0/1
E1 2/0/1
Interface index: 721
Current state: UP
Description: E1 2/0/1 Interface
Basic Configuration:
Work mode: E1 framed, Cable type: 75 Ohm unbalanced
Line code: hdb3, Source clock: slave
Idle code: 7e, Itf type: 7e, Itf number: 4, Loop back: not set
Alarm State:
Receiver alarm state is None
Historical Statistics:
Last link flapping: 6 hours 39 minutes 25 seconds
Last clearing of counters: Never
Data in current interval (150 seconds elapsed):
Loss Frame Alignment: 0 seconds, Framing Error: 0 seconds
CRC Error: 0 seconds, Alarm Indication: 0 seconds
Loss-of-signals: 0 seconds, Code Violations: 0 seconds
Slip: 0 seconds, E-Bit error: 0 seconds
Table 1 Command output
Field |
Description |
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. |
Description |
Description of the interface. |
Work mode |
Operating mode of the interface. |
Cable type |
Cable type of the interface. |
Source clock |
Clock source used by the interface: master or slave. |
Line code |
Line code: AMI or HDB3. |
Idle code |
Idle code: 7e or ff. |
Itf type |
Interframe filling tag: 7e or ff. |
Itf number |
Number of interframe filling tags between two successive frames. |
Loopback |
Loopback state. |
Historical Statistics |
Statistics for the interface. |
Last link flapping |
The amount of time that has elapsed since the most recent physical state change of the interface. This field displays Never if the interface has been physically down since device startup. |
Last clearing of counters |
The most recent time that the reset counters controller e1 command was executed. This field displays Never if this command has not been executed since the device startup. |
Data in current interval (150 seconds elapsed): Loss Frame Alignment: 0 seconds, Framing Error: 0 seconds CRC Error: 0 seconds, Alarm Indication: 0 seconds Loss-of-signals: 0 seconds, Code Violations: 0 seconds Slip: 0 seconds, E-Bit error: 0 seconds |
Error statistics for the current interval. |
Related commands
reset counters controller e1
display this controller
Use display this controller to display the operating status and information of a controller interface.
Syntax
display this controller
Views
Interface view
Predefined user roles
network-admin
Usage guidelines
In controller interface view, to quickly view the operating status or packet statistics of the interface, execute this command.
For a controller interface, the output from the display this interface command in controller interface view is the same as the output from the display controller interface-type interface-number command in any view.
Related commands
display controller
frame-format (CE1 interface)
Use frame-format to set the framing format for a CE1 interface.
Use undo frame-format to restore the default.
Syntax
frame-format { crc4 | no-crc4 }
undo frame-format
Default
The framing format on a CE1 interface is no-CRC4.
Views
CE1 interface view
Predefined user roles
network-admin
Parameters
crc4: Sets the framing format to CRC4.
no-crc4: Sets the framing format to no-CRC4.
Usage guidelines
A CE1 interface in CE1 mode supports both CRC4 and no-CRC4 framing formats. Only CRC4 supports four-bit CRC on physical frames.
Examples
# Set the framing format to CRC4 on E1 2/0/1.
<Sysname> system-view
[Sysname] controller e1 2/0/1
[Sysname-E1 2/0/1] frame-format crc4
idle-code (CE1 interface)
Use idle-code to set the line idle code on a CE1 interface.
Use undo idle-code to restore the default.
Syntax
Idle-code { 7e | ff }
undo idle-code
Default
The line idle code on a CE1 interface is 7e.
Views
CE1 interface view
Predefined user roles
network-admin
Parameters
7e: Sets the line idle code to 7e (hexadecimal).
ff: Sets the line idle code to ff (hexadecimal).
Usage guidelines
The line idle code is sent in timeslots that are not bundled into logical channels.
Examples
# Set the line idle code to 7e on E1 2/0/1.
<Sysname> system-view
[Sysname] controller e1 2/0/1
[Sysname-E1 2/0/1] idle-code 7e
loopback (CE1 interface)
Use loopback to enable loopback and set the loopback mode on a CE1 interface.
Use undo loopback to disable loopback on a CE1 interface.
Syntax
loopback { local | payload | remote }
undo loopback
Default
Loopback is disabled on a CE1 interface.
Views
CE1 interface view
Predefined user roles
network-admin
Parameters
local: Sets the interface to operate in local loopback mode.
payload: Sets the interface to operate in external payload loopback mode.
remote: Sets the interface to operate in external loopback mode.
Usage guidelines
Loopback is intended for testing only. Disable the feature when the interface is operating correctly.
You can bundle timeslots on the CE1 interface to form a serial interface and encapsulate it with PPP. After you enable loopback on this serial interface, it is normal that the state of the link layer protocol is reported as down.
Examples
# Set E1 2/0/1 to operate in internal loopback mode.
[Sysname] controller e1 2/0/1
[Sysname-E1 2/0/1] loopback local
reset counters controller e1
Use reset counters controller e1 to clear CE1 interface statistics.
Syntax
reset counters controller e1 [ interface-number ]
Views
User view
Predefined user roles
network-admin
Parameters
interface-number: Specifies a CE1 interface by its number. If you do not specify this argument, the command clears statistics for all CE1 interfaces.
Usage guidelines
The reset counters interface command clears statistics for all interfaces.
To display CE1 interface statistics, use the display controller e1 command.
Examples
# Clear statistics for CE1 interface E1 2/0/1.
<Sysname> reset counters controller e1 2/0/1
Related commands
display controller e1
using (CE1 interface)
Use using to set the operating mode of a CE1 interface.
Use undo using to restore the default.
Syntax
using { ce1 | cem }
undo using
Default
A CE1 interface operates in channelized mode.
Views
CE1 interface view
Predefined user roles
network-admin
Parameters
ce1: Sets the interface to operate in channelized mode.
cem: Sets the interface to operate in CEM mode.
Usage guidelines
A CE1 interface can operate in channelized or unchannelized mode. Unchannelized mode is also called CEM mode. The channelized mode is also called the CE1 mode.
· In channelized mode, the CE1 interface is physically divided into 32 timeslots numbered 0 through 31. Timeslot 0 is used for frame synchronization control (FSC).
· When a CE1 interface operates in unchannelized mode:
¡ For an interface in CEM mode, the system automatically creates a 2.048 Mbps circuit emulation (CEM) interface. The interface name uses the circuit-emulation interface-number:0 format. The interface-number argument specifies the CE1 interface number.
Examples
# Set E1 2/0/1 to operate in CEM mode.
<Sysname> system-view
[Sysname] controller e1 2/0/1
[Sysname-E1 2/0/1] using cem