[Asterisk-Users] hdlc problems
Yury Bokhoncovich
byg at center-f1.ru
Tue Mar 16 23:03:01 MST 2004
Hello!
On Tue, 16 Mar 2004, Michael Welter wrote:
> I have the current version of sethdlc, but none of the protocol options
> (hdlc, hdlc-eth, cisco, ppp) seem to work. Is there a preferred
> protocol for a direct connect?
>
> sethdlc hdlc0 hdlc
That's wrong!
Either you make use too old sethdlc or you miss error message.
I've got some problems with data HDLC layer some time ago but I had
managed to make the stuff work.
Remember, kernel 2.4.20 and above differs in HDLC API with previous
kernels. And this causes sethdlc utility was changed too. Old one just
doesn't work at all. I've been using version 1.15 (author Krzysztof
Halasa) and I had got it from the author's site (
http://hq.pm.waw.pl/hdlc/ ).
The right syntax for 2.4.25 kernel is:
/usr/local/sbin/sethdlc ${DEVICE} ${MODE}
this is the string from ifup-hdlc script from
/etc/sysconfig/network-scripts
i.e.
/usr/local/sbin/sethdlc hdlc0 cisco #here's my case
there was also hdlc1 but now it has gone. Different T1/E1 subchannels can
have different mode (i.e. hdlc0 could have Cisco mode and hdlc1 does pure
PPP).
Hope I help. And yet, there is some cool Linux HDLC HOWTO from one Czech
guy. Sorry, I have no it in bookmarks right now, use Google and kins to
find out it.
> ifconfig hdlc0 172.16.2.53 netmask 255.255.0.0
> route add -host 172.16.2.54 hdlc0
>
> I give the satellite system the following commands:
>
> ifconfig eth0 down (was 172.16.2.52)
> sethdlc hdlc0 hdlc
> ifconfig hdlc0 172.16.2.54 netmask 255.255.0.0
> route add -host 172.16.2.53 hdlc0
> route del default gw 172.16.2.3
> route add default gw 172.16.2.53
>
> I tried the 'sethdlc hdlc0 t1' but it wouldn't take.
>
> From each system, I'm unable to ping the other system. Is there
> something else I should be doing?
>
> Thanks,
>
>
--
WBR, Yury Bokhoncovich, Senior System Administrator, NOC of F1 Group.
Phone: +7 (3832) 106228, ext.140, E-mail: byg at center-f1.ru.
Unix is like a wigwam -- no Gates, no Windows, and an Apache inside.
More information about the asterisk-users
mailing list