Tải bản đầy đủ (.pdf) (179 trang)

Tài liệu học về Vyatta WANInterfaces 6 5r1 v01

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (703.77 KB, 179 trang )

Vyatta
Suite200
1301ShorewayRoad
Belmont,CA94002
vyatta.com
6504137200
1888VYATTA1(USandCanada)
VYATTA,INC. |  VyattaSystem
WANInterfaces
REFERENCEGUIDE
SerialInterfaces
TestingSerialLines
DSLInterfaces
WirelessModemInterfaces
COPYRIGHT
Copyright©2005–2012Vyatta,Inc.Allrightsreserved.
Vyattareservestherighttomakechangestosoftware,hardware,anddocumentationwithoutnotice.Forthemostrecentversionof
documentation,visittheVyattawebsiteatvyatta.com.
PROPRIETARYNOTICES
VyattaisaregisteredtrademarkofVyatta,Inc.
Hyper‐VisaregisteredtrademarkofMicrosoftCorporation.
VMware,VMwareESX,andVMwareserveraretrademarksofVMware,Inc.
XenServer,andXenCenteraretrademarksofCitrixSystems,Inc.
Allothertrademarksarethepropertyoftheirrespectiveowners.
RELEASEDATE:October2012
DOCUMENTREVISION.6.5R1
v01
RELEASEDWITH:6.5R1
PARTNO.A0‐0212‐10‐0016
iii
WANInterfaces 6.5R1v01 Vyatta


Contents
QuickListofCommands........................................................vi
ListofExamples ...............................................................ix
Preface. .....................................................................xi
IntendedAudience ........................................... ....................................xii
OrganizationofThisGuide .................
.................................... ................. .. .xii
DocumentConventions ..........................................
................................xiii
VyattaPublicati ons................
............... ...............................................xiii
Chapter1SerialInterfaces ...................................................... 1
SerialInterfaceConfiguration ...................................................................... 2
VirtualInterfacesonSerialInterfaces .......................
................................. ....2
EnablingInterfaces ...........
.................................... ................. .. .........2
ViewingAvailableSerialInterfaces................................. 
..............................3
SerialInterfaceCommands..................
............... ........................................5
clearinterfacesserial............................................
..............................8
interfacesserial<wanx>.................
.....................................................11
interfacesserial<wanx>description<desc> ...........................................
...........13
interfacesserial<wanx>e1‐options.................. .................
............... ...........15
interfacesserial<wanx>e1‐optionsclock<type> .................

................................17
interfacesserial<wanx>e1‐optionsframing<type>...........
............... ................... ..19
interfacesserial<wanx>e1‐optionstimeslots ........
............... ................... ..........21
interfacesserial<wanx>e3‐options..
.................................................... .......23
interfacesserial<wanx>e3‐optionsclock<type> ...................................
..............24
interfacesserial<wanx>e3‐optionsframing<type>.............................
..................26
interfacesserial<wanx>e3‐optionsline‐coding<type> ........................
....................28
interfacesserial<wanx>encapsulation<type> ................ .........
..........................30
interfacesserial<wanx>synch‐options ....................
................................. .....32
interfacesserial<wanx>synch‐optionsbaud‐rate<rate> .....
................................. .....34
interfacesserial<wanx>synch‐optionsclock<type>......
................................. ........36
interfacesserial<wanx>synch‐optionsconnection<type> ..
.................................... ...38
interfacesserial<wanx>synch‐optionsline‐cod ing<type>....
................................. .....40
interfacesserial<wanx>synch‐optionsline‐idle<type>....
................................. .......42
interfacesserial<wanx>t1‐options ......
.................................... ................. .. 44
interfacesserial<wanx>t1‐optionsclock<type> .......................................

...........46
interfacesserial<wanx>t1‐optionslbo<range> ........... .....................
............... ...48

iv
WANInterfaces 6.5R1v01 Vyatta
interfacesserial<wanx>t1‐optionstimeslots.......................... ...........................50
interfacesserial<wanx>t3‐options .............. .. .......................
......................52
interfacesserial<wanx>t3‐optionsclock<type> ......................
............................54
interfacesserial<wanx>t3‐optionsframing<type> ...............
................................56
interfacesserial<wanx>t3‐optionsline‐coding<type>...........
..................................58
monitorinterfacesserial<wanx>traffic ...........
................................. .............60
showinterfacesserial .
.................................... ................. .. ................62
showinterfacesserial<wanx>.........................
........................................64
showinterfacesserial<wanx>bert‐status ....
...................................................65
showinterfacesserial<wanx>cisco‐hdlc ................ ............................
............67
showinterfacesserial<wanx>frame‐relay .................................
......................68
showinterfacesserial<wanx>log.......................
.................................... ...69
showinterfacesserial<wanx>loopback .......

