[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: modem / pon / serial problems



On Tue, Feb 04, 2003 at 10:44:37AM -0600, John Hasler wrote:

Ah, a reply from the master, thank you!

> > With this arrangement, pppconfig can't autodetect the modem...
> 
> Pppconfig uses pppd to "autodetect", but why do you care?  You know what
> port to use.  Just select it manually in pppconfig.

I don't care, but I thought it would be a useful piece of diagnostic
information.

> > But it'll take me a while to get this working...
> 
> Why?

Ignorance, lack of dead-tree documentation and personal
incompatibility with the online variety.

> Just set up demand-dialing on it with pppconfig

Not into demand dialing. I'd rather ssh into it and pon / poff by
hand. That way I can minimise the connect time, even if it is less
convenient. So I've set it up that way, and it works.

> make it the gateway
> for your other box, and you'll be off and running.

Now this is the tricky bit. Never had to set up a network before, and
don't know much about it. Connecting the two machines was easy - the
woody installer more or less did it all for me.

So: the main box is 192.168.1.1, the modem box is 192.168.1.2. I add
"gateway 192.168.1.2" to /etc/network/interfaces on the main box and
run /etc/init.d/networking restart.

On the modem box I do
echo 1 > /proc/sys/net/ipv4/ip_forward
ipchains -A forward -s 192.168.1.1/32 -d 0.0.0.0/0 -j ACCEPT -b
ipchains -P forward ACCEPT
pon ukonline
ping 195.40.1.36 (this is a ukonline DNS server)
... and it works.

I go back to the main box and try and ping the same address, and
nothing happens.

Obviously I'm missing something, but I'm not sure what. Any pointers,
please? There's got to be a dead simple recipe to just make it work!

Once it is working, I can play about, experiment with it and figure
out what's going on. Currently it isn't working, which makes
experimentation hard.

> > cat /dev/ttyS1 | tee /dev/ttyS2 &; cat /dev/ttyS2 | tee /dev/ttyS1 & Same
> > result. pppconfig sends "AT", receives "OK", sends loads of garbage
> > ending with "Loopback detected", and selects the correct port.  pon,
> > however, sends nothing at all.
> 
> Pppd expects a real serial port.  It could take a long time to get this
> working.  You're doing it the hard way.  See above.

Yeah, but with a DOS program (that ignores the hardware flow control
lines) doing the job of the above shell command, while pppconfig
doesn't work, pon and subsequent use of the modem work fine.

So, for me, given that I know sod all about networking, but can get
the fudge working in DOS, it seems easier to make the fudge work in
Linux as well, so I can run Linux on both boxes but still get online
while I still don't know how to set up forwarding.

So, thanks for your input so far; I'm trying to follow your
recommended method; can you supply the missing piece in my jigsaw
please?

Pigeon



Reply to: