Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 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
Note: for analog cards, there will be only one port listed. 

wanrouter stop

Stops all ports on your Sangoma card. These ports are listed in /etc/wanpipe/wanrouter.rc under WAN_DEVICES
Note: for analog cards, there will be only one port listed. 

wanrouter restart

restarts all ports on your Sangoma card. These ports are listed in /etc/wanpipe/wanrouter.rc under WAN_DEVICES
Note: for analog cards, there will be only one port listed. 

wanrouter start <wanpipe#>

Starts a single port on your card.
Note: if you have a digital card, this will start the entire cards and all ports 

wanrouter stop <wanpipe#>

Stops a single port on your card.
Note: if you have a digital card, this will start the entire cards and all ports 

wanrouter restart <wanpipe#>

Restarts a single port on your card.
Note: if you have a digital card, this will start the entire cards and all ports 

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.
Note: for 1 analog card only 1 port will be present 

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

 

  1. 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

  1. 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

  1. Start up all network interfaces

ifconfig wan0 <local ip> pointopoint <remote ip> netmask 255.255.255.255

  1. Confirmation

tail -f /var/log/messages

  1. Check the events and driver statistics.

cat /proc/net/wanrouter/status

  1. Check driver state

 

wanrouter status

Driver External Scripts

...