..................................................70
showinterfacesserial<wanx>physical ..............................................
............71
showinterfacesserial<wanx>ppp .. ...............................
............... .............72
showinterfacesserial<wanx>queue .................
............... ................... ........74
showinterfacesserial<wanx>trace ...
............... ................... .................... ...75
Chapter2TestingSerialLines ................................................... 77
SerialLineTestingOverview.................................... ...................................78
SerialLineLoopbacks ....... .................
................................. ...................78
LoopbackTests ......................... ................... ..
...................................81
BitErrorRateTests...........
.................................................... ...............83
SerialLineTestingCommands..............................
.................................... ...85
test‐definitionbert<test‐name>......
................................. ........................87
test‐definitionbert<test‐name>duration<duration>.....................................
.........89
test‐definitionbert<test‐name>err‐insert‐rate<rate>.............. ...................
............90
test‐definitionbert<test‐name>loopup‐code<code> .. ............................
............... 92
test‐definitionbert<test‐name>pattern<pattern‐name>...........................
............... 94
test‐definitionbert<test‐name>pattern<pattern‐name>alternating‐word.........................

..96
test‐definitionbert<test‐name>pattern<pattern‐name>repeating .................... .............98
testinterface<wanx>start‐bert<test
‐name> ..................... ..............................100
testinterface<wanx>stop‐bert ........................ ................... .
............... ....102
testloopbackdown .............................
................................ .. ..........103
testloopbackstart ....
............... ................... ....................................105
testloopbackup.............................
................................. ..............107
Chapter3DSLInterfaces ......................................................109
DSLConfiguration .......................... ....................................................110
ADSLInterfacesOverview ... ................
.................................................110
ADSL
ConfigurationExample..................................................................110

v
WANInterfaces 6.5R1v01 Vyatta
DSLCommands ...................... ................... ................. ......................113
interfacesadsl<adslx> ..... ...........
.................................... ................. .115
interfacesadsl<adslx>pvc<pvc‐id> ..................................... ...
............... ....117
interfacesadsl<adslx>watchdog<state> ........... ................
............................119
monitorinterfacesadsl<if‐name>traffic ................
.......................................121

showinterfacesadsl<if‐name> ......
............... ................... ................. ......122
showinterfacesadsl<if‐name>queue ............................... .......
...................123
showinterfacesadsl<if‐name>status..........................
................................124
Chapter4WirelessModemInterfaces........................................... 125
WirelessModemConfiguration ..................................... ..............................126
WirelessModemInterfaceCommands .............................
................................128
clearinterfacesconnection<wlmx>..... ..........
................................. ............130
connectinterface<wlmx>...
.................................................................131
disconnectinterface<wlmx> ................... .. ...........
............... ..................132
interfaceswirelessmodem<wlmx>..............
............... ................... ............133
interfaceswirelessmodem<wlmx>backup.
............... ......................................135
interfaceswirelessmodem<wlmx>description<desc> ................ ................... .........
137
interfaceswirelessmodem<wlmx>device<device>....................................... ......
.139
interfaceswirelessmodem<wlmx>ipv6address............................... .............
.....140
interfaceswirelessmodem<wlmx>ipv6disable‐forwarding. .......................................
142
interfaceswirelessmodem<wlmx>ipv6dup‐addr‐detect‐transmits<num>............ ...............144
interfaceswirelessmodem<wlmx>ipv6router‐advert........

................................ .. ..146
interfaceswirelessmodem<wlmx>mtu<mtu>.........
............... ................... .......151
interfaceswirelessmodem<wlmx>network<scriptfile>.....
............... ................... ....153
interfaceswirelessmodem<wlmx>no‐dns ........
............... ................... ............155
interfaceswirelessmodem<wlmx>ondemand 
..................................................156
showinterfaceswirelessmodem .......................................... ....................158
GlossaryofAcronyms......................................................... 161
vi
WANInterfaces 6.5R1v01 Vyatta
QuickListofCommands
Use this list to help you quickly locate commands.
clearinterfacesconnection<wlmx> ......................... ......................................130
clearinterfacesserial ...............................
................................. .............8
connectinterface<wlmx> .
.................................... ................. .. ...............131
disconnectinterface<wlmx>............... ............
..........................................132
interfacesadsl<adslx>pvc<pvc‐id>..
............... ..............................................117
interfacesadsl<adslx>watchdog<state>.......................... ..........
.......................119
interfacesadsl<adslx> ........................
................................. .................115
interfacesserial<wanx>description<desc> .................... ................... ......
............13

