|
The Quick and Dirty Guide to Zaptel HDLC
1. Compile kernel with HDLC support:
We suggest that you use either a Kernel version of 2.4.20
or lesser, or that you use a Kernel of 2.6.8 or greater.
The HDLC implementation in the interval kernels is in a
state of too much flux.
Device Drivers
Networking Support
*Wan Interfaces Support
*Generic HDLC Layer
*Raw HDLC support
* NOTE: Cisco HDLC support is currently broken as of kernel
2.6.12. The only disadvantage of Raw HDLC support is that you can only
pass IP over the data link.
2. Rebuild and reboot into your kernel
3. Uncomment the following line in zconfig.h of the Zaptel
package:
#define CONFIG_ZAPATA_NET
If you are using a kernel prior to 2.4.19, also uncomment
this line:
#define CONFIG_OLD_HDLC_API
And rebuild Zaptel including the creation of the
SetHDLC utility:
make sethdlc-new ;use "make sethdlc" for
;kernels 2.4.19 and prior
make install
4. Configure the span and channels as such or equivalent
in /etc/zaptel.conf:
span=1,0,0,esf,b8zs
nethdlc=1-24
5. Load and configure your driver:
modprobe wct1xxp
ztcfg
6. Use sethdlc to bring up the interface using Raw HDLC mode:
sethdlc hdlc0 hdlc
-or- for old style (make sethdlc instead of sethdlc-new) use:
sethdlc hdlc0 mode hdlc
7. Assign the interface an address:
ifconfig hdlc0 192.168.0.1 netmask 255.255.255.0
8. The interface may be addressed as any other networking
interface, i.e. eth0, in Linux.
|