Re: set up gateway for PPP to Ethernet?
- From: ibuprofin@xxxxxxxxxxxxxxxxxxxxxx (Moe Trin)
- Date: Tue, 23 May 2006 15:13:01 -0500
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
.
- Follow-Ups:
- Re: set up gateway for PPP to Ethernet?
- From: Kaitlyn Luna
- Re: set up gateway for PPP to Ethernet?
- References:
- set up gateway for PPP to Ethernet?
- From: Kaitlyn Luna
- Re: set up gateway for PPP to Ethernet?
- From: Moe Trin
- Re: set up gateway for PPP to Ethernet?
- From: Kaitlyn Luna
- set up gateway for PPP to Ethernet?
- Prev by Date: Re: Broadcast Packets Evil?
- Next by Date: SOCK_PACKET
- Previous by thread: Re: set up gateway for PPP to Ethernet?
- Next by thread: Re: set up gateway for PPP to Ethernet?
- Index(es):
Relevant Pages
|