interfacesserial<wanx>e1‐optionsclock<type>............................. ..
............... .......17
interfacesserial<wanx>e1‐optionsframing<type> ........ ..............
.............................19
interfacesserial<wanx>e1‐optionstimeslots...............
............... ................... .......21
interfacesserial<wanx>e1‐options ....
............... ................... ..........................15
interfacesserial<wanx>e3‐optionsclock<type>............................. .....
...................24
interfacesserial<wanx>e3‐optionsframing<type> ........ .................
..........................26
interfacesserial<wanx>e3‐optionsline‐coding<type>................
................................28
interfacesserial<wanx>e3‐options .............
................................. ..................23
interfacesserial<wanx>encapsulation<type>............................................
...........30
interfacesserial<wanx>synch‐optionsbaud‐rate<rate>..................... .. .........
............... 34
interfacesserial<wanx>synch‐optionsclock<type> ..................... .......
............... .......36
interfacesserial<wanx>synch‐optionsconnection<type> .....................
........................38
interfacesserial<wanx>synch‐optionsline‐coding<type> ..................
...........................40
interfacesserial<wanx>synch‐optionsline‐idle<type> ................
................................42
interfacesserial<wanx>synch‐options..............
................................................32

interfacesserial
<wanx>t1‐optionsclock<type>................................. .....................46
interfacesserial<wanx>t1‐optionslbo<range>............................ ........
..................48
interfacesserial<wanx>t1‐optionstimeslots ..........................
..............................50
interfacesserial<wanx>t1‐options................
................................. ................44
interfaces
serial<wanx>t3‐optionsclock<type>...................................................... 54
interfacesserial<wanx>t3‐optionsframing<type> ..................................
............... ..56
interfacesserial<wanx>t3‐optionsline‐coding<type> ......... .. ..............
............... ........58
interfacesserial<wanx>t3‐options.......................
............... ................... ........52
interfacesserial<wanx> ......
............... ................... ..................................11

vii
WANInterfaces 6.5R1v01 Vyatta
interfaceswirelessmodem<wlmx>backup .......................... ................... ............135
interfaceswirelessmodem<wlmx>description<desc>....................................
............137
interfaceswirelessmodem<wlmx>device<device> ..................................
................139
interfaceswirelessmodem<wlmx>ipv6address ..............................
.......................140
interfaceswirelessmodem<wlmx>ipv6disable‐forwarding .......... ...........
......................142

interfaceswirelessmodem<wlmx>ipv6dup‐addr‐detect‐transmits<num> ...................
...........144
interfaceswirelessmodem<wlmx>ipv6router‐advert ..................................
..............146
interfaceswirelessmodem<wlmx>mtu<mtu> ..... ................... ........
......................151
interfaceswirelessmodem<wlmx>network<scriptfile> .......................
.......................153
interfaceswirelessmodem<wlmx>no‐dns................... ....
................................. ..155
interfaceswirelessmodem<wlmx>ondemand .... .......
................................. ..........156
interfaceswirelessmodem<wlmx> .....
................................. ..........................133
monitorinterfacesadsl<if‐name>traffic.................................. .
............... .........121
monitorinterfacesserial<wanx>traffic..... ................
........................................60
showinterfacesadsl<if‐name>queue....
............... ................... ................. ......123
showinterfacesadsl<if‐name>status ................. .. ...................
.......................124
showinterfacesadsl<if‐name>......................
................................. ............122
showinterfacesserial<wanx>bert
‐status.................................................... .......65
showinterfacesserial<wanx>cisco‐hdlc............... ...................
............... ...........67
showinterfacesserial<wanx>frame‐relay...................
........................................68

showinterfacesserial<wanx>log ......
............... ................... ..........................69
showinterfacesserial<wanx>loopback.....................................
........................70
showinterfacesserial<wanx>physical......................
................................. .......71
showinterfacesserial<wanx>ppp.....
................................. ...........................72
showinterfacesserial<wanx>queue.. ................... ..............
............... .............74
showinterfacesserial<wanx>trace.................
............... ................... .............75
showinterfacesserial
<wanx> ............................................. ........................64
showinterfacesserial.................... .........
...............................................62
showinterfaceswirelessmodem
................................. .................................158
testinterface<wanx>start‐bert<test‐name>...........................
............................100
testinterface<wanx>stop‐bert..................
............... ................... ...............102
test
loopbackdown......... ................... .................................................103
testloopbackstart.....................
.........................................................105
testloopbackup ... ................... ..................
.......................................107
test‐definitionbert<test‐name>duration<duration> ....
................................ .. ...........89

test‐definitionbert<test‐name>
err‐insert‐rate<rate> .............. ..................................90

viii
WANInterfaces 6.5R1v01 Vyatta
test‐definitionbert<test‐name>loopup‐code<code>...................................... ...........92
test‐definitionbert<test‐name>pattern<pattern‐name>alternating‐word ...............................96
test‐definitionbert
<test‐name>pattern<pattern‐name>repeating.....................................98
test‐definitionbert<test‐name>pattern<pattern‐
name> .............. ................... .............94
test‐definitionbert<test‐
name>.............................. ................... ..................87
ix
WANInterfaces 6.5R1v01 Vyatta
ListofExamples
Use this list to help you locate examples you’d like to look at or try.
Example1‐1Viewingavailablesysteminterfaces ............................................. ..........3
Example1‐2“clearinterfacesserial”..................................
...............................9
Example1‐3“clearinterfacesserialwan0counterscisco‐hdlc”:Displayingtheresultoftheclearcommand....
..9
Example1‐4Displayingtrafficdata............................ ...............
.......................60
Example1‐5“showinterfacesserial”:Displayingserialinterfaceinformation..................
............62
Example1‐6“showinterfacesserialwan1”:Displayingserialinterfaceinformation........ .................64
Example1‐7
“showinterfacesserialwanxbert‐status”.................................................65
Example1‐8“showinterfacesserialwanxppp”.......................................

................72
Example1‐9“showinterfacesserialwanxtrace”...........................
...........................75
Example2‐1TestingthelocalWANinterface.................
................................. .......82
Example2‐2TestingtheremoteWANinterface ..
................................. ...................82
Example2‐3Testingthecircuit ................. .........................
............... ...........82
Example2‐4Testingaphysicalloopbackonthelocalsystem ..............
............... ...............83
Example2‐5StartingaBERT............ ..
........................................................101
Example2‐6StoppingaBERT........................................
.............................102
Example2‐7Deactivatingalocalloopbackonwan0.............
................................. .....104
Example2‐8Successfultestofa loopback .....
................................. .....................105
Example2‐9Unsuccessfulloopbacktest.........................................
...................106
Example2‐10Activatingalocalloopback...................... ...
............... ...................108
Example3‐1CreatingandconfiguringanADSLinterfaceforPPPoEencapsulation.....
....................112
Example4‐1SierraWirelessUSBConnect881modemaccessingtheAT&Tnetwork.................
......126
Example4‐2UTStarcom3GmodemaccessingtheVerizonnetwork .................................
...126
Example4‐3Disconnectingfromthenetwork................................... .....

...............127
Example4‐4Connectingtothenetwork .............................
...............................127
Example4‐5“showinterfaces”:Displayinginterfacestatus...........
............... ..................158
Example4‐6“showinterfaceswirelessmodemwlm0”:Displayingwirelessmodeminterfaceinformation......159
Example4
‐7“showinterfaceswirelessmodemwlm0debug”:Displayingdebuginformationforthewirelessmodem
interface.....................................
............... ................... ...............159

x
WANInterfaces 6.5R1v01 Vyatta
Example4‐8“showinterfaceswirelessmodemwlmxstatistics”:Displayingstatisticsforthewirelessmodeminterface
160
xi
WANInterfaces 6.5R1v01 Vyatta
Preface
This document describes the various deployment, installation, and upgrade options
for Vyatta software.
This preface provides information about using this guide. The following topics are
presented:
• Intended Audience
• Organization of This Guide
• Document Conventions
• Vyatta Publications
 IntendedAudience
xii
WANInterfaces 6.5R1v01 Vyatta
IntendedAudience

