This is an old revision of the document!
[gate:~] # cu -l cuad0 ~. - отключиться ~# - послать сигнал break
# pkg_add -r minicom или # apt-get install minicom # minicom -s - Serial port setup (/dev/ttyS0 /dev/ttyUSB0 /dev/cuad0) - Modem and dialing - Save setup as dfl - Exit from minicom # minicom
Выход: <Ctrl>-a q Выход в меню: <Ctrl>-a z
[gate:~] # pkg_add -r lrzsz [gate:~] # cu -l cuad0 switch#copy xmodem: flash: Destination filename []? test Begin the Xmodem or Xmodem-1K transfer now... ~CLocal command? lsx .cshrc Sending .cshrc, 6 blocks: Give your local XMODEM receive command now. Bytes Sent: 896 BPS:677 Transfer complete 896 bytes copied in 13.453 secs (68 bytes/sec)
# minicom switch#copy xmodem: flash: Destination filename []? test <Ctrl>-a s xmodem
gate# pkg_add -r conserver-com
gate# cat /usr/local/etc/conserver.cf
console switch {
master localhost;
rw *;
type device;
device /dev/cuad0;
parity none;
baud 9600;
logfile /var/log/switch.log;
}
console router {
rw *;
master localhost;
type exec;
exec telnet 192.168.X.2;
logfile /var/log/router.log;
}
access * {
trusted 127.0.0.1;
}
gate# console switch
<Ctrl>-e c .
gate# tail -f /var/log/switch.log
gate# apt-get install conserver-client
gate# apt-get install conserver-server
gate# cat /etc/conserver/conserver.cf
config * {
sslrequired no;
}
console switch {
rw *;
master localhost;
type device;
# device /dev/ttyUSB0;
device /dev/ttyS0;
baud 9600;
parity none;
logfile /var/log/conserver/switch.log;
}
console router {
rw *;
master localhost;
type exec;
exec telnet 192.168.X.2;
logfile /var/log/conserver/router.log;
}
access * {
trusted 127.0.0.1;
}
gate# console switch
<Ctrl>-e c .
gate# tail -f /var/log/conserver/switch.log