[Asterisk-Users] hdlc setup routing question
Vasyl Rublyov
vasyl.rublyov at ionidea.com
Mon Jun 7 19:28:51 MST 2004
Michael,
I see that you configurataion is FR, and your router (with t100p) should
have 209.26.250.74 and P2P end shoud be 209.26.250.74.
Usually they are both belongs to ISP (in this case to Sprint), but your
Ethernet end is 209.26.224.34/29.
Hope this will work for you;
MODE=fr
LOCAL_IPADDR=209.26.250.74
REMOTE_IPADDR=209.26.250.73
NETWORK=209.26.250.72
NETMASK=255.255.255.252
GATEWAY=209.26.250.73
# FR
FR_LMI=ansi
FR_PVC=pvc0
FR_DLC=44
/sbin/modprobe zaptel
/sbin/modprobe wct1xxp
/sbin/modprobe hdlc
/sbin/ztcfg -vvv
sethdlc-1.15 ${DEVICE} ${MODE} lmi ${FR_LMI}
sethdlc ${DEVICE} create ${FR_DLC}
ifconfig ${DEVICE} up
ifconfig ${FR_PVC} ${LOCAL_IPADDR} pointopoint ${REMOTE_IPADDR}
route add -net ${NETWORK} netmask ${NETMASK} ${FR_PVC}
route add default gw ${GATEWAY} metric 1 ${FR_PVC}
# 209.26.224.33 belongs to your eth0 device.
ifconfig eth0 209.26.224.33 netmask 255.255.255.248
route add -net 209.26.224.32 netmask 255.255.255.248 dev eth0
=== /etc/zaptel.conf should be like this:
loadzone = us
defaultzone=us
span=1,1,0,esf,b8zs
nethdlc=21-24
.....
also check /proc/sys/net/ipv4/ip_forward - it should be 1
Michael A Rowley wrote:
> Ok, I guess I wasn't clear enough.... I keep doing that.... Here is
> what I recieved from sprint...
>
>
> * Linecode B8ZS
> Format ESF
> Timing from Network
> *
> If you are having any Internet issues call and report this circuit ID to
> (800) 603-8044 option 4, option 3, option1.
> *Circuit ID**
> (FRAME) 60.YGFS.576125.UFLG*
> *Order Number N495625
>
> WAN IP’s Far end (Gateway) 209.26.250.73
> Near end (local interface) 209.26.250.74
> Subnet mask 255.255.255.252
> Encapsulation Frame Relay
> Maintenance Protocol ANNEX D (ANSI)
> DLCI 44
> Ethernet IP on Router is 209.26.224.33 subnet mask 255.255.255.248
> Usable IP’s are 209.26.224.34 to 209.26.224.38
> DNS servers
> Primary 138.210.81.3
> Secondary 205.160.188.2
>
> *So, I need pointopoint from 209.26.250.74 to 209.26.250.73...
>
> Now, 209.26.250.74 belongs to sprint... I can't use it... but it is
> being assigned to pvc0 to complete the point to point protocol for
> frame relay.
>
> 209.26.224.33 is the router IP address that sprint set up on my
> adtran. Thats fine. So I need the ip address for my box to actually be
> 209.26.224.33 so that I can actually reach it... I tried the setup
> without 209.26.224.33, but I could not reach the box at all at
> 209.26.250.74. It would respond to a ping, but could not ssh into it,
> or anything else. My guess is that 209.26.250.74 is protected by a
> firewall at sprint, and 209.26.224.33-38 (my ip addresses) are set up
> as DMZ's.
>
> With this setup, I can ssh 209.26.250.74, if 209.26.224.33 is set up,
> but not without it.....
>
> M
>
>
> On Monday, June 7, 2004, at 03:51 PM, Joseph wrote:
>
> Not sure I understand what all you are doing here, but you need
> your gateway to be on the same subnet as your main ip address.
>
> Why do you assign 2 ip's to your pvc?
>
> If ping's are allow, sometimes it helps to use traceroute to
> see the path a packet is taking.
>
>
> 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/20040607/ef370100/attachment.htm
More information about the asterisk-users
mailing list