- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
02-WAN Interface Commands | 167.09 KB |
Contents
WAN interface configuration commands
Common WAN interface configuration commands
Serial interface configuration commands
reset counters interface serial
Basic CE1 interface configuration commands
Basic CT1 interface basic configuration commands
Common WAN interface configuration commands
default
Syntax
default
View
Serial interface view, CE1 interface view, CT1 interface view
Default level
2: System level
Parameters
None
Description
Use the default command to restore the default settings for the interface.
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 perform their undo forms or follow the command reference to individually restore their default settings. If your restoration attempt still fails, follow the error message to resolve the problem.
|
CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command when you perform it on a live network. |
Examples
# Restore the default settings for serial interface Serial 6/1/11:0.
<Sysname> system-view
[Sysname] interface Serial 6/1/11:0
[Sysname-Serial6/1/11:0] default
This command will restore the default settings. Continue? [Y/N]:y
description
Syntax
description text
undo description
View
Serial interface view, CE1 interface view, CT1 interface view
Default level
2: System level
Parameters
text: Interface description, a case-sensitive string of 1 to 80 characters. The description can contain letters, digits, special characters such as tilde (~), exclamation mark (!), at sign (@), number sign (#), dollar sign ($), percent (%), caret (^), ampersand (&), asterisk(*), brackets ({ }, ( ),[ ], < >), hyphen (-), underscore (_), plus (+), equal sign (=), vertical bar (|), backslash (\), colon (:), semicolon (;), quotation marks (", '), comma (,), period (.), and slash (/), spaces, and Unicode characters and symbols.
Description
Use the description command to set the description for the interface.
Use the undo description command to restore the default.
By default, the description of a WAN interface is interface name Interface, for example, Serial 6/1/11:0 Interface.
Examples
# Set the description for serial interface Serial 6/1/11:0 to router-interface.
<Sysname> system-view
[Sysname] interface Serial 6/1/11:0
[Sysname-Serial6/1/11:0] description router-interface
shutdown
Syntax
shutdown
undo shutdown
View
Serial interface view, CE1 interface view, CT1 interface view
Default level
2: System level
Parameters
None
Description
Use the shutdown command to shut down the interface.
Use the undo shutdown command to bring up the interface.
By default, a WAN interface is up.
When you modify parameters on a WAN interface, execute the shutdown command, and then the undo shutdown command to make your modifications take effect.
Examples
# Shut down serial interface Serial 6/1/11:0.
<Sysname> system-view
[Sysname] interface Serial 6/1/11:0
[Sysname-Serial6/1/11:0] shutdown
Serial interface configuration commands
crc (serial interface)
Syntax
crc { 16 | 32 | none }
undo crc
View
Serial interface view
Default level
2: System level
Parameters
16: Specifies 16-bit CRC.
32: Specifies 32-bit CRC.
none: Disables CRC.
Description
Use the crc command to set the CRC mode on a serial interface.
Use the undo crc command to restore the default.
By default, 16-bit CRC is adopted.
Examples
# Configure Serial 3/1/9:23 to adopt 32-bit CRC.
<Sysname> system-view
[Sysname] interface Serial 3/1/9:23
[Sysname-Serial3/1/9:23] crc 32
display interface serial
Syntax
display interface [ serial ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ]
display interface serial interface-number:set-number [ brief ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
interface-number:set-number: Interface number and subinterface number.
brief: Displays brief interface information. If you do not specify this keyword, the command displays detailed interface information.
down: Displays information about interfaces in the DOWN state and the causes. If you do not specify this keyword, this command displays information about interfaces in all states.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display interface serial command to display information about the serial interface.
If you do not specify the serial keyword, this command displays information about all interfaces on the device.
If you specify the serial keyword without the interface-number argument, this command displays information about all existing serial interfaces.
Examples
# Display information about serial interface Serial 6/1/11:0.
<Sysname> display interface Serial 6/1/11:0
Serial6/1/11:0 current state: UP
Line protocol current state: DOWN
Description: Serial6/1/11:0 Interface
The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Derived from E1 6/1/11, Timeslot(s) Used: 1-8, Baudrate is 512000 bps
Internet protocol processing : disabled
Link layer protocol is PPP
LCP reqsent
CRC type is 16-bit
Last 300 seconds input: 0 packets/sec, 0 bytes/sec
Last 300 seconds output: 0 packets/sec, 1 bytes/sec
Input(total): 59 packets, 1080 bytes
Input(Bad): 58 Abort, 0 FCS-Error, 0 FIFO-Abort, 0 Giant, 0 Runt
Output(total): 8516 packets, 153288 bytes
Output(Bad): 0 Abort
Peak value of input: 3 bytes/sec, at 10:21:39 02-07-2008
Peak value of output: 2 bytes/sec, at 17:49:40 02-07-2008
# Display brief information about serial interface Serial 6/1/11:0.
<Sysname> display interface Serial 6/1/11:0 brief
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface Link Protocol Main IP Description
S6/1/11:0 UP UP(s) --
# Display brief information about all serial interfaces in the DOWN state.
<Sysname> display interface serial brief down
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Interface Link Cause
S3/1/11:0 ADM Administratively
Table 1 Output description
Field |
Description |
Serial6/1/11:0 current state |
Current physical layer state of Serial 6/1/11:0: · DOWN (Administratively)—The serial interface was shut down with the shutdown command, in other words, the serial interface is administratively down. · DOWN—The serial interface is physically down (possibly because no physical link is present or the link has failed). · UP—The serial interface is both administratively and physically up. |
Line protocol current state |
Current state of the link layer protocol. |
Description |
Description of the serial port. |
The Maximum Transmit Unit is 1500, Hold timer is 10(sec) |
MTU of the POS interface and the interval at which the link layer protocol sends keepalives |
Internet protocol processing |
IP protocol processing capability. |
Link layer protocol is PPP |
Link layer protocol of the serial port |
LCP reqsent |
LCP status. |
Last 300 seconds input |
Input rate in pps and bps in the last 300 seconds. |
Last 300 seconds output |
Output rate in pps and bps in the last 300 seconds. |
Input(total)/ Input(Bad)/ Output(total)/ Output(Bad) |
Statistics of input and output packets. |
Peak value of input |
Peak input rate on the interface and time when the peak occurred. |
Peak value of output |
Peak output rate on the interface and time when the peak occurred. |
The brief information of interface(s) under route mode |
Brief information about Layer 3 interfaces. |
Link: ADM - administratively down; Stby - standby |
Link status: · ADM—The interface has been administratively shut down. To recover its physical state, perform the undo shutdown command. · Stby—The interface is operating as a backup interface. |
Protocol: (s) - spoofing |
If the network layer protocol state of an interface is shown as UP, but its link is an on-demand link or not present at all, its protocol attribute includes the spoofing flag (an s in parentheses). |
Interface |
Abbreviated interface name. |
Link |
Physical link state of the interface: · UP—The link is up. · ADM—The link has been administratively shut down. To recover its physical state, perform the undo shutdown command. |
Protocol |
Protocol connection state of the interface, which can be UP, DOWN, or UP(s). |
Main IP |
The main IP address of the interface. |
Description |
Description of the interface. |
Cause |
The cause of a DOWN physical link. If the port has been shut down with the shutdown command, this field displays Administratively. To restore the physical state of the interface, use the undo shutdown command. |
link-protocol
Syntax
link-protocol { fr | hdlc | ppp }
View
Serial interface view
Default level
2: System level
Parameters
fr: Specifies Frame Relay as the link layer protocol of the serial interface.
hdlc: Specifies HDLC as the link layer protocol of the serial interface.
ppp: Specifies PPP as the link layer protocol of the serial interface.
Description
Use the link-protocol command to specify the link protocol of the current serial interface.
The default link layer protocol of a serial interface is PPP.
Support for Frame Relay depends on the sub-cards.
Examples
# Specify HDLC as the link layer protocol of Serial 3/1/9:0.
<Sysname> system-view
[Sysname] interface Serial 3/1/9:0
[Sysname-Serial3/1/9:0] link-protocol hdlc
mtu (serial interface)
Syntax
mtu mtu
undo mtu
View
Serial interface view
Default level
2: System level
Parameters
mtu: Maximum transmission unit (MTU) in bytes for a serial interface, in the range of 46 to 9216.
Description
Use the mtu command to set the MTU for a serial interface.
Use the undo mtu command to restore the default.
By default, the MTU of a serial interface is 1500 bytes.
The MTU setting affects the assembly and fragmentation of IP packets on the interface.
When you use the mtu command on a WAN interface, execute the shutdown command, and then the undo shutdown command to make your configuration take effect.
Examples
# Set the MTU of Serial 3/1/9:23 to 1200 bytes.
<Sysname> system-view
[Sysname] interface Serial 3/1/9:23
[Sysname-Serial3/1/9:23] mtu 1200
reset counters interface serial
Syntax
reset counters interface [ serial [ interface-number ] ]
View
Use view
Default level
2: System level
Parameters
serial interface-number: Specifies a serial interface.
Description
Use the reset counters interface serial command to clear statistic on the specified serial interface.
When you collect traffic statistics for a specific period of time on a serial interface, clear the existing statistics on the interface first.
If you do not specify the serial keyword, this command clears statistics on all interfaces.
If you specify the serial keyword without the interface-number argument, this command clears statistics on all serial interfaces.
If you specify both the serial keyword and the interface-number argument, this command clears statistics on a specified serial interface.
Examples
# Clear statistics on interface Serial 3/1/9:23.
<Sysname> reset counters interface Serial 3/1/9:23
timer hold
Syntax
timer hold seconds
undo timer hold
View
Serial interface view
Default level
2: System level
Parameters
seconds: Interval (in seconds) at which an interface sends keepalive packets, in the range of 0 to 32767.
Description
Use the timer hold command to set the polling interval, which refers to the interval at which the interface sends keepalive packets.
Use the undo timer hold command to restore the default.
By default, the polling interval is 10 seconds.
Examples
# Set the polling interval to 20 seconds for interface Serial 3/1/9:23.
<Sysname> system-view
[Sysname] interface Serial 3/1/9:23
[Sysname-Serial3/1/9:23] timer hold 20
Basic CE1 interface configuration commands
cable (CE1 interface)
Syntax
cable { long | short }
undo cable
View
CE1 interface view
Default level
2: System level
Parameters
long: Indicates that the attenuation of the receiver is –43 dB.
short: Indicates that the attenuation of the receiver is –10 dB.
Description
Use the cable command to set the cable type for the current CE1 interface.
Use the undo cable command to restore the default.
By default, the long keyword applies.
Examples
# Set the cable type of CE1 interface E1 3/1/9 to short.
<Sysname> system-view
[Sysname] controller E1 3/1/9
[Sysname-E1 3/1/9] cable short
channel-set (CE1 interface)
Syntax
channel-set set-number timeslot-list list
undo channel-set [ set-number ]
View
CE1 interface view
Default level
2: System level
Parameters
set-number: Number of the channel set formed by bundling timeslots on the interface, in the range of 0 to 30.
timeslot-list list: Specifies the timeslots to be bundled. The list argument can contain multiple timeslot numbers, each of which ranges from 1 to 31. You can specify a single timeslot by specifying a timeslot number, a range of timeslots by providing this argument in the form of { number1-number2 }, or multiple timeslots by providing this argument in the form of { number1, number2-number3 }.
Description
Use the channel-set command to bundle timeslots on the CE1 interface into a channel-set.
Use the undo channel-set command to the existing bundles.
By default, no timeslots are bundled into channel sets.
A CE1 interface in CE1 mode is physically divided into 32 timeslots numbered 0 through 31.
In actual applications, all the timeslots except timeslot 0 can be bundled into multiple channel sets. For each channel set, the system automatically creates a serial interface logically equivalent to a synchronous serial interface.
The serial interface is numbered in the form of serial interface-number:set-number, where interface-number is the number of the CE1 interface and set-number is the number of the channel set.
|
IMPORTANT: Make sure the local end has the same timeslot bundling settings as the remote end for successful communication. |
Examples
# Bundle timeslots 1, 2, 5, 10 through 15, and 18 on CE1 interface E1 3/1/9 into channel set 0.
<Sysname> system-view
[Sysname] controller E1 3/1/9
[Sysname-E1 3/1/9] channel-set 0 timeslot-list 1,2,5,10-15,18
clock (CE1 interface)
Syntax
clock { master | slave }
undo clock
View
CE1 interface view
Default level
2: System level
Parameters
master: Uses the internal clock.
slave: Uses the line clock.
Description
Use the clock command to set the clock mode for the current CE1 interface.
Use the undo clock command to restore the default clock mode, that is, the slave mode.
When the CE1 interface is working as a DCE, use the internal clock for it. When it is working as a DTE, use the line clock for it.
Examples
# Configure the CE1 interface E1 3/1/9 to use the internal clock.
<Sysname> system-view
[Sysname] controller E1 3/1/9
[Sysname-E1 3/1/9] clock master
clock-change auto
Syntax
clock-change auto
undo clock-change auto
View
CE1 interface view
Default level
2: System level
Parameters
auto: Enables automatic clock mode change for the interface.
Description
Use the clock-change auto command to enable the automatic clock mode change function on the interface, that is, configure the interface that uses the slave clock mode to switch to the master clock mode automatically when receiving an AIS/LOS/LOF alarm. After the alarm is cleared, the interface automatically switches back to the user-configured clock mode.
Use the undo clock-change auto command to disable the automatic clock mode change function. If the interface has already switched its clock mode, this command restores the user-configured clock mode for the interface.
By default, automatic clock mode change is disabled.
Examples
# Disable automatic clock mode change for CE1 interface E1 3/1/9.
<Sysname> system-view
[Sysname] controller E1 3/1/9
[Sysname-E1 3/1/9] undo clock-change auto
code (CE1 interface)
Syntax
code { ami | hdb3 }
undo code
View
CE1 interface view
Default level
2: System level
Parameters
ami: Adopts alternate mark inversion (AMI) line code format.
hdb3: Adopts high density bipolar 3 (HDB3) line code format.
Description
Use the code command to set the line code format for the CE1 interface.
Use the undo code command to restore the default, that is, HDB3.
Keep the line code format of the interface consistent with that of the remote device.
Examples
# Set the line code format of E1 3/1/9 to AMI.
<Sysname> system-view
[Sysname] controller E1 3/1/9
[Sysname-E1 3/1/9] code ami
controller e1
Syntax
controller e1 number
View
System view
Default level
2: System level
Parameters
number: CE1 interface number.
Description
Use the controller e1 command to enter CE1 interface view.
Examples
# Enter E1 3/1/9 interface view.
<Sysname> system-view
[Sysname] controller E1 3/1/9
[Sysname-E1 3/1/9]
display controller e1
Syntax
display controller e1 [ interface-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
interface-number: Interface number.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display controller e1 command to display information about the specified or all CE1 interfaces.
Examples
# Display information about E1 3/1/9.
<Sysname> display controller E1 3/1/9
E1 3/1/9 current state: UP
Description : E1 3/1/9 Interface
Basic Configuration:
Work mode is E1 framed, Cable type is 120 Ohm balanced.
Frame-format is no-crc4.
Line code is hdb3, Source clock is slave.
Itf type is 7e, Itf number is 1.
Cable loss type is long, Auto clock change is enabled.
Loopback is not set.
Alarm State:
None
Error Stastics:
Line Code Error: 199, Path Code Error: 0.
Table 2 Output description
Field |
Description |
E1 3/1/9 current state: UP |
State of the interface. |
Description : E1 3/1/9 Interface |
Description of the interface. |
Work mode |
Work mode of the interface, which can be E1 or CE1. |
Cable type |
Cable type of the interface. |
Frame-format |
Frame format of the interface, which can be CRC4 or no CRC4. |
Source Clock |
Work mode of the source clock of the interface, which can be master or slave. |
Line Code |
Line code, which can be AMI or HDB3. |
Itf type |
Interframe filling tag type, which can be 7e or ff. |
Itf number |
Number of interframe filling tags between two successive frames. |
Auto clock change is enabled |
Automatic clock mode change is enabled. |
Loopback |
Loopback state. |
Alarm State |
Alarm state |
Error Statistics |
Statistics about errors. |
Line Code Error: 199, Path Code Error: 0. |
Statistics about errors during the current interval. |
frame-format (CE1 interface)
Syntax
frame-format { crc4 | no-crc4 }
undo frame-format
View
CE1 interface view
Default level
2: System level
Parameters
crc4: Sets framing format to CRC4.
no-crc4: Sets framing format to no-CRC4.
Description
Use the frame-format command to set the framing format of the CE1 interface.
Use the undo frame-format command to restore the default, that is, no-CRC4.
A CE1 interface in CE1 mode supports both CRC4 and no-CRC4 framing formats, where CRC4 supports four-bit CRC on physical frames while no-CRC4 does not.
Examples
# Set the framing format on E1 3/1/9 to CRC4.
[Sysname] controller E1 3/1/9
[Sysname-E1 3/1/9] frame-format crc4
loopback (CE1 interface)
Syntax
loopback { local | payload | remote }
undo loopback
View
CE1 interface view
Default level
2: System level
Parameters
local: Specifies internal loopback mode.
remote: Specifies external loopback mode.
payload: Specifies external payload loopback mode.
Description
Use the loopback command to enable loopback and set the loopback mode for the current CE1 interface.
Use the undo loopback command to restore the default.
By default, loopback is disabled.
Loopback is intended for checking the condition of interfaces or cables. Disable loopback in normal conditions.
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 down.
Examples
# Set E1 3/1/9 to operate in internal loopback mode.
[Sysname] controller E1 3/1/9
[Sysname-E1 3/1/9] loopback local
reset counters controller e1
Syntax
reset counters controller e1 interface-number
View
User view
Default level
2: System level
Parameters
interface-number: Interface number.
Description
Use the reset counters controller e1 command to clear the controller counter for a CE1 interface.
To display the information of the controller counter, use the display controller e1 command.
|
NOTE: · Use the reset counters controller e1 command instead of the reset counters interface command to clear the controller counter of a specified CE1 interface, because the latter command will clear the controller counters of all the ports. · The reset counters controller e1 command clears the statistics collected by the controller counters, which can be displayed with the display controller e1 [ interface-number ] command. |
Examples
# Clear the controller counter for CE1 interface E1 3/1/9.
<Sysname> reset counters controller E1 3/1/9
using
Syntax
using { ce1 | e1 }
undo using
View
CE1 interface view
Default level
2: System level
Parameters
ce1: Sets the interface to operate in CE1 mode.
e1: Sets the interface to operate in E1 mode.
Description
Use the using command to set the operating mode of the CE1 interface.
Use the undo using command to restore the default, that is, CE1 mode.
A CE1 interface can operate in E1 or CE1 mode.
In E1 mode, the CE1 interface equals a 2.048 Mbps interface without timeslot division and has the same logical features as a synchronous serial interface. In CE1 mode, the CE1 interface is physically divided into 32 timeslots numbered 0 through 31, where timeslot 0 is used for FSC.
After you set the CE1 interface to operate in E1 mode, the system automatically creates a serial interface numbered serial interface-number:0, where interface-number represents the number of the CE1 interface.
Examples
# Set CE1 interface E1 3/1/9 to operate in E1 mode.
<Sysname> system-view
[Sysname] controller E1 3/1/9
[Sysname-E1 3/1/9] using e1
Basic CT1 interface basic configuration commands
cable (CT1 interface)
Syntax
cable { long { 0db | -7.5db | -15db | -22.5db } | short { 133ft | 266ft | 399ft | 533ft | 655ft } }
undo cable
View
CT1 interface view
Default level
2: System level
Parameters
long: Matches a cable longer than 199.6 meters (655 feet). The options for this parameter include 0db, -7.5db, -15db, and -22.5db. The worse the line quality, the higher the signal attenuation. You need to select one of the available options to compensate the attenuation. In this case, no external CSU is needed.
short: Matches a cable shorter than 199.6 meters (655 feet). The options for this parameter include 133ft, 266ft, 399ft, 533ft, and 655ft. Select one of them depending on the actual transmission distance.
Description
Use the cable command to set the cable attenuation and length on the CT1 interface.
Use the undo cable command to restore the default, that is, long 0db.
You may use this command to adapt signal waveform to different transmission conditions such as the quality of the signal received by the receiver. If the signal quality is good, you can use the default setting. In this case, the CT1 interface does not need an external CSU device.
Examples
# Set the cable length to 40.5 meters (133 feet) on CT1 interface T1 3/1/9.
<Sysname> system-view
[Sysname] controller T1 3/1/9
[Sysname-T1 3/1/9] cable short 133ft
channel-set (CT1 interface)
Syntax
channel-set set-number timeslot-list list [ speed { 56k | 64k } ]
undo channel-set [ set-number ]
View
CT1 interface view
Default level
2: System level
Parameters
set-number: Number of the channel set formed by timeslot bundling on the interface. It ranges from 0 to 23.
timeslot-list list: Specifies the timeslots to be bundled. The list argument can contain multiple timeslot numbers, each of which ranges from 1 to 24. You can specify a single timeslot by specifying a timeslot number, a range of timeslots by providing this argument in the form of { number1-number2 }, or multiple timeslots by providing this argument in the form of { number1, number2-number3 }.
speed { 56k | 64k }: Specifies the speed of the timeslot bundle (the channel set) in kbps. If 56k is selected, the timeslots are bundled into N × 56 kbps bundles. If 64k (the default) is selected, the timeslots are bundled into N × 64 kbps bundles.
Description
Use the channel-set command to bundle timeslots on the current CT1 interface into a channel set.
Use the undo channel-set command to remove a specified or all channel sets on the current CT1 interface.
By default, no timeslots are bundled into channel sets.
A CT1 interface is physically divided into 24 timeslots numbered 1 through 24. In actual applications, all the timeslots can be bundled into multiple channel sets. For each channel set, the system automatically creates a serial interface logically equivalent to a synchronous serial interface.
The serial interface is named in the form of serial interface-number:set-number, where interface-number is the CT1 interface number, and set-number represents the number of the channel set.
|
IMPORTANT: Make sure the local end has the same timeslot bundling settings as the remote end for successful communication. |
Examples
# Bundle timeslots 1, 2, 5, 10 through 15, and 18 into channel set 0 on CT1 interface T1 3/1/9.
<Sysname> system-view
[Sysname] controller T1 3/1/9
[Sysname-T1 3/1/9] channel-set 0 timeslot-list 1,2,5,10-15,18
clock (CT1 interface)
Syntax
clock { master | slave }
undo clock
View
CT1 interface view
Default level
2: System level
Parameters
master: Adopts the internal clock.
slave: Adopts the line clock.
Description
Use the clock command to set clock mode for the current CT1 interface.
Use the undo clock command to restore the default clock mode of the current CT1 interface.
The default clock mode of a CT1 interface is slave.
When the CT1 interface is working as a DCE, use the internal clock for it. When it is working as a DTE, use the line clock for it.
Examples
# Configure CT1 interface T1 3/1/9 to use the internal clock.
<Sysname> system-view
[Sysname] controller T1 3/1/9
[Sysname-T1 3/1/9] clock master
code (CT1 interface)
Syntax
code { ami | b8zs }
undo code
View
CT1 interface view
Default level
2: System level
Parameters
ami: Adopts AMI line code format.
b8zs: Adopts bipolar with 8-zero substitution (B8ZS) line code format.
Description
Use the code command to set the line code format for the current CT1 interface.
Use the undo code command to restore the default, that is, B8ZS.
Keep the line code format of the interface consistent with that of the remote device.
Examples
# Set the line code format of the CT1 interface 3/1/9 to AMI.
<Sysname> system-view
[Sysname] controller T1 3/1/9
[Sysname-T1 3/1/9] code ami
controller t1
Syntax
controller t1 number
View
System view
Default level
2: System level
Parameters
number: CT1 interface number.
Description
Use the controller t1 command to enter CT1 interface view.
Examples
# Enter the view of the CT1 interface 3/1/9.
<Sysname> system-view
[Sysname] controller T1 3/1/9
[Sysname-T1 3/1/9]
display controller t1
Syntax
display controller t1 [ interface-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
2: System level
Parameters
interface-number: Interface number.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display controller t1 command to display information about a specific or all CT1 interfaces.
Examples
# Display information about interface T1 3/1/9.
<Sysname> display controller T1
T1 5/1/3 current state: DOWN
Description : T1 5/1/3 Interface
Basic Configuration:
Work mode is T1 framed, Resistance type is 100 Ohm balanced.
Frame-format is esf, fdl is none, Line code is b8zs.
Cable type is No connector.
Source clock is slave, Data-coding is normal.
Itf type is 7e, Itf number is 1
Loopback is not set, Loop code sent last is none.
Alarm State:
LOS LOF
Error Stastics:
Line Code Error: 0, Path Code Error: 0.
Table 3 Output description
Field |
Description |
T1 5/1/3 current state |
Physical state of the interface: up or down. |
Description : T1 5/1/3 Interface |
Description of the interface. |
Basic Configuration |
Basic settings of the interface. |
Work mode |
Operating mode of the T1 interface, which can be T1 or CT1. |
Resistance type |
Resistance type of the T1 interface, 100 ohm balanced in this example. |
Frame-format |
Frame format configured on the T1 interface: ESF or SF. |
Line code |
Line code format: AMI or B8ZS. |
Cable type is No connector |
Cable type of the T1 interface: No connector. |
Source clock |
Source clock used by the interface: master for the internal clock or slave for the line clock. |
Data-coding |
Normal or inverted. |
Itf type is 7e |
Type of interframe filling tag: 0x7E. |
Itf number is 1 |
Number of interframe filling tags is 1. |
Loopback |
Loopback setting on the interface: local, payload, remote, or not set. |
Alarm State |
Alarm state, which could be none, LOS, LOF, RAI, or AIS. |
LOF |
Alarm type, which can be none, LOS, LOF, RAI, or AIS. |
fdl
Syntax
fdl { ansi | att | both | none }
undo fdl
View
CT1 interface view
Default level
2: System level
Parameters
ansi: Adopts ANSI T1.403 for facilities data link (FDL).
att: Adopts AT&T TR 54016 for FDL.
both: Adopts both ANSI T1.403 and AT&T TR 54016 for FDL.
none: Disables FDL.
Description
Use the fdl command to set the behavior of the CT1 interface on the FDL in ESF framing.
Use the undo fdl command to restore the default.
By default, FDL is disabled (none).
FDL is an embedded 4 kbps overhead channel within the ESF format for transmitting alarms, performance statistics or loopback code.
Depending on the FDL mode at the remote end, you can configure a CT1 interface to support ANSI T1.403 FDL, AT&T TR 54016 FDL, or both, or disable FDL.
Examples
# Implement AT&T TR 54016 FDL on T1 3/1/9.
<Sysname> system-view
[Sysname] controller T1 3/1/9
[Sysname-T1 3/1/9] fdl att
frame-format (CT1 interface)
Syntax
frame-format { esf | sf }
undo frame-format
View
CT1 interface view
Default level
2: System level
Parameters
sf: Sets the framing format to super frame (SF).
esf: Sets the framing format to extended super frame (ESF).
Description
Use the frame-format command to set the framing format on the CT1 interface.
Use the undo frame-format command to restore the default, that is, esf.
CT1 interfaces support two framing formats, that is, SF and ESF. In SF format, multiple frames can share the same FSC and signaling information, so that more significant bits are available for transmitting user data. The use of ESF allows you to test the system without affecting the ongoing service.
Examples
# Set the framing format of T1 3/1/9 to SF.
<Sysname> system-view
[Sysname] controller T1 3/1/9
[Sysname-T1 3/1/9] frame-format sf
loopback (CT1 interface)
Syntax
loopback { local | payload | remote }
undo loopback
View
CT1 interface view
Default level
2: System level
Parameters
local: Enables the CT1 interface to perform local loopback.
payload: Enables the interface to perform external payload loopback.
remote: Enables the interface to perform remote loopback.
Description
Use the loopback command to enable local, remote, or external payload loopback on the CT1 interface.
Use the undo loopback command to restore the default.
By default, loopback is disabled.
Loopback is intended for checking the condition of interfaces or cables. Disable loopback in normal conditions.
You can bundle timeslots on a CT1 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 down.
Examples
# Enabled remote loopback on interface T1 3/1/9.
<Sysname> system-view
[Sysname] controller T1 3/1/9
[Sysname-T1 3/1/9] loopback remote
reset counters controller t1
Syntax
reset counters controller t1 interface-number
View
User view
Default level
2: System level
Parameters
interface-number: Interface number.
Description
Use the reset counters controller t1 command to clear the controller counter for a CT1 interface.
To display the value of the controller counter, use the display controller t1 command.
|
NOTE: Use the reset counters controller t1 command instead of the reset counters interface command to clear the controller counter of a specified CT1 interface, because the latter command will clear the controller counters of all the ports. |
Examples
# Clear the controller counter for CT1 interface T1 3/1/9.
<Sysname> reset counters controller T1 3/1/9
sendloopcode
Syntax
sendloopcode { fdl-ansi-llb-down | fdl-ansi-llb-up | fdl-ansi-plb-down | fdl-ansi-plb-up | fdl-att-plb-down | fdl-att-plb-up | inband-llb-down | inband-llb-up }
View
CT1 Interface
Default level
2: System level
Parameters
fdl-ansi-llb-down: Sends ANSI-compliant LLB deactivation request code in the FDL to remove loopback.
fdl-ansi-llb-up: Sends ANSI-compliant line loopback (LLB) activation request code in the FDL to start remote loopback.
fdl-ansi-plb-down: Sends ANSI-compliant PLB deactivation request code in the FDL to remove loopback.
fdl-ansi-plb-up: Sends ANSI-compliant payload loopback (PLB) activation request code in the FDL to start remote loopback.
fdl-att-plb-down: Sends AT&T-complaint PLB deactivation request code in the FDL to remove loopback.
fdl-att-plb-up: Sends AT&T-complaint PLB activation request code in the FDL to start remote loopback.
inband-llb-down: Sends in-band LLB deactivation request code compliant with the ANSI or AT&T implementation to remove loopback.
inband-llb-up: Sends in-band line loopback (LLB) activation request code compliant with the ANSI and AT&T implementation to start remote loopback.
Description
Use the sendloopcode command to send remote loopback control code.
By default, no remote loopback control code is sent.
You may configure loopback on the far-end CT1 interface by sending loopback control code.
In LLB mode, all 193 bits (one synchronization bit and 192 effective bandwidth bits) in a T1 PCM frame are looped back. In PLB mode, however, only 192 effective bandwidth bits are looped back.
The format of loopback code can be compliant with ANSI T1.403 or AT&T TR 54016.
In SF framing, LLB code is sent using the effective bandwidth. In ESF framing, both LLB code and PLB code are sent/received in the FDL.
Use this command in conjunction with the far-end T1 device. The far-end device must be able to set loopback mode depending on the detected loopback code. The sending of remote loopback control code lasts five minutes without affecting the operation of other interfaces.
When you configure this command, make sure that the far-end CT1 interface can automatically detect loopback request code from the network.
Examples
# Send in-band LLB activation request code.
<Sysname> system-view
[Sysname] controller T1 3/1/9
[Sysname-T1 3/1/9] sendloopcode inband-llb-up