Re: set up gateway for PPP to Ethernet?



On 23 May 2006, in the Usenet newsgroup comp.os.linux.networking, in article
<44735a8d_2@xxxxxxxxxxxx>, Kaitlyn Luna wrote:

Moe Trin wrote:

The DSL box is a SMC Barricade 7004 which provides NAT. It uses DHCP to
my ISP, even though my assigned IP hasn't changed in over a year. I
disabled its DHCP server so each computer uses a static IP which is
listed in each one's hosts file.

OK - static is the way to go. Easiest trick is to set the ppp options
'192.168.1.151:192.168.1.4' (first number is the IP on the Linux box
serial port, second is given to the PDA) and 'proxyarp' which _should_
do the entire thing.

I don't know if the stock Debian kernel (2.6.8) supports masquerading,
but I need to compile a 2.6.10 kernel anyway.

I haven't seen a distribution kernel that doesn't, at least for many years.

The gateway for the PDA box is the local ppp address of the Linux box.
With ANU style ppp, you need only specify 'defaultroute' on the PDA
box.

I guess I'm forced to take that anyway. The PDA lets me specify static
IP or DHCP for itself, specify name servers or ask for them, idle
timeout, and login script. That's it.

Sounds a bit confused, but DHCP is _ONLY_ an Ethernet protocol, and that
has nothing to do with common ppp. I don't know what you are running on
the PDA, but every ppp implementation I've seen knows how to set up a
(serial) connection to a peer, and they all had the equivalent of a
defaultroute option (though it _might_ have a different name). For a
dialin client on Linux, you'd have something like

#!/bin/bash
exec /usr/sbin/pppd connect "/usr/sbin/chat -f /etc/ppp/dialscript" \
defaultroute lock noipdefault modem nodetach /dev/modem 115200 crtscts \
user Kaitlyn

(assuming 'Kaitlyn' is the username at the ISP). There must not be anything
after the \ in those two lines. The 'dialscript' would have the modem
commands to dial the ISP (which you probably don't need), such as

ABORT BUSY ABORT 'NO CARRIER' "" AT&F1 OK ATDT2662902 CONNECT \d\c

and authentication is handled by PAP or CHAP which means having the username
and password in /etc/ppp/pap-secrets or /etc/ppp/chap-secrets. The only
other thing needed is to set nameservers in /etc/resolv.conf. You can
read the man page for the Linux version of pppd and compare these options
with what you have on the PDA - should be _functionally_ similar.

Old guy
.



Relevant Pages

  • Re: [SLE] One more dumb network question
    ... You'll have to use IP Forwarding & specify the Default Route for your 2nd box, ... nameserver 205.247.xxx.xx ... Avoid doing business with 'The Link' ISP. ... Linux user# 313696 ...
    (SuSE)
  • Re: Static IP over PPPoE.. part 90?
    ... > attempted it was because the TOS on my ISP says nothing against it.. ... > Now using Linux and RP-PPPoE, I have lost the ability to specify my IP ... Then the pppd will try to use that ip address, and if the ISP accepts, you ...
    (comp.os.linux.networking)
  • Re: Syncing 2 pcs task lists...
    ... How do I identify the type of partnership that the PDA has with each PC? ... Why did I specify that I am syncing 2 computers - the issue isn't in getting ...
    (microsoft.public.pocketpc)
  • Re: What is the GetTickCount() equivalent in C#?
    ... I am sorry that I did not specify it is meant for PDA, compact .net ... > You should still be able to use it using p/invoke. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: dont know if people are getting e mails
    ... unless you specify a return receipt. ... You will need to contact your ISP ... boatloads. ... > Help e mailing family and friends but they do not always ...
    (microsoft.public.internet.mail)