This guide is intended for experienced system and network administrators.
Depending on the functionality to be used, readers should have specific knowledge
in the following areas:
• Networking and data communications
• TCP/IP protocols
• General router configuration
• Routing protocols
• Network administration
• Network security
• IP services
OrganizationofThisGuide
This guide has the following aid to help you find the information you are looking for:
• Quick List of Commands
Use this list to help you quickly locate commands.
• List of Examples
Use this list to help you locate examples you’d like to try or look at.
This guide has the following chapters:
Chapter Description Page
Chapter 1:SerialInterfaces Thischapterexplainshowtoconfigureand
monitorserialinterfacesontheVyatta
system.
1
Chapter 2:Testin gSerialLines Thischapterdescribesthetestsavailablefor
serialinterfacesontheVyattasystem.
77
Chapter 3:DSLInterfaces ThischapterexplainshowtouseDigital
SubscriberLine(DSL)interfacesontheVyatta
system.Currentlythe
Vy attasystemsupports
AsymmetricalDSL(ADSL)interfacesonly.

109
Chapter 4:WirelessModem
Interfaces
Thischapterexplainshowtoworkwith
wirelessmodemsontheVyattasystem.
125
GlossaryofAcronyms 161
 DocumentConventions
xiii
WANInterfaces 6.5R1v01 Vyatta
DocumentConventions
This guide uses the following advisory paragraphs, as follows.
NOTENotesprovideinformationyoumightneedtoavoidproblemsorconfigurationerrors.
This document uses the following typographic conventions.
VyattaPublications
WARNINGWarningsalertyoutosituationsthatmayposeathreattopersonalsafety.
CAUTIONCautionsalertyoutosituationsthatmightcauseharmtoyoursystemordamageto
equipment,orthatmayaffectservice.
Monospace
Examples, command-line output, and representations of
configuration nodes.
boldMonospace
Your input: something you type at a command line.
bold Commands, keywords, and file names, when mentioned
inline.
Objects in the user interface, such as tabs, buttons, screens,
and panes.
italics An argument or variable where you supply a value.
<key> A key on your keyboard, such as <Enter>. Combinations of
keys are joined by plus signs (“+”), as in <Ctrl>+c.

[ key1 | key2] Enumerated options for completing a syntax. An example is
[enable | disable].
num1–numN A inclusive range of numbers. An example is 1–65535, which
means 1 through 65535, inclusive.
arg1 argN A range of enumerated values. An example is eth0 eth3,
which means eth0, eth1, eth2, or eth3.
arg[ arg ]
arg[,arg ]
A value that can optionally represent a list of elements (a
space-separated list and a comma-separated list, respectively).
 VyattaPublications
xiv
WANInterfaces 6.5R1v01 Vyatta
Full product documentation is provided in the Vyatta technical library. To see what
documentation is available for your release, see the Guide to Vyatta Documentation.
This guide is posted with every release of Vyatta software and provides a great
starting point for finding the information you need.
Additional information is available on www.vyatta.com and www.vyatta.org.
1
WANInterfaces 6.5R1v01 Vyatta
Chapter1:SerialInterfaces
This chapter explains how to configure and monitor serial interfaces on the Vyatta
system.
This chapter presents the following topics:
• Serial Interface Configuration
• Serial Interface Commands
ThisfeatureisavailableonlyintheVyattaSubscriptionEdition.
Chapter1:SerialInterfaces SerialInterfaceConfiguration
2
WANInterfaces 6.5R1v01 Vyatta

SerialInterfaceConfiguration
This section presents the following topics:
• Virtual Interfaces on Serial Interfaces
• Enabling Interfaces
• Viewing Available Serial Interfaces
VirtualInterfacesonSerialInterfaces
The Vyatta system distinguishes between physical interfaces (interfaces), and logical
interfaces (virtual interfaces, or vifs).
Every physical network device in the system is considered to be an “interface.” An
example of a interface is a physical port on a serial card. Every serial interface has
zero or more corresponding vifs.
On serial interfaces, physical line characteristics are specific for the interface, but
encapsulation (Cisco HDLC, Frame Relay, or Point-to-Point Protocol) is specified
for vifs.
Unlike Ethernet interfaces, a physical serial interface cannot directly have a
configured IP address. Instead, the IP address must be assigned to the vif.
Note that each serial vif can support exactly one IP address.
EnablingInterfaces
The Vyatta system will automatically discover any available physical serial interfaces
on startup. Before you can apply any configuration to a serial interface, a vif must be
“created” for the interface and its encapsulation specified in the configuration tree.
For serial interfaces, physical line characteristics are applied to the interface as a
whole. Encapsulation characteristics are applied to the vif, as shown in the
configuration hierarchy below:
interfaces{
serialwan0{
ppp{
vif1{
Chapter1:SerialInterfaces SerialInterfaceConfiguration
3

WANInterfaces 6.5R1v01 Vyatta
}
}
}
}
The current implementation supports Cisco HDLC, Frame Relay, and Point-to-Point
Protocol encapsulation.
• Cisco HDLC and point-to-point interfaces support only one vif, and this vif must
have the identifier 1.
• The identifier for Frame Relay vifs is the DLCI number. This can range from 16
through 991.
• Currently, any vif on a serial interface can support exactly one IP address.
ViewingAvailableSerialInterfaces
You can only configure interfaces that actually are available to the operating system
on the hardware you are using.
To view all the interfaces known to the operating system, use the show interfaces
system command in operational mode, as shown in Example 1-1:
Example1‐1Viewingavailablesysteminterfaces
vyatta@vyatta>show interfaces system
eth0:<BROADCAST,MULTICAST,UP,LOWER_UP>mtu1500qdiscpfifo_faststate
UPqlen1000
link/ether00:15:c5:fb:ba:e8brdff:ff:ff:ff:ff:ff
inet10.1.0.44/24brd10.1.0.255scopeglobaleth0
inet6fe80::215:c5ff:fefb:bae8/64scopelink
valid_lftforeverpreferred_lftforever
RX:bytespacketserrorsdroppedoverrunmcast
184692570001
TX:bytespacketserrorsdroppedcarriercollisions

174341700000

eth1:<BROADCAST,MULTICAST,UP,LOWER_UP>mtu1500qdiscpfifo_faststate
UPqlen1000
link/ether00:15:c5:fb:ba:e9brdff:ff:ff:ff:ff:ff
inet6fe80::215:c5ff:fefb:bae9/64scopelink
valid_lftforeverpreferred_lftforever
RX:bytespacketserrorsdroppedoverrunmcast
000000
Chapter1:SerialInterfaces SerialInterfaceConfiguration
4
WANInterfaces 6.5R1v01 Vyatta
TX:bytespacketserrorsdroppedcarriercollisions
42440000
lo:<LOOPBACK,UP,LOWER_UP>mtu16436qdiscnoqueuestateUNKNOWN
link/loopback00:00:00:00:00:00brd00:00:00:00:00:00
inet127.0.0.1/8scopehostlo
inet6::1/128scopehost
valid_lftforeverpreferred_lftforever
RX:bytespacketserrorsdroppedoverrunmcast
3600600000
TX:bytespacketserrorsdroppedcarriercollisions
3600600000
wan0:<POINTOPOINT,NOARP,UP,LOWER_UP>mtu4112qdiscpfifo_faststateUP
qlen100
link/ppp
RX:bytespacketserrorsdroppedoverrunmcast
000500
TX:bytespacketserrorsdroppedcarriercollisions
000000
wan1:
<POINTOPOINT,NOARP,UP,LOWER_UP>mtu4112qdiscpfifo_faststateUP

qlen100
link/ppp
RX:bytespacketserrorsdroppedoverrunmcast
000500
TX:bytespacketserrorsdroppedcarriercollisions
000000
Chapter1:SerialInterfaces SerialInterfaceCommands
5
WANInterfaces 6.5R1v01 Vyatta
SerialInterfaceCommands
This chapter contains the following commands.
ConfigurationCommands
SerialInterface
interfacesserial<wanx> Specifiesbasicserialinterfaceconfiguration,
includingLayer2encapsulationcharacteristics.
interfacesserial<wanx>description<desc> Specifiesadescriptionforaserialinterface.
interfacesserial<wanx>encapsulation<type> Setstheencapsulationtypeforaserialinterface.
E1Options
interfacesserial<wanx>e1‐options SpecifiesthephysicallinecharacteristicsforanE1
serialinterface.
interfacesserial<wanx>e1‐optionsclock<type> SetsthetimingsourceforanE1serialinterface.
interfacesserial<wanx>e1‐optionsframing<type> SetstheframingforanE1serialinterface.
interfacesserial<wanx>e1‐optionstimeslots Definestimeslotsfora
32‐channelchannelizedE1
line.
E3Options
interfacesserial<wanx>e3‐options SpecifiesthephysicallinecharacteristicsforanE3
serialinterface.
interfacesserial<wanx>e3‐optionsclock<type> SpecifiesthetimingsourceforanE3serial
interface.

