Serial port
Configure PPP dial-in mode
LR54 User Guide
240
15. (Optional) Configure a script that will be run to prepare the link before PPP negotiations are
started:
a. Enable the use of a connection script.
(config)> serial port1 ppp_dialin connect enable true
(config)>
b. Set the name of the script:
(config)> serial port1 ppp_dialin connect script
filename
(config)>
Scripts are located in the /etc/config/serial directory. An example script, windows_dun.sh
is provided.
Example windows_dun.sh file:
#!/bin/sh
# Example connect script for connecting from a PC using a Windows
dial-up
# networking connection with built-in standard 33600 bps modem driver
and phone
# number 123.
# The shell's 'read' builtin breaks on newline, so translate incoming
carriage-
# return to newline, and outgoing newline to carriage-return-newline.
stty icrnl onlcr opost
# Read input from the serial port, one line at a time.
while read -r line; do
case "$line" in
ATDT123)
echo "CONNECT" # instruct the peer to start PPP
exit 0 # start up the local PPP session
;;
AT*)
echo "OK" # passively accept any other AT command
;;
esac
done
16. Save the configuration and apply the change:
(config)> save
Configuration saved.
>
17. Type
exit
to exit the Admin CLI.
Depending on your device configuration, you may be presented with an
Access selection
menu
. Type
quit
to disconnect from the device.
Содержание TransPort LR54
Страница 1: ...LR54 User Guide Firmware version 22 8 ...
Страница 506: ...Virtual Private Networks VPN OpenVPN LR54 User Guide 506 5 Click Apply to save the configuration and apply the change ...
Страница 628: ...Services Simple Network Management Protocol SNMP LR54 User Guide 628 The SNMP page is displayed 4 Click Download ...
Страница 1050: ...Command line interface Execute a command from the web interface LR54 User Guide 1050 The Admin CLI prompt appears ...
Страница 1095: ...Command line interface Command line reference LR54 User Guide 1095 reboot Reboot the system Parameters None ...