On Wed, 27 Sep 2006 23:34:46 +0200 Danny L <[EMAIL PROTECTED]> wrote:
> when you figure it out tell me. I also got stuck on that.... > I ended up using the instructions on http://www.technion.ac.il/~eyalroz/linux_cable_pptp.html which did the trick. What they added to my setup was two things (not sure if it took all of them or only some of them, but if it works, don't fix it ;-) 1. add routing rules for the pptp server and dhcp server so that they don't go over the pptp (ppp0) connection. 2. Add defaultroute, and the thing that was missing replacedefaultroute to the provider file for ppp The thing that I need to fix at the moment is to see how to get the ip for the dhcp server and pptp server automatically and not encode them statically. Also, at least for barak, where you use <user>@IBarak for adsl, you only use <user> for cable. Also it takes about 10-30 seconds until the connection becomes operational after it is seemingly up. Could be some setup on the ISP side. If it helps, relevant parts of my /etc/network/interfaces (debian specific): auto eth0 iface eth0 inet dhcp # Setup pptp requests to go over eth0 and not ppp0 up ip route replace 62.90.133.58 dev eth0 # setup dhcp requests to go over eth0 and not ppp0 up ip route replace 213.57.35.2 dev eth0 auto ppp0 iface ppp0 inet ppp provider cable-provider and /etc/ppp/peers/cable-provider: # # Username and pptp connection # linkname barak user <username> pty "/usr/sbin/pptp pns.barak.net.il --nolaunchpppd" #pty "/usr/sbin/pptp cable.barak.net.il --nolaunchpppd" # # Turn off transmission protocols we know won't be used # nobsdcomp nodeflate hide-password # # We don't need the tunnel server to authenticate itself # noauth # # Be persistent # persist # # Ask pppd to fetch DNS IP addresses from ISP # usepeerdns defaultroute replacedefaultroute # # Time this thing out of it goes poof # ##lcp-echo-failure 10 ##lcp-echo-interval 20 # # Wait 2.5 minutes before trying to reconnect # holdoff 150 # # Never stop trying # maxfail 0 > Micha Feigin wrote: > > I just switched from using adsl to cable (hot + barak) but I seem to be > > having > > problems setting up the connection. > > > > I couldn't find any l2tp client for debian (l2tpd seems to be a server and > > not > > a client). > > > > I did setup pptp. Eth0 comes up and gets an address using dhclient. At this > > point I can resolve ip address (ping find the ip address). I can also surf > > to > > the hot website. I then bring up ppp0 which comes up and gets an address. > > The > > default gw still points to the modem instead of the other side of the ppp > > connection and I can't surf. IPs are still resolved but very slowly. > > Changing > > the default gw doesn't help either. > > > > The modem is a terayon, the provider is barak, the windows connection uses > > l2tp and runs fine. > > > > > > > > ================================================================= > > To unsubscribe, send mail to [EMAIL PROTECTED] with > > the word "unsubscribe" in the message body, e.g., run the command > > echo unsubscribe | mail [EMAIL PROTECTED] > > > > > > > > > > > ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]