6211-I1 ADSL2+ Router Command Line Interface User’s Guide Document Number 6211-A2-GB23-00 September 2005
6211-I1 ADSL2+ Router Command Line Interface User’s Guide Copyright 2005 Paradyne Corporation. All rights reserved. Printed in U.S.A. Notice This publication is protected by federal copyright law.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide Table of Contents Table of Contents.......................................................................................................................................... 3 Introduction ................................................................................................................................................... 5 Control Key Support...............................................................................................
6211-I1 ADSL2+ Router Command Line Interface User’s Guide sysinfo ................................................................................................................................................... 42 tftp .......................................................................................................................................................... 43 wan ...............................................................................................................................
6211-I1 ADSL2+ Router Command Line Interface User’s Guide Introduction This manual describes the Command Line Interface (CLI) available in the 6211-I1 ADSL2+ router. The following commands are available from the 6211-I1 CLI: • adsl • arp • atm • brctl • cat • defaultgateway • df • dhcpserver • dns • dumpcfg • help • ifconfig • lan • logout • passwd • ping • ppp • ps • pwd • reboot • remoteaccess • restoredefault • route • save • sntp • swversion • sysinfo • tftp • wan The access the CLI: 1.
211-I1 ADSL2+ Router Command Line Interface User’s Guide Effect of 6211-I1 CLI Commands Command Effective at Run time Save to CFM Run-time Database Save to Flash Config File Comments adsl Yes Yes Yes -- arp Yes No No -- atm Yes Yes Yes -- cat Yes No No -- defaultgateway Yes Yes Yes If the command contains "interface" as an option, then this interface must already exist. WAN and LAN interface configuration requires a reboot to be brought up.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide Control Key Support Control Key Support Navigate Key Combination Command History Scrolling (maximum 15 commands in history) Up UP ARROW or CTL+p Down DOWN ARROW or CTL+n Move Cursor Left LEFT ARROW or CTL-b Right RIGHT ARROW or CTL-f Beginning of line CTL+a End of line CTL+e Clear and Terminate Clear screen CTL+l (lowercase letter of L) Clear to the beginning of line CTL+u Clear to the end of line CTL+k Delete DEL or CTL+h Term
6211-I1 ADSL2+ Router Command Line Interface User’s Guide CLI Commands adsl Name adsl Allows you to control the ADSL driver. Synopsis adsl adsl adsl adsl adsl adsl adsl adsl start [options] stop connection [options] configure [options] bert [options] info [options] version help Description The adsl command controls the ADSL driver. This utility: • starts and stops the driver. • activates, deactivates, and controls the ADSL connection. • configures the ADSL driver and connection parameters.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide stop Stops the ADSL connection and the ADSL driver. This command calls BcmAdsl_Uninitialize.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide --ccw Enables special CRC workaround for Centillium modems. Option for the stop command: adsl stop Options for the connection command: adsl connection [--up] [--down] [--loopback] [--reverb] [--medley] [--noretrain] [--L3] [--tones ] --up Starts the ADSL connection in normal mode. --down Puts ADSL PHY in idle mode. --loopback Puts the ADSL PHY in ATM cell loopback mode.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide --start Starts the BERT. seconds--duration of the BERT in seconds. --stop Stops the BERT. --show Displays the BERT results to stdout in the following format: BERT BERT BERT BERT BERT Status = [NOT] RUNNING Total Time = 10 seconds Elapsed Time = 10 seconds Bits Tested = 0x00000000045A6380 bits Err Bits = 0x0000000000000002 bits BERT status indicates whether the BERT is currently running.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide Examples A simple initialization. adsl start [--up] or adsl start adsl connection --up A more complex initialization. adsl start --up --mod dl --lpair I or adsl start adsl connection --up --mod dl --lpair I Getting in and out of the test modes. adsl connection --reverb ... adsl connection --up Selecting tones. adsl connection --tones 0 32 0xFEFFFF7F 32 224 0xFEFFFFFFFFFFFF7F Selects tones from 1 to 31 for upstream and from 33 to 95 for downstream.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide Display complete ADSL driver and PHY status. adsl info --show adsl: ADSL driver and PHY status Status: Showtime Channel: FAST, Upstream rate = 8064 Kbps, Downstream rate = 1024 Kbps Mode G.DMT Channel Fast Trellis ON Line Status No defect Training status Showtime Down Up SNR (dB) 16.1 7.0 Attn (dB) 0.0 5.5 Pwr (dBm) 6.5 7.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide arp Name arp Manipulate the modem's Address Resolution Protocol (ARP) table. Synopsis arp arp arp arp add delete show --help Description The arp command manipulates the modem's ARP table. ARP entries added by this command are not saved in the flash memory by the save command. After system reboot, ARP entries need to be re-added. Examples Add a static ARP entry for IP address 192.168.1.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide atm Name atm Allows you to control the ATM driver. Synopsis atm start [options] atm stop atm operate tdte|intf|vcc [options] Description The atm command controls the ATM driver. This utility: • starts and stops the driver. • activates and deactivates an ATM interface (port) or a Virtual Channel Connection (VCC). • adds and removes traffic descriptor table entries. • adds and removes VCCs.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide --intf port--port number (starting at 0) to be configured. type--adsl|loopback|utopia|tc address--UTOPIA address. Only used if type is UTOPIA. More than one "intf" option can be specified to configure multiple ports. If no "intf" option is specified, the default value is "0, adsl, 0.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide --delete port.vpi.vci--port number, VPI, and VCI that identifies the VCC to delete. --addq port.vpi.vci--port number, VPI, and VCI that identifies the VCC to add a new queue. Size--size of the queue. Priority--priority of the queue. --deleteq port.vpi.vci--port number, VPI, and VCI that identifies the VCC to delete a queue. size--size of the queue.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide Examples A simple initialization. atm start atm operate vcc --add 0.0.35 aal5 1 vcmux_bridged8023 A more complex initialization. atm start --pqs 400 --bo 0 atm operate tdte --add ubr_pcr 15000 atm operate tdte --show index ype pcr scr mbs 1 ubr 0 0 0 2 ubr_pcr 15000 0 0 atm operate vcc --add 0.0.35 aal5 2 vcmux_bridged8023 Display interface configuration (assumes that the ATM driver is started).
6211-I1 ADSL2+ Router Command Line Interface User’s Guide Display VCC statistics (assumes that the ATM driver is started and two VCCs are configured). aal5 vcc statistics for 0.0.35 crc errors 0 oversized sdus 0 short packet errors 0 length errors 0 aal5 vcc statistics for 0.0.36 crc errors 0 oversized sdus 0 short packet errors 0 length errors 0 brctl Name brctl Bridge administration utility.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide setbridgeprio Sets the bridge's priority to . The priority value is an unsigned 16-bit quantity (a number between 0 and 65535), and has no dimension. Lower priority values are better than higher priority values. The bridge with the lowest priority is elected as the "root bridge." setfd
6211-I1 ADSL2+ Router Command Line Interface User’s Guide Turn off STP. brctl stp br0 off cat Name cat Concatenates files and prints them to standard output. Synopsis cat [FILE] ... Description Concatenates files, if more than one is specified, and prints the result to standard output. Commands None. Options None. Examples Display system memory information.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide defaultgateway Name defaultgateway Configure or show the default gateway or default route.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide df Name df Print the file system used space and available space. Synopsis df [OPTION]... [FILESYSTEM]... Description The df command displays the amount of disk space available on the file system of each file system name argument. If no file system name is given, the space available on all currently mounted file systems is shown. Disk space is shown in 1 kilobyte blocks (default). Commands None.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide dhcpserver Name dhcpserver Lets you configure or show the DHCP server data. Synopsis dhcpserver config dhcpserver show dhcpserver --help Description The dhcpserver command configures or shows the DHCP server data. This utility: configures the DHCP server on the primary LAN interface. shows the DHCP server configuration data. displays usage. All information is displayed to stdout.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide The lease period for which the server assigns an IP address to the client in case the client does not request for the specific lease period itself. Valid values: 0-8760. Default value: 24 hours (this equals a day). Options for the show command: dhcpserver show Options for the --help command: dhcpserver --help Examples Configure the DHCP server. dhcpserver config 192.168.1.2 192.168.1.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide Commands config Configures the DNS relay with the given data. The command only saves the configuration data to flash and does not take effect until the system is rebooted. show Shows the DNS relay configuration data. --help Displays usage. Options Options for the config auto command: dns config auto Options for the config static command: dns config static [] The IP address of the primary DNS server.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide dumpcfg Name dumpcfg Display the system's configuration. Synopsis dumpcfg Description The dumpcfg command displays the system's configuration, which is in text XML format. Commands None. Options None. Examples Display the system's configuration.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide band="b" channel=" 11" rate="auto" multicastRate="auto" basicRate="default" fragThreshold="2346" RTSThreshold="2347" DTIM="1" beacon="100" XPress="off" gMode="auto" gProtection="auto" preamble="long"/> PAGE 296211-I1 ADSL2+ Router Command Line Interface User’s Guide -e Interprets backslash-escaped characters (for example, =tab). -E Disables the interpretation of backslash-escaped characters. Examples Display a string. echo "Hello, world" Display the value of the environment variable $TERM. echo $TERM Display all files or subdirectories. echo /etc/* echo * echo /var/* help Name help List all available CLI commands supported by the DSL router.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide Commands None. Options interface The name of the interface. This is usually a driver name followed by a unit number (for example, eth0 for the first Ethernet interface). address The IP address to be assigned to this interface. up This flag causes the interface to be activated. It is implicitly specified if an address is assigned to the interface. down This flag causes the driver for this interface to be shut down.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide [-]pointopoint [addr] This keyword enables the point-to-point mode of an interface, meaning that it is a direct link between two machines with nobody else listening on it. If the address argument is also given, set the protocol address of the other side of the link, as does the obsolete dstaddr keyword. Otherwise, set (or clear) the IFF_POINTOPOINT flag for the interface. [-]trailers Set (or clear) the IFF_NOTRAILERS flag for the interface.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide Commands None. Options pid... Specifies the list of processes that kill should signal. -signal Given as a signal name or number. -l Lists all signal names and numbers. Examples Terminate the process with pid 120. kill 120 Send the KILL signal to the process with pid 120. kill -SIGKILL 120 List all signal names and numbers. kill -l lan Name lan Lets you configure the IP layer for the LAN interfaces.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide Commands config Configures the IP layer for the primary or secondary LAN interface. delete Deletes the primary or secondary LAN interface configuration. show Shows configuration data for the primary and secondary LAN interfaces. --help Displays usage.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide Examples Configure a primary LAN interface. lan config -ipaddr primary 192.168.1.1 255.255.255.0 Remove a secondary LAN interface. lan delete -ipaddr secondary Display all LAN interfaces. lan show br0 Link encap:Ethernet HWaddr 02:10:18:01:00:01 inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide passwd Name passwd Lets you change the password. Synopsis passwd Description The passwd command is used to change the password for user account admin, support, or user. Examples Change the password for user admin to superuser. > passwd admin superuser ping Name ping Sends Internet Control Message Protocol (ICMP) echo requests to the target host.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide ppp Name ppp Lets you bring up or bring down a PPP connection. Synopsis ppp config [] up|down Description The ppp command controls the PPP interfaces. The ppp command brings up the PPP connection with the "up" option, and brings down the connection with the "down" option.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide Options None. Examples Report process status. ps pwd Name pwd Print the name of the current working directory. Synopsis pwd Description The pwd command displays the name of the current working directory. Examples To view the current working directory. >pwd / reboot Name reboot Reboot the system. Synopsis reboot Description The reboot command reboots the system. Commands None. Options None. Examples Reboot the system.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide remoteaccess Name remoteaccess Allows certain protocols to access the modem from the WAN side. Synopsis Usage: remoteaccess remoteaccess show remoteaccess --help Description The remoteaccess command sets the security level to allow or disallow remote access into the route using telnet, http, snmp, or ping from the WAN side. The options are enable, disable, and show. Examples Show the current remote access mode.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide route Name route Shows and configures the IP routing table. Synopsis route route route route add <[] []> delete show --help Description The route command lets you add entries to and delete entries from the IP routing table. Its primary use is to set up static routes to specific hosts or networks via an interface.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide Examples Add a route to the network 192.56.76.x via the br0 interface. route add 192.56.76.0 255.255.255.0 br0 Add a route to gateway 10.6.33.129 for network 192.57.66.x. route add 192.57.66.0 255.255.255.0 10.6.33.129 Output The output of the kernel routing table is organized in the following columns: Destination The destination network or destination host. Gateway The gateway address or "*" if none is set.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide sntp Name sntp Automatically synchronizes the router time (with a time zone) with Internet time servers. Synopsis sntp sntp sntp sntp sntp -s server [ -s server2 ] -t "timezone" disable date zones --help Description The sntp command automatically synchronizes the router's time with the specified Internet time servers. Options disable If SNTP is enabled, disable it (requires a reboot). date Show the current date and time of the router.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide swversion Name swversion Displays the current running software version. Synopsis swversion show Description The swversion command is used to view the software version, ADSL firmware version, and ADSL driver version. Examples Display the current software version. > swversion show 3.02L.01.A2pB018e.d16f In this example, 3.02L.01 is the software version, A2pB018e is the ADSL firmware version, and d16f is the ADSL driver version.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide tftp Name tftp Starts a TFTP client to update software or retrieve and back up the configuration data. Synopsis tftp [OPTION]... tftp_server_ip_address Description The TFTP client updates the software and configuration data from a remote TFTP server and backs up and retrieves the configuration to the remote TFTP server. Commands None. Options -g Get file (update image/configuration data). -p Put file (back up configuration data).
6211-I1 ADSL2+ Router Command Line Interface User’s Guide wan Name wan Lets you configure the WAN interfaces for the DSL router. Synopsis wan config
6211-I1 ADSL2+ Router Command Line Interface User’s Guide show Shows the ATM PVC VPI/VCI, service category, WAN interface service name, WAN interface name, WAN protocol, WAN interface service state, WAN interface up/down status, and WAN IP address. --help Displays usage for the WAN interface. Options Options for the config command: wan config
6211-I1 ADSL2+ Router Command Line Interface User’s Guide --encap The encapsulation type over the ATM PVC. Valid values: llc or vcmux. • llc--For MER, PPPoE, or bridge, llc is RFC2684 bridged encapsulation. For PPPoA, llc is RFC2364 LLC/NLPID encapsulation. • vcmux--RFC2684 VC-MUX (null encapsulation). Default value: llc for bridge, PPPoE, MER, or IPoA. vcmux for PPPoA. --firewall The firewall state of the MER or IPoA interface.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide --pppidletimeout The PPP timeout of a PPPoE or PPPoA interface. This option is only applied to a PPPoE or PPPoA interface. Valid values: 0-1090 (minutes). 0: PPP connection is always on. Greater than 0: WAN traffic is monitored and the PPP connection is torn down when there is no user data activity over the WAN interface for more than this idle time period. Default value: 30 minutes.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide Options for the delete command: wan delete [] port--port number of the VCC to add. Valid values: 0. vpi--VPI of the VCC to add. Valid values: 0-255. Default value: 0 vci--VCI of the VCC to add. Valid values: 32-65535. Default value: 35. The number that identifies the existing WAN connection. If the connection Id is omitted, then its value is 1. Valid values: 1-8.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide Examples Configure a PPPoE interface. wan config 0.0.35 --protocol pppoe --username username --password password -encap llc Configure a PPPoA interface. wan config 0.0.36 --protocol pppoa --username username --password password -encap vcmux Configure a MER configuration using DHCP client. wan config 0.0.37 --protocol mer --encap llc Configure a MER configuration using a static WAN address. wan config 0.0.37 --protocol mer --encap llc --ipaddr 10.6.
6211-I1 ADSL2+ Router Command Line Interface User’s Guide Display usage for bridge. wan -help bridge Usage: wan config [--protocol ] [--encap ] [--state ] [--service ] wan delete wan show [