Cyclades ts20br
Cyclades ts20br
Cyclades ts20br
Installation Manual
Cyclades Corporation
Cyclades-TS Installation Manual
Version 2.0br – June 2001
Copyright (C) Cyclades Corporation, 2001
We believe the information in this manual is accurate and reliable. However, we assume no responsibility,
financial or otherwise, for any consequences of the use of this product or Installation Manual.
This manual is published by Cyclades Corporation, which reserves the right to make improvements or changes
in the products described in this manual as well as to revise this publication at any time and without notice to any
person of such revision or change.
All brand and product names mentioned in this publication are trademarks or registered trademarks of their
respective holders.
1. OBJETIVO DO CONTRATO
Sujeito aos termos e condições estabelecidos neste contrato, o USUÁRIO poderá utilizar o software instalado
no Cyclades-PR2000, suas atualizações disponibilizadas através da Internet e toda a documentação que o
acompanha, somente na consecução de suas atividades comerciais internas.
2. TITULARIDADE
O Software pertence à CYCLADES BRASIL. O Software é protegido pela legislação de direitos autorais da
República Federativa do Brasil e por tratados internacionais. O Software deve ser tratado como qualquer outro
material protegido pelo direito autoral (como por exemplo, um livro ou gravação musical). É vedada a
reprodução dos materiais escritos que seguem anexo ao software sem autorização plena e escrita da
CYCLADES BRASIL.
3. DO USO RESTRITO
É vedado o empréstimo, aluguel, licenciamento ou arrendamento do Software e materiais escritos. Todavia,
poderá cedê-lo em caráter definitivo, desde que o USUÁRIO não retenha nenhuma cópia do mesmo e que o
adquirinte concorde em sujeitar-se aos termos deste Contrato. É vedada a engenharia reversa, bem como
descompilação ou decomposição do Software.
A CYCLADES BRASIL garante ao USUÁRIO por um período de 90 (noventa) dias, a contar da data de
emissão da nota fiscal, que o Software estará adequadamente gravado no produto e em condições de operar
conforme descrito na documentação que o acompanha. A CYCLADES BRASIL também garante que o
Software estará de acordo com as especificações funcionais descritas nos manuais técnicos. Na hipótese do
Software estar desconforme com a garantia ora oferecida, a CYCLADES BRASIL, a seu único critério, poderá
consertar, substituir ou reembolsar o preço da compra do Software mediante devolução deste e do Hardware
que o acompanha, desde que se aplique.
5. PRAZO
Este Contrato permanecerá em vigor até sua rescisão mediante aviso prévio ao USUÁRIO, salvo se o mesmo
vier a descumprir qualquer disposição deste Contrato, quando a CYCLADES BRASIL poderá, a seu exclusivo
critério e sem necessidade de notificação prévia, rescindi-lo. Após a rescisão, V.Sa. deverá destruir o Software
e todas as suas cópias ou partes do mesmo.
6. FORO
Fica eleito desde já, com exclusão de qualquer outro, o foro central da cidade de Barueri, estado de São
Paulo, para dirimir toda e qualquer dúvida ou pendência oriunda deste Contrato.
Configuration of the equipment is done by editing a few plain-text files (commented sample files for the principal
profiles are provided in appendix C), and then updating the versions of the files in the Cyclades-TS. The files
can be edited in the Cyclades-TS using the vi editor provided, or in another computer with the environment and
text editor of your choice. Unix user or not, we strongly recommend that you follow the steps in this installation
manual before jumping in.
Capítulo 1 - O Que Você Precisa Saber 6
Cyclades-TS Installation Manual
This manual should be read in the order written, with exceptions given in the text.
Chapter 2 - What is in the Box - explains how the Cyclades-TS should be connected and what each cable is
used for.
Chapter 3 - Summary of the Configuration Process - provides a brief roadmap of the Cyclades-TS
configuration
Chapter 4 - Configuration - describes the basic configuration process to get the Cyclades-TS up and running
for the most common uses.
Chapter 5 - Troubleshooting - provides solutions and test procedures for typical problems.
Appendix A - Linux Information - Information for those who are new to Linux/Unix.
Appendix B - Hardware Specifications - Pinout diagrams for cables.
Appendix C - Pslave.conf Sample Files - Example files for 3 profiles and the master file.
Appendix D - Customization - Instructions for those who wish to create their own applications.
Garantia Lifetime
O Que é Garantia Lifetime Cyclades?
Capítulo 1 - O Que Você Precisa Saber 7
Cyclades-TS Installation Manual
É uma política de garantia para os produtos Cyclades que significa garantia por toda a vida do produto contra
defeitos de fabricação ou defeitos não causados por agressões do ambiente onde o produto está instalado,
desde que todas as recomendações e especificações constantes dos manuais Cyclades tenham sido
observadas.
Hardware: A Garantia Lifetime Cyclades cobre falhas do produto decorrentes de defeito de fabricação, ou não
causadas por agressões ao produto, impostos pelo ambiente onde o produto está instalado.
• Os componentes e/ou a própria placa quando danificados pela queima de canais seriais, e a
respectiva mão de obra para conserto.
• A fonte de alimentação, após 90 dias da data de compra.
• Os componentes e/ou a própria placa quando danificados pela queima da interface com o bus do
micro onde uma placa multisserial foi instalada, e a respectiva mão de obra para conserto.
3. Produtos que tenham sido alterados e/ou reparados pelo cliente sem a autorização por escrito da
Cyclades; produtos cujo número de série da Cyclades Brasil tenha sido removido, ou que não tenham
sido vendidos pela Cyclades Brasil ou representante autorizado.
4. Qualquer perda ou dano resultante do uso ou da incapacidade de usar o produto, nem o custo de reparar
ou substituir qualquer outro bem que seja danificado, nem lucros cessantes quando este produto não
funcionar adequadamente.
Caso seu produto, adquirido há menos de 30 dias, apresente problemas no funcionamento, entre em contato
com o Suporte Técnico. Eles irão avaliar a necessidade da troca do produto por outro produto novo, caso haja
problema de fabricação.
Caso seja um caso urgente, entre em contato primeiro com a Assistência Técnica da Cyclades no telefone
(11) 5033-3311. Na nota fiscal, coloque os seguintes dados:
Razão Social: Net Conectividade Ltda.
Endereço: Av. Santa Catarina, 155 - Aeroporto
São Paulo - SP 04635-000
CGC: 59.904.466/0002-45
I.E.: 112.350.633.116
CFO = 5.99 Remessa para conserto (se for do estado de São Paulo)
CFO = 6.99 Remessa para conserto (fora de S. Paulo)
Se sua empresa não for emitente de nota fiscal, envie junto com o produto uma carta fiscal incluindo seu
nome, R.G., endereço, telefone para contato declarando o motivo pelo qual você está enviando o produto para
a Cyclades, assinando-a em seguida.
O suporte técnico da Cyclades é composto de dois níveis. O primeiro é um suporte técnico telefônico (ou por
e-mail) gratuito fornecido pela própria Cyclades e o segundo é um suporte técnico local (on-site) fornecido pelo
CPP. Este segundo suporte não é gratuito.
Veja a relação dos CPPs cadastrados no Web site da Cyclades Brasil (www.cyclades.com.br). Na área de
“Revendas”, clique no sub-menu “CPPs”.
Cyclades-TS2000
Back View
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 90-240VAC
Ethernet
10/100Base-T Console
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
//////////
Cyclades-TS1000
Back View
90-240VAC
CYCLADES TS1000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Ethernet
10/100Base-T Console
//////////
On/Off
DC IN
1
0
Switch
Power Cable
Modem
Cable Console Cable
To Wall Outlet
Cross Cable
Connect to a modem or
(Same as Console Cable)
to a null-modem adaptor
Connect to a DTE Device
//////////
On/Off
DC IN
1
0
Switch
Power Cable
To Wall Outlet
Cross Cable
Connect to a modem or
(Same as Console Cable)
to a null-modem adaptor
Connect to a DTE Device
//////////
Loop-Back
Installation Manual Connector
A detailed description of each of these profiles is provided in the next chapter. The Cyclades-TS’s operating
system is embedded Linux. Even if you are a Unix user and find the tools and files familiar, do not configure this
product as you would configure a regular Linux server.
You do not need to be a Unix user to configure the Cyclades-TS. Additional information about the files and tools
needed for configuration is provided in appendix A.
A.Connecting the Cyclades-TS to the network and other devices. Consult Chapter 2, What is in the Box, for
questions on which cable should be used for which device.
B.Connect a PC or terminal to the Cyclades-TS via the console port and login.
D.Edit the pslave.conf file. This is the main configuration file that concentrates most product parameters and
defines the functionality of the Cyclades-TS. The modifications made to this file will depend on the profile.
F. Test the configuration to make sure the ports have been set up properly.
Full details on each step listed above and how to perform them are provided in the next chapter. Make sure to
always complete ALL the steps for your application before testing or switching to another profile.
CHAPTER 4 CONFIGURATION
This chapter guides you step by step through the configuration of the Cyclades-TS for the three principal
applications:
1. Console Server,
2. Terminal Server, and
3. Remote Access Server.
Many steps are common to both, so please read the entire chapter before beginning.
STEP ONE
Connect a PC or terminal to the Cyclades-TS using the console cable. If using a PC, HyperTerminal can be
used in the Windows operating system or Kermit in the Unix operating system. The terminal parameters should
be set as follows:
• Serial Speed: 9600 bps
• Data Length: 8 bits
• Parity: None
• Stop Bits: 1 stop bit
• Flow Control: Hardware flow control or none
• Ansi emulation (Note: if your terminal does not have ansi emulation, select vt100; then, on the TS, log in as
root and switch to vt100 by typing “TERM=vt100;export TERM”)
Log in as root (there is no password). A password should be created as soon as possible. The Cyclades-TS
runs Linux, a Unix-like operating system, and those familiar with the Unix operating system will feel quite at
home. A description of the Linux file system and basic commands is given in the Linux appendix at the end of
this manual.
Chapter 4 Configuration 17
Cyclades-TS Installation Manual
STEP TWO
A console server application is shown in Figure 4.1. It will be used in this step to demonstrate the configuration
of variables common to all applications.
Internet Workstation
TS1000 Ethernet Interface
IP Address: 200.200.200.1 Cyclades-PR1000
Ethernet Interface:
200.200.200.5
TS1000
Socket
Port 7008
Socket
192.168.1.108 Workstation
Socket Port 7001
Port 7002 192.168.1.101
192.168.1.102
Serial Connections
Speed: 9.6 K
Chapter 4 Configuration 18
Cyclades-TS Installation Manual
Four Linux files must be modified to identify the TS1000 and its neighbors. The operating system provides the vi
editor, which is described in the Linux appendix for the uninitiated. The first file is /etc/hostname. The only entry
should be the hostname of the Cyclades-TS. An example is shown in Figure 4.2.
TS1000
The third file that must be modified is /etc/resolv.conf. It must contain the domain name and nameserver information
for the network.
domain mycompany.com
nameserver 200.200.200.2
STEP THREE
This is where the configuration for the three profiles - Console Server, Terminal Server and Remote Access
Server diverge. Follow step three for the appropriate profile.
Chapter 4 Configuration 20
Cyclades-TS Installation Manual
Chapter 4 Configuration 22
Cyclades-TS Installation Manual
1. Since Radius authentication was chosen, create a new user on the Radius authentication server called test
and provide him with the password test.
2. From the console, ping 200.200.200.2 to make sure the Radius authentication server is reachable.
3. Make sure that the physical connection between the Cyclades-TS and the servers is correct. A cross cable
(not the modem cable provided with the product) should be used. Please see the hardware specifications
Chapter 4 Configuration 23
Cyclades-TS Installation Manual
For both telnet and ssh sessions, the servers can be reached by either:
1. Ethernet IP of the Cyclades-TS and assigned socket port
or
2. Individual IP assigned to each port.
If everything is configured correctly, a telnet session should open on the server connected to port 1. If not, check
the configuration, follow the steps above again, and check the troubleshooting appendix. Now continue on to
step four later in this chapter.
Chapter 4 Configuration 24
Cyclades-TS Installation Manual
LAN
Linux Server
IP: 200.200.200.3
ETH0 TS1000
IP: 200.200.200.1
Speed: 9600 Port 16 VT100 Terminal
Port 1
PC Running
Terminal Application (VT100)
Chapter 4 Configuration 25
Cyclades-TS Installation Manual
Chapter 4 Configuration 26
Cyclades-TS Installation Manual
Chapter 4 Configuration 27
Cyclades-TS Installation Manual
1. Since authentication was set to none, the Cyclades-TS will not authenticate the user. However, the Linux
Server receiving the connection will. Create a new user on the server called test and provide him with the
password test.
2. From the console, ping 200.200.200.3 to make sure the server is reachable.
3. Make sure that the physical connection between the Cyclades-TS and the terminals is correct. A cross cable
(not the modem cable provided with the product) should be used. Please see the hardware specifications
appendix for pin-out diagrams.
4. The Cyclades-TS has been set for communication at 9600 bps, 8N1. The terminals must also be configured
with the same parameters.
Chapter 4 Configuration 28
Cyclades-TS Installation Manual
5. From a terminal connected to the Cyclades-TS, try to log in to the server using the username and password
configured in item one.
Syslog Server
IP: 200.200.200.3
Port 32 Modem
TS2000 IP: 200.200.200.42
Port 1 Modem PC
Speed: 57600 Modem
PC
Modem IP: 200.200.200.11
Chapter 4 Configuration 29
Cyclades-TS Installation Manual
The fifth configuration file (the first four were described in step two) is specific to the Cyclades-TS and a sample
file with comments is supplied in the Linux file system. It is called /etc/portslave/pslave.conf. A listing of the
pslave.conf file with all possible parameters, as well as the files used to create the three applications in this
chapter, is provided in Appendix C. There are three basic types of parameters: conf.* parameters are global or
apply to the Ethernet interface; all.* parameters are used to set default parameters for all ports, and s#.* parameters
change the default port parameters for individual ports. An all.* parameter can be overriden by a s#.* parameter
appearing later in the pslave.conf file (or vice-versa). A brief description of each parameter used for the remote
access server profile is given in Figures 4.12-4.13.
Chapter 4 Configuration 30
Cyclades-TS Installation Manual
Chapter 4 Configuration 31
Cyclades-TS Installation Manual
Chapter 4 Configuration 32
Cyclades-TS Installation Manual
1. Since Radius authentication was chosen, create a new user on the Radius authentication server called test
and provide him with the password test.
Chapter 4 Configuration 33
Cyclades-TS Installation Manual
2. From the console, ping 200.200.200.2 to make sure the Radius authentication server is reachable.
3. Make sure that the physical connection between the Cyclades-TS and the modems is correct. The modem
cable provided with the product should be used. Please see the hardware specifications appendix for pin-
out diagrams.
4. The Cyclades-TS has been set for communication at 57600 bps, 8N1. The modems should be programmed
to operate at the same speed on the DTE interface. Also make sure that the computer is configured to route
console data to the COM port.
5. Try to dial in to the Cyclades-TS from a remote computer using the username and password configured in
item one. The computer dialing in must be configured to receive its IP address from the remote access
server (the Cyclades-TS in this case) and to use PAP authentication.
Next, the command saveconf, which reads the /etc/config_files file, should then be run. saveconf copies all the
files listed in the file /etc/config_files from the ramdisk to /proc/flash/script. The previous contents of the file /
proc/flash/script will be lost.
Restart the cy_ras process using its process ID. This can be done by executing the command:
signal_ras hup
This executes the ps command, searches for the cy_ras process id, then sends the signal HUP to the process,
all in one step.
Chapter 4 Configuration 34
Cyclades-TS Installation Manual
restoreconf does the opposite of saveconf, copying the contents of the /proc/flash/script
file to the corresponding files in the ramdisk. The files on the ramdisk are overwritten.
restoreconf is run automatically each time the Cyclades-TS is booted.
Chapter 4 Configuration 35
Cyclades-TS Installation Manual
To upgrade the Linux kernel provided in the Cyclades-TS, ftp the new zImage file on top of the zImage file in
the /proc/flash directory. Then, reboot, and the new Linux kernel will take over. This can be confirmed by
typing
cat /proc/version
to see the Linux kernel version.
Troubleshooting
If the Cyclades-TS booted properly, the interfaces can be verified using ifconfig and ping. If ping does not
work, check the routing table using the command route. Of course, all this should be tried after checking that
the cables are connected correctly.
As mentioned in Chapter 4, the file /etc/config_files contains a list of files acted upon by saveconf and
restoreconf. If a file is missing, it will not be loaded onto the ramdisk on boot. The following table lists files
that should be included in the /etc/config_files file and which programs use each.
File Program
/etc/securetty telnet, login, su
/etc/issue getty
/etc/getty_ttyS0 login (via console)
/etc/hostname tcp
/etc/hosts tcp
/etc/host.conf tcp
/etc/nsswitch.conf dns
/etc/resolv.conf dns
/etc/config_files saveconf
/etc/passwd login, passwd, adduser...
/etc/group login, passwd, adduser...
/etc/ssh/ssh_host_key.pub sshd
/etc/ssh/sshd_config sshd
/etc/ssh/ssh_config ssh client
/etc/ssh/ssh_host_key sshd (ssh1)
/etc/ssh/ssh_host_key.pub sshd (ssh1)
/etc/ssh/ssh_host_dsa_key sshd (ssh2)
/etc/ssh/ssh_host_dsa_key.pub sshd (ssh2)
/etc/snmp/snmpd.conf snmpd
/etc/portslave/pslave.conf cy_ras, portslave, TS configuration information
/etc/network/ifcfg_eth0 ifconfig eth0, cy_ras, rc.sysconf
/etc/network/ifcfg* ifconfig, cy_ras, rc.sysinit
/etc/network/ifcfg_lo ifconfig lo, cy_ras, rc.sysinit
/var/run/radsession.id radinit, radius authentication process
/home adduser, passwd
/etc/network/st_routes ifconfig, cy_ras, rc.sysconf
If any of the files listed in /etc/config_files is modified, the Cyclades-TS administrator must execute the
command saveconf before rebooting the Cyclades-TS or the changes will be lost. If a file is created (or a file
name altered), its name must be added to this file before executing saveconf and reboot.
Cyclades Technical Support is always ready to help with any configuration problems. Before calling,
execute the command
cat /proc/version
and note the Linux version and Cyclades-TS version written to the screen. This will speed resolution
of most problems.
Hardware Test
A hardware test called tstest is included with the Cyclades-TS firmware. It is a menu-driven program, run by
typing tstest at the command prompt, and the various options are described below. Note that the Cyclades-TS
should not be tested while in use as the test will inactivate all ports.
Port Test
Either a cross cable or a loop-back connector is necessary for this test. The pinout diagrams are supplied in
appendix B. Connect the loop-back connector to the modem cable and then connect the modem cable to the
port to be tested (or connect a cross cable between two ports to be tested). When tstest senses the presence
of the cable or connector, the test will be automatically run and the result shown on the screen.
Each line of data correponds to a port in test. The last 4 columns (DATA, CTS, DCD, and DSR) indicate errors.
The values in these columns should be zero. The figure below is an example of the output screen.
<- Packets -> <- Errors ->
From To Sent Received Passes Data CTS DCD DSR
2 <-> 2 35 35 35 0 0 0 0
4 <-> 5 35 35 35 0 0 0 0
5 <-> 4 35 35 35 0 0 0 0
When this test is run with a cable or connector without the DSR signal (see the pinout diagram for the cable or
connector being used), errors will appear in the DSR column. This does not indicate a problem with the port. In
the example above, tstest perceived that a loop-back connector was attached to port 2 and that a cross cable
Port Conversation
This test sends and receives data on the selected port. One way to run this test is to place a loop-back
connector on the port to be tested and begin. Enter the number of the port and a baud rate (9600 is a typical
value). Type some letters, and if the letters appear on the screen, the port is working. If the letters do not appear
on the screen (which also occurs if the loop-back connector is removed), the port is not functioning correctly.
A second method that can be used to test the port is to connect it to a modem with a straight cable. Begin the
test and type “at”. The modem should respond with “OK”, which will appear on the screen. Other commands
can be sent to the modem or to any other serial device.
First, type Ctrl-D to see the X in the DTR column move position, then type Ctrl-R to see the X in the RTS column
change position. If each of the Xs moves in response to its command, the signals are being sent.
Another method to test the signals is to use a loop-back connector. Enter the number of the port with the loop-
back connector and start the test. In this case, when Ctrl-D is typed, the Xs in the first three columns will move
as shown below.
This is because the test is receiving the DTR signal sent through the DCD and DSR channels. When Ctrl-R is
typed, the Xs in the RTS and CTS columns should move together. If the Xs change position as described, the
signals are being sent and received correctly.
Single User Mode
The Cyclades-TS has a single user mode used when:
• The name or password of the user with root privileges is lost or forgotten,
• After an upgrade or downgrade which leaves the Cyclades-TS unstable,
• After a configuration change which leaves the Cyclades-TS inoperative or unstable.
Type the word “single” during the boot using a console connection. This cannot be done using a telnet or other
remote connection.
After printing “Linux/PPC load: root=/dev/ram”, the Cyclades-TS waits approximately 10 seconds for user input.
This is where the user should type “single”. When the boot process is complete, the Linux prompt will appear
on the console:
[root@(none) /]#
If the problem is due to an upgrade/downgrade, a second downgrade/upgrade will be necessary to reverse the
process. First, the Ethernet interface must be initialized in order to reach a ftp server. Execute the following
script (replacing the IP number with your Ethernet interface IP number):
config_eth0 200.200.200.1
At this point, the DNS configuration (in the file /etc/resolv/conf) should be checked and a default route should be
created if one no longer exists. Then, download the kernel image using the ftp command.
passwd
to create a password for the root user.
useradd user_name
password user_password
Appendix A - Linux 42
Cyclades-TS Installation Manual
cp file_name destination Copies the file indicated by file_name to the path indicated by
a) cp text.txt /tmp destination. a) copies the file text.txt in the current directory to the tmp
b) cp /chap/robo.php ./excess.php directory. b) copies the file robo.php in the chap directory to the
current directory and renames the copy excess.php.
rm file_name Removes the file indicated by file_name.
mv file_name destination Moves the file indicated by file_name to the path indicated by
destination.
mkdir directory_name Creates a directory named directory_name. a) creates the directory
a) mkdir spot spot in the current directory. b) creates the directory snuggles in the
b) mkdir /tmp/snuggles directory tmp.
rmdir directory_name Removes the directory indicated by directory_name.
Appendix A - Linux 43
Cyclades-TS Installation Manual
Other commands allow the user to change directories and see the contents of a directory.
pwd Supplies the name of the current directory. While logged in, the user is always
"in" a directory. The default initial directory is the user's home directory,
/home/<username>
ls [options] directory_name Lists the files and directories within directory_name. Some useful options are -l
for more detailed output and -a which shows hidden system files.
cd directory_name Changes the directory to the one specified
cat file_name Prints the contents of file_name to the screen.
Shortcuts:
. (a dot) represents the current directory
.. (two dots) represents one directory above the current directory (i.e. one directory closer to the base
directory).
The vi Editor
To edit a file using the vi editor, type
vi file_name
vi is a three-state line editor: it has a command mode, a line mode and an editing mode. If in doubt as to which
mode you are in, press the <ESC> key which will bring you to the command mode.
Mode What is done there How to Get There
command mode navigation within the open file Press the <ESC> key.
editing mode text editing See list of editing commands below.
line mode file saving, opening, etc. exiting From the command mode, type ":" (the
from vi colon).
Appendix A - Linux 44
Cyclades-TS Installation Manual
Entering the program, the user is automatically in the command mode. To navigate to the part of the file to be
edited, use the following keys:
h moves the cursor to the left (left arrow)
j moves the cursor to the next line (down arrow)
k moves the cursor to the previous line (up arrow)
l moves the cursor to the right (right arrow)
Having arrived at the location where text should be changed, use these commands to modify the text (note
commands “i” and “o” will move you into the editing mode and everything typed will be taken literally until you
press the <ESC> key to return to the command mode)
i insert text before the cursor position (everything to
the right of the cursor is shifted right)
o create a new line below the current line and insert
text (all lines are shifted down)
dd remove the entire current line
u undo the last modification
x delete the letter at the cursor position
Now that the file has been modified, enter the line mode (by typing “:” from the command mode) and use one of
the following commands:
w save the file (w is for write)
wq save and close the file (q is for quit)
q! close the file without saving
w file save the file with the name file
e file opens the file named file
The Cyclades-TS has a static routing table that can be seen using the commands
route -n
Appendix A - Linux 45
Cyclades-TS Installation Manual
or
netstat -rn
The file /etc/network/st_routes shown in Figure 4.5 is the Cyclades-TS’s method for configuring static routes.
Routes should be added to the file (which is a script run when the Cyclades-TS is initialized) or at the prompt (for
temporary routes) using the following syntax:
[add|del] one of these tags must be present -- routes can be either added or deleted.
[-net|-host] -net is for routes to a network and -host is for routes to a single host.
target target is the IP address of the destination host or network
netmask the tag netmask and a mask are necessary only when subnetting is used. Otherwise, a
nt_msk mask appropriate to the target is assumed. nt_msk must be specified in dot notation.
gw gt_way specifies a gateway, when applicable. gt_way is the IP address or hostname of the
gateway.
interf the interface to use for this route. Must be specified if a gateway is not. When a gateway
is specified, the operating system determines which interface is to be used.
Appendix A - Linux 46
Cyclades-TS Installation Manual
<username>:ip_addr or
<username>:serverfarm
Note: “serverfarm” is a physical port alias. It can be configured in the file pslave.conf.
An example:
username: cyclades
TS1000 IP address: 192.168.160.1
host name: ts1000
servername for port 1: file_server
ttyS1 addressed by IP 10.0.0.1 or socket port 7001. The various ways to access the server connected to the
port are:
ssh -t cyclades:ttyS1@ts1000
ssh -t cyclades:7001@ts1000
ssh -t cyclades:10.0.0.1@ts1000
ssh -t cyclades:file_server@ts1000
ssh -t -l cyclades:10.0.0.1
Note that either -l or @ are used, but not both. For ssh2, the -2 flag is used:
ssh -t -2 cyclades:7001@ts1000
To log in to a port that does not require authentication, the username is not necessary:
ssh -t -2 ttyS1@ts1000
Appendix A - Linux 47
Cyclades-TS Installation Manual
To restart the cy_ras process use its process ID or execute the command:
signal_ras hup
This executes the ps command, searches for the cy_ras process id, then sends the signal HUP to the process,
all in one step. Never kill cy_ras with the signals -9 or SIGKILL.
Appendix A - Linux 48
Cyclades-TS Installation Manual
Modular Jack
To the
Cyclades-TS
Cyclades-TS Modem
RJ-45 Female/DB-25 (RJ-45 - 8 pins ) (DB-25)
Male Converter
Pin Signal Signal Pin
RJ-45
Connector Modem 3 TxD TxD 2
3
6 6 RxD RxD 3
1
5 4 Gnd Gnd 7
8
4 7 DCD DCD 8
pin 8
2
7 pin 1 5 CTS CTS 5
pin 1 pin 8 2 DTR DTR 20
2 34567 8 1 RTS RTS 4
1 13
Front View 8 DSR DSR 6
14 25
20
Straight
To the Cable With
Cyclades-TS Terminal / Printer
8 Wires
RJ-45 Female/DB-25 Cyclades-TS Without Hardware
Male Converter (RJ-45 -8 pin) Flow Control (DB-25)
#
# Syslog server: syslog is the IP address of a remote syslog daemon.
facility
# is a value from 0 to 7 which is sent to the syslog server to
# indicate in which file the syslog messages should be stored.
# The file /etc/syslog.conf on the syslog server contains a mapping
# between facility numbers and server log files.
#
conf.syslog 200.200.200.2
conf.facility 7
#
# Syslog server message level. An integer between 0 and 7. Zero: does not send
# syslog messages to the syslog server.
#
all.syslog_level 4
#
# Syslog Console message level. An integer between 0 and 7. Zero: does not
send
# syslog messages to the console.
#
all.console_level 4
#
# Speed. All ports are set to 9600 baud rate, 8 bits, No parity, 1 stop bit.
#
# Authentication type - either "local", "radius", "none", "remote"
# local/radius, or radius/local.
#
# If the authentication type is configured as "local/radius" the portslave
# first tries to authenticate locally. If it fails, portslave will try to
# authenticate using the radius server.
#
all.authtype radius
# Authentication host and accounting host. Two of each can be configured
# per port. The first is always tried three times before switching to the
# second. Then are tried alternately, up to a maximum of 10 times total.
# radtimeout sets the number of seconds per query.
#
all.authhost1 200.200.200.2
all.accthost1 200.200.200.2
all.radtimeout 3
#
# The shared secret used by RADIUS.
#
all.secret cyclades
#
# IP. If you end the "ipno" with a "+", the port number will
# be added to the IP number to give the IP number for that port.
# The IP number of a port is used when the RADIUS
# server does not send an IP number, or if it tells us to use a dynamic IP no.
#
all.ipno 192.168.1.101+
#
#
# Serial port flow control:
# hard - hardware, rts/cts
# soft - software, CTRL-S / CTRL-Q
# none.
#
all.flow hard
#
# When not set to zero, this parameter sets the wait for a TCP connection
# keep-alive timer. If no traffic passes through the Cyclades-TS for
# this period of time, the Cyclades-TS will send a modem status message
# to the remote device to see if the connection is still up.
#
all.poll_interval 0
#
# This defines an alternative labeling system for the Cyclades-TS ports.
# The '+' after the numerical value causes the interfaces to be numbered
# consecutively.
#
all.socket_port 7001+
#
# Default protocol
#
# Valid values are "login", "rlogin", "telnet",
# "ssh", "ssh2", "slip", "cslip", "ppp", "socket_client",
# "socket_server" and "socket_ssh".
all.protocol socket_server
#
# Data buffering configuration
#
# A non-zero value activates data buffering. A file (/var/run/ttyS#.data)
# is created on the Cyclades-TS and all data received from the port is
# captured. The file contains a maximum of 1024k, which is overwritten each
# time the maximum is reached. This file can be viewed using the normal Unix
# tools (cat, vi, more, etc.).
#
all.data_buffering 0
#
# When non-zero, the contents of the data buffer are sent to the syslog
# server every time a quantity of data equal to this parameter is collected.
# [40 to 255 recomended]
#
all.syslog_buffering 0
# Port-specific parameters
#-----------------
# PORT 1
#-----------------
# this port can be accessed by typing: ssh -t <username>:ttyS1@200.200.200.1
or
# ssh -t <username>:200.200.200.11@200.200.200.1
or
# ssh -t -l <username>:7001 200.200.200.1 or
s1.tty ttyS1
#
#
s1.protocol socket_server
#-----------------
# PORT 8
#-----------------
# this port can be accessed by typing: ssh -t <username>:ttyS8@200.200.200.1
or
# ssh -t <username>:200.200.200.18@200.200.200.1
or
# ssh -t -l <username>:7008 200.200.200.1 or
# see the installation manual for other possible syntaxes.
s8.tty ttyS8
#
# Speed. All ports are set to 9600 baud rate, 8 bits, No parity, 1 stop bit.
# These values can be changed port by port later in the file.
#
all.speed 9600
all.datasize 8
all.stopbit 1
all.parity none
#
# Authentication type - either "local", "radius", "none"
# local/radius, or radius/local.
#
# If the authentication type is configured as "local/radius" the portslave
# first tries to authenticate locally. If it fails, portslave will try to
# authenticate using the radius server.
#
all.authtype none
#
# Valid values are "login", "rlogin", "telnet",
# "ssh", "ssh2", "slip", "cslip", "ppp", "socket_client",
# "socket_server" and "socket_ssh".
#
all.protocoltelnet
#
# Speed. All ports are set to 57600 baud rate, 8 bits, No parity, 1 stop bit.
# These values can be changed port by port later in the file.
#
all.speed 57600
all.datasize 8
all.stopbit 1
all.parity none
#
# Syslog server message level. An integer between 0 and 7. Zero: does not send
# syslog messages to the syslog server.
#
all.syslog_level 4
#
# Syslog Console message level. An integer between 0 and 7. Zero: does not
send
# syslog messages to the console.
#
all.console_level 4
#
# Authentication type - either "local", "radius", "none"
# local/radius, or radius/local.
#
# If the authentication type is configured as "local/radius" the portslave
# first tries to authenticate locally. If it fails, portslave will try to
# authenticate using the radius server.
#
all.authtype radius
#
# Authentication host and accounting host. Two of each can be configured
# per port. The first is always tried three times before switching to the
# second. Then are tried alternately, up to a maximum of 10 times total.
# radtimeout sets the number of seconds per query.
#
all.authhost1 200.200.200.2
all.accthost1 200.200.200.2
all.radtimeout 5
#
all.ipno 200.200.200.11+
all.netmask 255.255.255.255
#
# Maximum reception/transmission unit size for the port
#
all.mtu 1500
all.mru 1500
#
# Use this to initialize the modem.
#
# d == delay (1 sec), p == pause (0.1 sec), l == toggle DTR
# r == <CR>, l == <LF>
#
all.initchat TIMEOUT 10 \
"" \d\l\dATZ \
OK\r\n-ATZ-OK\r\n "" \
TIMEOUT 3600 \
RING "" \
STATUS Incoming %p:I.HANDSHAKE \
"" ATA \
# Ethernet configuration.
#
# These parameters should only be configured in the file
# /etc/network/ifcfg_eth0 if the customer will not be using the
# cy_ras/portslave aplications. If the cy_ras/portslave aplications are not
# used put all ifconfig commands for the ethernet directly in the
# /etc/network/ifcfg_eth0.
#
# The cy_ras application OVERWRITES the ifcfg_eth0 file with the values
configured
# here.
#
#
# Speed. All ports are set to 9600 baud rate, 8 bits, No parity, 1 stop bit.
# These values can be changed port by port later in the file.
#
all.speed 9600
all.datasize 8
all.stopbits 1
all.parity none
#
# Syslog server message level. An integer between 0 and 7. Zero: does not send
# syslog messages to the syslog server.
#
all.syslog_level 4
#
# Syslog Console message level. An integer between 0 and 7. Zero: does not
send
# syslog messages to the console.
#
all.console_level 4
#
# Authentication type - either "local", "radius", "none", "remote"
# "local/radius", or "radius/local".
#
# If the authentication type is configured as "local/radius" the portslave
# first tries to authenticate locally. If it fails, portslave will try to
# authenticate using the radius server.
#
all.authtype radius
#
# Authentication host and accounting host. Two of each can be configured
# per port. The first is always tried three times before switching to the
# second. Then are tried alternately, up to a maximum of 10 times total.
# radtimeout sets the number of seconds per query.
#
all.authhost1 192.168.160.3
all.accthost1 192.168.160.3
all.radtimeout 3
#all.authhost2 192.168.160.4
APPENDIX D CUSTOMIZATION
Everything related to the Cyclades-TS can be traced back to two files: /etc/rc.sysinit and /etc/
inittab. All Cyclades-TS application programs are started during boot by the init process. The related lines
in the /etc/inittab file are listed below:
# System initialization.
::sysinit:/etc/rc.sysinit
# Single user shell
ttyS0::respawn:/sbin/getty ttyS0 ansi
::respawn:/sbin/cy_wdt_led wdt led
# Cyclades RAS
::once:/sbin/snmpd
::once:/sbin/cy_buffering
::once:/sbin/cy_ras
::once:/sbin/sshd -f /etc/ssh/sshd_config
::once:/sbin/ex_ntpclient
To customize the Cyclades-TS, change these lines or add others. If the /etc/inittab file is changed, edit the /
etc/config_files file and add a line containing only “/etc/inittab”. Save the file and exit the editor. Save the new
configuration by executing saveconf. Then, the Cyclades-TS should be turned off and then turned on again.
This is necessary because the init program provided by Busybox, a tool that emulates rm, cp, etc., but uses
much less space, does not support the option ‘q’.
Cyclades provides a development kit which allows changes to be made to the Cyclades-TS’s software. However,
Cyclades does not provide free technical support for systems modified in this way. Any changes are the
responsability of the user.
Appendix D - Customization 82
Cyclades Corporation Cyclades South America
41829 Albrae Street Av. Santa Catarina, 155
Fremont, CA 94538 - USA 04635-000 São Paulo, SP, Brazil
Phone: (510) 770-9727 Phone: 55-11-5033-3333
Fax: (510) 770-0355 Fax: 55-11-5033-3388
www.cyclades.com www.cyclades.com.br