...
The following commands are executable commands that you type in your Linux command line
Command | What does it do? |
---|---|
wanrouter start | Starts all ports on your Sangoma card. These ports are listed in /etc/wanpipe/wanrouter.rc under WAN_DEVICES |
wanrouter stop | Stops all ports on your Sangoma card. These ports are listed in /etc/wanpipe/wanrouter.rc under WAN_DEVICES |
wanrouter restart | restarts all ports on your Sangoma card. These ports are listed in /etc/wanpipe/wanrouter.rc under WAN_DEVICES |
wanrouter start <wanpipe#> | Starts a single port on your card. |
wanrouter stop <wanpipe#> | Stops a single port on your card. |
wanrouter restart <wanpipe#> | Restarts a single port on your card. |
wanrouter start <wanpipe# if_name> | Starts a single interface on the port of your card |
wanrouter stop <wanpipe# if_name> | Stops a single interface on the port of your card |
wanrouter restart <wanpipe# if_name> | Restarts a single interface on the port of your card |
wanrouter list | lists all active ports on your card. |
wanrouter modules | Displays the Sangoma Driver (a.k.a Wanpipe) kernel modules |
wanrouter status | Displays all active ports for all Sangoma cards in your system. |
wanrouter summary | Summary of configuration files for your card, which are all located in /etc/wanpipe directory |
wanrouter hwprobe | Displays all detected Sangoma Cards in your server. |
wanrouter conflogs | Displays Sangoma driver configuration file syntax errors |
wanrouter messages | Displays Sangoma driver kernel event messages |
wanrouter version | Displays Sangoma driver version number. Useful to identify the age of your driver in comparison to the latest release |
Kernel Driver Errors
All Card and driver errors/events will be displayed in:
...
After a successful Driver startup,any extra debugging, such as line tracing or CSU/DSU debugging, will be performed using:
/usr/sbin/wanpipemon -g
For automated Line Error debugging run:
/usr/sbin/wanrouter debug <if_name>
where <if_name> is wanpipe interface name.
Driver Power User Operation
...
sdladrv.o : Hardware Layer
wanrouter.o : Wanpipe Protocol Interface Layer
wanpipe_syncpp.o : Wanpipe PPP/CHDLC Protocol
wanpipe.o : Wanpipe multi-protocol layer
(Frame-Relay,PPP,CHDLC,...)
af_wanpipe.o : Wanpipe API socket layer
User space programs
2.1 Configuration (/usr/sbin)
wancfg: Wanpipe configuration tool
...
insmod sdladrv.o
insmod wanrouter.o
insmod wanpipe_syncppp.o
insmod wanpipe.o
insmod af_wanpipe.o
or
modprobe af_wanpipe
Configure and Start Drivers
If using ADSL
/usr/sbin/wanconfig -a /etc/wanpipe/wan_adsl.list card wanpipe1 up
else
/usr/sbin/wanconfig card wanpipe1 up
Start up all network interfaces
ifconfig wan0 <local ip> pointopoint <remote ip> netmask 255.255.255.255
Confirmation
tail -f /var/log/messages
Check the events and driver statistics.
cat /proc/net/wanrouter/status
Check driver state
wanrouter status
Driver External Scripts
...