40
Network Feature | Korenix
For all Zebra suppored command, please refer:
http://www.zebra.org/zebra/Command-Index.html#Command%20Index
4-18
Ser2net
program name
ser2net
Description
ser2net is a Linux program which will connect a network to the
serial port. It could be like a bridge between the ethernet cable
and the serial cable.
config file
/etc/ser2net.conf
Usage
:
-c <config file> - use a config file besides /etc/ser2net.conf
-C <config line> - Handle a single configuration line. This may be
specified multiple times for multiple lines. This is just like a
line in the config file. This disables the default config file,
you must specify a -c after the last -C to have it read a config
file, too.
-p <controller port> - Start a controller session on the given TCP port
-P <file> - set location of pid file
-n - Don't detach from the controlling terminal
-d - Don't detach and send debug I/O to standard output
-u - Disable UUCP locking
-b - Do CISCO IOS baud-rate negotiation, instead of RFC2217
-v - print the program's version and exit
Example:
Setup a TCP server with following operation parameter:
Serial port : 1
TCP port : 62001
Baud rate : 9600
Data bits : 8
Parity : none
Stop bit : 1
Hardware flow control : none
State : raw state
timeout : never timeout
modem mode : none
Edit /etc/ser2net.conf add the following line:
62001:raw:0:/dev/ttyS1:9600 NONE 1STOPBIT 8DATABITS LOCAL -RTSCTS