interfacesserial<wanx>e3‐optionsframing<type> SpecifiestheframingtypeforanE3serial
interface.
interfacesserial<wanx>e3‐optionsline‐coding<type> Specifies
thelinecodingforanE3serialinterface.
SynchronousSerial
interfacesserial<wanx>synch‐options Specifiesthephysicallinecharacteristicsfor
synchronousserialinterfaces.
interfacesserial<wanx>synch‐options baud‐rate<rate> Setsthebitrateforaninternallyclocked
synchronousserialinterface.
interfacesserial<wanx>synch‐options clock<type> Setsthetimingsourceforasynchronousserial
interface.
Chapter1:SerialInterfaces SerialInterfaceCommands
6
WANInterfaces 6.5R1v01 Vyatta
interfacesserial<wanx>synch‐options connection<type> Setstheconnectiontypeforasynchronousserial
interface.
interfacesserial<wanx>synch‐options line‐coding<type> Setsthelinecodingstandardforasynchronous
serialinterface.
interfacesserial<wanx>synch‐options line‐idle<type> Setstheidlelinesignallingforasynchronousserial
interface.
T1Options
interfacesserial<wanx>t1‐options SpecifiesthephysicallinecharacteristicsforT1
serialinterfaces.
interfacesserial<wanx>t1‐optionsclock<type> SetsthetimingsourceforaT1serialinterface.
interfacesserial<wanx>t1‐optionslbo<range> Specifiesthelinebuild‐out(LBO)rangeforaT1
serialinterface.
interfacesserial<wanx>t1‐optionstimeslots Defines
timeslotsfora24‐channelchannelizedT1
line.
T3Options

interfacesserial<wanx>t3‐options SpecifiesthephysicallinecharacteristicsforaT3
serialinterface.
interfacesserial<wanx>t3‐optionsclock<type> Specifiesthetimingsourceforthe circuit.
interfacesserial<wanx>t3‐optionsframing<type> SpecifiestheframingtypeforaT3serialinterface.
interfacesserial<wanx>t3‐optionsline‐coding<type> Specifiestheline
codingforaT3serialinterface.
OperationalCommands
clearinterfacesserial Clearscounter sforserialinterfaces
monitorinterfacesserial<wanx>traffic Displaystrafficonaserialinterface.
showinterfacesserial Displaysstatisticsandstatusinformationforall
serialinterfaces.
showinterfacesserial<wanx> Displaysstatisticsandstatusinformationfora
serialinterface.
showinterfacesserial<wanx>bert‐status DisplaysamessageindicatingBERTprogressfora

serialinterface.
showinterfacesserial<wanx>cisco‐hdlc DisplaysCiscoHDLCinformationforaserial
interface.
showinterfacesserial<wanx>frame‐relay DisplaysFrameRelayinformationforaser ial
interface.
Chapter1:SerialInterfaces SerialInterfaceCommands
7
WANInterfaces 6.5R1v01 Vyatta
Commands for using other system features with serial interfaces can be found in the
following locations.
showinterfacesserial<wanx>log Displaysloginformationforaserialinterface.
showinterfacesserial<wanx>loopback Displaysloopbackinformationforaserial
interface.
showinterfacesserial<wanx>physical Di splaysphysicaldeviceinformationforaserial
interface.

