All, I am trying to configure hdlc support on T100P Digium card - everything seems ok... but it just does not work at all. I was able to compile all drivers, the light on the card becomes green when I plug T1 link.... but I even can't ping default router IP... there is no data coming back to me, so I am confused completely now. Also I tried both protocols - raw hdlc and cisco hdlc. The last one (Cisco HDLC) gives print to system console "Unsupported Protocol Version 8" Here is my configuration from Linux system, as well as from working Netopia T1 router ============ Netopia T1 Router (working) ===================$ show config frame-relay lmi type ansi frame-relay tim none hardware acceleration enable yes ip gateway ${T1_REMOTE_IP} ip route 0.0.0.0/0 ${T1_REMOTE_IP} low interface t1 1 buildout 0-0.6 interface t1 1 channels count 24 start 1 contiguous rate 64k interface t1 1 clock source network interface t1 1 diagnostic mode normal interface t1 1 dle hdlc interface t1 1 encoding b8zs interface t1 1 framing esf interface t1 1 operation mode hdlc interface t1 1 priority-queuing enable yes interface t1 1 pvc 1 yes interface t1 1 pvc 1 enable yes interface t1 1 pvc 1 tag "Circuit 1" interface t1 1 pvc 1 vpi 0 interface t1 1 pvc 1 vci 35 interface t1 1 pvc 1 cp default interface t1 1 pvc 1 voice no interface t1 1 pvc 1 pcr 0 interface t1 1 prm-enable no interface t1 1 rfc1973 enable no interface t1 1 rfc1973 dlci 16 interface t1 1 rfc1973 lmi none interface t1 1 cell-format scrambled interface t1 1 unused cell-format idle interface t1 1 ds0-autodetect no cp 1 yes cp 1 tag 36.HCGA.101976.VA cp 1 enable yes cp 1 dle hdlc cp 1 ip enable yes cp 1 ip address local ${T1_LOCAL_IP}/30 cp 1 ip address remote ${T1_REMOTE_IP}/30 cp 1 ip addressing numbered cp 1 ip dhcp client mode standard cp 1 ip mask local 255.255.255.252 cp 1 ip mask remote 255.255.255.252 cp 1 ip nat enable no cp 1 ip nat map-list "Easy-PAT List" cp 1 ip nat server-list Easy-Servers cp 1 ip negotiate-lan no cp 1 ip netbios proxy enable no cp 1 ip rip receive both cp 1 ip rip transmit no cp 1 ip multicast-fwd yes cp 1 interface-group primary ;Netopia 4622 ============================================================MODE=cisco # MODE=hdlc DEVICE=hdlc0 /sbin/modprobe zaptel /sbin/modprobe wct1xxp /sbin/modprobe hdlc /sbin/modprobe syncppp /sbin/ztcfg -vvv /sbin/sethdlc ${DEVICE} ${MODE} /sbin/ifconfig ${DEVICE} ${T1_LOCAL_IPADDR} pointopoint ${T1_REMOTE_IPADDR} /sbin/route add -net ${T1_NETWORK} netmask ${T1_NETMASK} ${DEVICE} /sbin/route add default gw ${T1_REMOTE_IPADDR} metric 1 ${DEVICE} ===============================================================$ cat /etc/zaptel.conf loadzone = us defaultzone=us span=1,1,0,esf,b8zs nethdlc=1-24 -- Thanks and regards, Vasyl Rublyov
Hey Guy, I am battling with this, but from what I have figured out, yours seems to be similar to mine... Read the "generic-hdlc.txt" file in /usr/src/linux/Documentation/network/ directory. It was actually very helpful for me. Here's my two cents. :) Your system is using frame relay mode: ansi, timing none. so I think nethdlc should be fine, but your sethdlc should look something like: sethdlc hdlc0 fr lmi ansi ifconfig hdlc0 up ifconfig pvc0 *localIP* pointtopoint *remoteIP* where localIP is the IP they set your T1 Router to, and remoteIP is the gateway IP to your provider. So... your MODE needs to be set to "fr limi ansi" Or so It seems to me. Let me know if this works, that way I can try it. :) Michael On Friday, May 21, 2004, at 07:25 PM, Vasyl Rublyov wrote:> All, > > I am trying to configure hdlc support on T100P Digium card - > everything seems ok... but it just does not work at all. > I was able to compile all drivers, the light on the card becomes green > when I plug T1 link.... but I even can't ping default router IP... > there is no data coming back to me, so I am confused completely now. > Also I tried both protocols - raw hdlc and cisco hdlc. The last one > (Cisco HDLC) gives print to system console "Unsupported Protocol > Version 8" > > Here is my configuration from Linux system, as well as from working > Netopia T1 router > > ============ Netopia T1 Router (working) ===================> $ show config > frame-relay lmi type ansi > frame-relay tim none
Oops, Forgot the line to create the pvc0.. sethdlc create # where # is dlci ##. At least this is what I have gotten.... M. On Friday, May 21, 2004, at 08:22 PM, Michael A Rowley wrote:> Your system is using frame relay mode: ansi, timing none. > so I think nethdlc should be fine, but your sethdlc should look > something like: > > sethdlc hdlc0 fr lmi ansi > ifconfig hdlc0 up > ifconfig pvc0 *localIP* pointtopoint *remoteIP* >
Thank you, Michael I tried to switch to FR mode... but it did not help. I tied DLCI as 16 and 99... the same result. I attached one more full config from Netopia and from my Linux+Zaptel T100P systems. DEVICE=hdlc0 # MODE=hdlc # MODE=cisco MODE=fr NETMASK=255.255.255.252 GATEWAY=REMOTE_IPADDR # FR FR_LMI=ansi FR_PVC=pvc0 FR_DLC=16 # FR_DLC=99 case "$1" in 'start') echo "Loading T1/HDLC modules..." /sbin/modprobe zaptel /sbin/modprobe wct1xxp /sbin/modprobe hdlc /sbin/modprobe syncppp /sbin/ztcfg -vvv echo -n "Configuring HDLC interfaces, with mode \"${MODE}\"" if [ "${MODE}" == "hdlc" -o "${MODE}" == "cisco" ]; then echo "..." /sbin/sethdlc ${DEVICE} ${MODE} /sbin/ifconfig ${DEVICE} ${LOCAL_IPADDR} pointopoint ${REMOTE_IPADDR} /sbin/route add -net ${NETWORK} netmask ${NETMASK} ${DEVICE} echo "Configuring default gateway..." /sbin/route add default gw ${GATEWAY} metric 1 ${DEVICE} elif [ "${MODE}" == "fr" ]; then echo ", LMI \"${FR_LMI}\"..." /sbin/sethdlc ${DEVICE} ${MODE} lmi ${FR_LMI} /sbin/sethdlc ${DEVICE} create ${FR_DLC} /sbin/ifconfig ${DEVICE} up echo "Configuring Frame-Relay PVC \"${FR_PVC}\"..." /sbin/ifconfig ${FR_PVC} ${LOCAL_IPADDR} pointopoint ${REMOTE_IPADDR} /sbin/route add -net ${NETWORK} netmask ${NETMASK} ${FR_PVC} echo "Configuring default gateway..." /sbin/route add default gw ${GATEWAY} metric 1 ${FR_PVC} else echo ", unknown mode..." fi ;; 'stop') echo "Unloading default gateway..." /sbin/route del default echo -n "Unloading HDLC configuration." if [ "${MODE}" == "hdlc" -o "${MODE}" == "cisco" ]; then echo ", hdlc/cisco mode..." /sbin/route del -net ${NETWORK} netmask ${NETMASK} ${DEVICE} /sbin/ifconfig ${DEVICE} down elif [ "${MODE}" == "fr" ]; then echo ", frame-relay mode..." /sbin/route del -net ${NETWORK} netmask ${NETMASK} ${FR_PVC} /sbin/ifconfig ${FR_PVC} down /sbin/sethdlc ${DEVICE} delete /sbin/ifconfig ${DEVICE} down else echo ", unknown mode..." fi echo "Unloading T1/HDLI modules..." rmmod wct1xxp zaptel hdlc syncppp ;; 'restart') $0 stop sleep 1 $0 start ;; *) echo "usage $0 start|stop|restart" esac # $ show config # frame-relay lmi type ansi # frame-relay tim none # hardware acceleration enable yes # ip gateway REMOTE_IPADDR # ip route 0.0.0.0/0 REMOTE_IPADDR low # interface t1 1 buildout 0-0.6 # interface t1 1 channels count 24 start 1 contiguous rate 64k # interface t1 1 clock source network # interface t1 1 diagnostic mode normal # interface t1 1 dle hdlc # interface t1 1 encoding b8zs # interface t1 1 framing esf # interface t1 1 operation mode hdlc # interface t1 1 priority-queuing enable yes # interface t1 1 pvc 1 yes # interface t1 1 pvc 1 enable yes # interface t1 1 pvc 1 tag "Circuit 1" # interface t1 1 pvc 1 vpi 0 # interface t1 1 pvc 1 vci 35 # interface t1 1 pvc 1 cp default # interface t1 1 pvc 1 voice no # interface t1 1 pvc 1 pcr 0 # interface t1 1 prm-enable no # interface t1 1 rfc1973 enable no # interface t1 1 rfc1973 dlci 16 # interface t1 1 rfc1973 lmi none # interface t1 1 cell-format scrambled # interface t1 1 unused cell-format idle # interface t1 1 ds0-autodetect no # cp 1 yes # cp 1 tag 36.HCGA.101976.VA # cp 1 enable yes # cp 1 dle hdlc # cp 1 ip enable yes # cp 1 ip address local LOCAL_IPADDR/30 # cp 1 ip address remote REMOTE_IPADDR/30 # cp 1 ip addressing numbered # cp 1 ip dhcp client mode standard # cp 1 ip mask local 255.255.255.252 # cp 1 ip mask remote 255.255.255.252 # cp 1 ip nat enable no # cp 1 ip nat map-list "Easy-PAT List" # cp 1 ip nat server-list Easy-Servers # cp 1 ip negotiate-lan no # cp 1 ip netbios proxy enable no # cp 1 ip rip receive both # cp 1 ip rip transmit no # cp 1 ip multicast-fwd yes # cp 1 interface-group primary # ;Netopia 4622 # name "" # preferences changes immediate yes # preferences console default menu # preferences date format mm/dd/yy # preferences output format verbose # preferences output mask bits # preferences time format 24-hour # # ======================================================================================================================== ** -- Thanks and regards, Vasyl Rublyov -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040522/2f9455a1/attachment.htm
Thank you Michael, I used that sethdlc which is in latest zaptel, sethdlc --version does not work, but "sethdlc hdlc0 --version" works sethdlc --version --version: unable to get interface information: No such device /sbin/sethdlc hdlc0 --version sethdlc version 1.15 Copyright (C) 2000 - 2003 Krzysztof Halasa <khc@pm.waw.pl> Today, I am going to try downgrade the kernel to 2.4.19, so it will use old HDLC API. Michael A Rowley wrote:> Vasyl, > > What sethdlc version are you using.... do a sethdlc --version. You > should have 1.15 with kernel 2.4.26. > > > > I am curious to see you get this working, as I need to work on this > next. But I have to get the phone system up and running first. > > Michael. > > > On Saturday, May 22, 2004, at 10:09 PM, Vasyl Rublyov wrote: > > Thank you, Michael > > I tried to switch to FR mode... but it did not help. I tied DLCI > as 16 and 99... the same result. > > I attached one more full config from Netopia and from my > Linux+Zaptel T100P systems. > > > Michael Rowley MD > FP > >-- Thanks and regards, Vasyl Rublyov -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040523/f5e6192a/attachment.htm
Christian, Opss.. than where is the problem? Is it in kernel or is in zaptel driver? Could you please let me know when has been broken and if anyone is working on the fix for it? Thank you. Christian Hoffmeyer wrote:>----- Original Message ----- >From: "Vasyl Rublyov" <vasyl.rublyov@ionidea.com> >To: <asterisk-users@lists.digium.com> >Sent: Saturday, May 22, 2004 10:02 PM >Subject: Re: [Asterisk-Users] T100P HDLC configuration > > >Just would like to add, of course if it is going to help: > I am using Linux 2.4.26 on Linux, compiled from sources and latest zaptel >sources. > We have T1 Internet from Verizon >------------------------------------------------ > >HDLC does not work on kernel 2.4.26 > >Use kernel 2.4.22 > >Christian Hoffmeyer >YottaDot Solutions >Huntsville, AL > >(w) 256.851.8689 >(c) 256.655.0321 >(iax) 700.859.4508 > >Ask me about Asterisk. > >_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >