[Asterisk-Users] T100P HDLC configuration

Vasyl Rublyov vasyl.rublyov at ionidea.com
Sat May 22 20:02:25 MST 2004


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.

... any help appreciated.

================= Original message =============== 
From: "Vasyl Rublyov" <vasyl.rublyov at ionidea.com> 
To: asterisk-users at lists.digium.com 
Sent: Sat, 22 May 2004 22:09:28 -0400 
Subject: [Asterisk-Users] T100P HDLC configuration  

> 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
=============End of Original message =============




More information about the asterisk-users mailing list