showinterfacesserial<wanx>ppp DisplaysPoint‐to‐Pointprotocolinformationfora
serialinterface.
showinterfacesserial<wanx>queue Displays
queueinformationforaserialinterface.
showinterfacesserial<wanx>trace Displaystraceinformationforaserialinterface.
RelatedCommandsDocumentedElsewhere
SerialInterfaceTesting Com mandsfortestingserialinterfaces,includingcommandsforconfiguringBERT
tests,aredescribedin“Chapter 2:TestingSerialLines.”
Firewall CommandsforconfiguringfirewallonserialinterfacesaredescribedintheVyatta
FirewallReferenceGuide.
OSPF CommandsforconfiguringtheOpenShortestPathFirstroutingprotocolonserial
interfacesare
describedintheVyattaOSPFReferenceGuide.
RIP CommandsforconfiguringtheRoutingInformationProtocolonserialinterfacesare
describedintheVyattaRIPReferenceGuide.
QoS Commandsforconfiguringqualityofserviceonserialinterfacesaredescribedinthe
VyattaQoSReferenceGuide.
Systeminterfaces Commandsforshowingthephysical
interfacesavailableonyoursystemare
describedintheVyattaBasicSystemReferenceGuide.
Chapter1:SerialInterfaces SerialInterfaceCommands
8
WANInterfaces 6.5R1v01 Vyatta
clearinterfacesserial
Clears counters for serial interfaces
Syntax
clear interfaces serial [wanx counters {all | physical | cisco-hdlc | frame-relay | ppp}]
CommandMode
Operational mode.
Parameters

UsageGuidelines
Use this command to clear statistics for a specified serial interface.
When used with no option, this command clears all counters on all serial interfaces.
When a protocol or interface is specified, this command clears the counters for the
specified protocol on the specified interface.
Examples
Example 1-2 shows the result of the clear interfaces serial command used with no
options.
wanx The identifier of a configured serial interface.
all Clears all counters for the specified serial interface.
physical Clears counters related to the physical line settings for the specified
interface.
cisco-hdlc Clears counters related to Cisco HDLC settings for the specified
interface.
frame-relay Clears counters related to Frame Relay settings for the specified
interface.
ppp Clears counters related to Point-to-Point Protocol settings for the
specified interface.
Chapter1:SerialInterfaces SerialInterfaceCommands
9
WANInterfaces 6.5R1v01 Vyatta
Example1‐2“clearinterfacesserial”
vyatta@R1>clearinterfacesserial
Communicationstatisticsflushed
Operationalstatisticsflushed
DSU/CSUPerfomanceMonitoringcounterswereflushed.
Performancemonitoringcountersflushed
PPPstatisticsflushed
Communicationstatisticsflushed
Operationalstatisticsflushed

DSU/CSUPerfomanceMonitoringcounterswereflushed.
Performancemonitoringcountersflushed
PPPstatisticsflushed
vyatta@R1>
Example 1-3 shows the result of the clear interfaces serial command use with the
wan0 counters cisco-hdlc options.
Example1‐3“clearinterfacesserialwan0counterscisco‐hdlc”:Displayingtheresultof
theclearcommand.
vyatta@R1>clearinterfacesserialwan0counterscisco‐hdlc
DSU/CSUPerfomanceMonitoringcounterswereflushed.
Performancemonitoringcountersflushed
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
wan0.1:SLARPSTATISTICS
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
SLARPframetransmission/receptionstatistics
SLARPrequestpacketstransmitted:0
SLARPrequestpacketsreceived:0
SLARPReplypacketstransmitted:0
SLARPReplypacketsreceived:0
SLARPkeepalivepacketstransmitted:0
SLARP
keepalivepacketsreceived:0
IncomingSLARPPacketswithformaterrors
InvalidSLARPCode:0
ReplieswithbadIPaddr:0
Replieswithbadnetmask:0
SLARPtimeout/retrystatistics
SLARPRequesttimeouts:0
keepalivereceptiontimeouts:0
CiscoDiscoveryProtocolframes

Transmitted:0
Received:0
DSU/CSUPerfomanceMonitoringcounterswereflushed.
Chapter1:SerialInterfaces SerialInterfaceCommands
10
WANInterfaces 6.5R1v01 Vyatta
vyatta@R1>
Chapter1:SerialInterfaces SerialInterfaceCommands
11
WANInterfaces 6.5R1v01 Vyatta
interfacesserial<wanx>
Specifies basic serial interface configuration, including Layer 2 encapsulation
characteristics.
Syntax
set interfaces serial wanx
delete interfaces serial wanx
show interfaces serial wanx
CommandMode
Configuration mode.
ConfigurationStatement
interfaces{
serialwanx{
}
}
Parameters
Default
None.
UsageGuidelines
Use this command to configure a serial interface. You can define multiple serial
interfaces by creating multiple serial configuration nodes.

Note that you cannot use set to change the name of the serial interface. To change
the name of a serial interface, you must delete the old serial configuration node and
create a new one.
wanx Mandatory. Multi-node. The identifier for the serial interface you
are defining. This may be wan0 to wan23, depending on what
serial interfaces that are actually available on the system.

×