Linux PPP HOWTO: Using PPP across a null modem (direct serial) connection
27. Using PPP across a null modem (direct serial) connectionThis is very simple - there is no modem in the way so things are much
simpler.First of all, choose one of the machines as a 'server', setting up a
getty on the serial port so you can test that you do have connectivity
using minicom to access the serial port on the 'client'.Once you have this functioning, you can remove the getty UNLESS you want
to make sure that the connection is validated using user name/password
pairs as for a dial up connection. As you have 'physical control' of
both machines, I will presume that you do NOT want to do this.Now, on the server, remove the getty and make sure that you have the serial
ports on both machines configured correctly using 'setserial'.All you need to do now is to start pppd on both systems. I will assume
that the connection uses /dev/ttyS34 on both machines. So, on both
machines execute the command:-
pppd -detach crtscts lock <local IP>:<remote IP> /dev/ttyS3 38400 &This will bring up the link - but as yet you have no routing specified.
You can test the link by pinging to and fro to each machine. If this
works, bring down the link by killing one of the pppd processes.The routing you need will of course depend on exactly what you are
trying to do. Generally, one of the machines will be connected
to an Ethernet (and beyond) and so the routing required is exactly the
same as for a PPP server and client.So on the Ethernet equipped machine, the pppd command would be
pppd -detach crtscts lock proxyarp <local IP>:<remote IP> /dev/ttyS3 38400 &and on the other machine
pppd -detach crtscts lock defaultroute <local IP>:<remote IP> /dev/ttyS3 38400 &If you are linking two networks (using a serial link!) or have more
complex routing requirements, you can use /etc/ppp/ip-up in exactly the
same way as mentioned earlier in this document.Robert HartPort Hedland, Western AustraliaMelbourne, Victoria, Australia
August/October 1996
January/March 1997
S
Wyszukiwarka
Podobne podstrony:
PPP HOWTO pl 27 (2)PPP HOWTO pl 6 (2)PPP HOWTO pl 9 (2)ppp howto 16 apegkq3qoslfyofnhhe5ali6gbxmebdc2e2vdwappp howto pl 1PPP HOWTO pl 19 (2)postgresql howto 27 j3v42lwktd5h5jrrldlealmuwb36rac6miq7abippp howto 5 x5qwn53yq7jvhtlsnngrexv45jxvtfl7grrdubippp howto 2 esquc4mofyqqpycupouhbcubo7jk3mmy6lys5oqppp howto 8 qyzketjocu7ys5lldhanishizvanexiv7w7fwlyppp howto 26 z3kbpxyztmaznapqggcwdn3ahhok5bukh6pkeziPPP HOWTO pl 4 (2)hardware howto 27 vut4gtoklqexxryjsiyj6jhciz5jnpm2bituwkippp howto 10 bzbikqx76mcefevovka5boge24rmydn5nbotqsyPPP HOWTO pl 25 (2)PPP HOWTO pl 20 (2)ppp howto 15 uqgmh75p5inq2e2etrhm4prp5ql6c2my53egxpappp howto 19 342mezti3kmdisoynrzq3h4edtxzohaclyb4suappp howto 14 hsqrqtydaqpicp6eei6tenmcdlcfhrwf2dwh4kawięcej podobnych podstron