pavelv
2008-07-18 16:08:01 UTC
Dear all,
Please could you help me to establish PPP connection between 2 Linux
boxes enabling the client to go to Internet through a serial cable and
the server?
On both of the machines there is a fresh Mandriva 2008.1 installation
with all updates available.
One of the machines (server) is a part of a local area network and is
connected to the Internet via Ethernet.
The other machine (client) is only connected via serial cable to
server.
What I want to do is to be able to connect to Internet from the client
machine via serial cable connected to server. Firstly I would like to
be able to ping any Interned address from client.
I have disabled firewall and then I have enabled IP forwarding - I
have set net.ipv4.ip_forward = 1 in
/etc/sysctl.conf.
Then I followed chapter 29 "Using PPP across a null modem (direct
serial) connection" of http://tldp.org/HOWTO/PPP-HOWTO/ and in
addition to I have disabled authentication and compression in the
options files to make first try as easy as possible.
/etc/ppp/options.ttyS1 on server is:
crtscts
lock
192.168.1.1:192.168.1.2
debug
proxyarp
noauth
nodeflate
nobsdcomp
/etc/ppp/options.ttyS1 on client is:
crtscts
lock
defaultroute
192.168.1.2:192.168.1.1
debug
noauth
nodeflate
nobsdcomp
I have called “pppd /dev/ttyS1” nodetach firstly on server and then
on client.
The result on server was:
pppd nodetach /dev/ttyS1
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS1
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xe1a69af4> <pcomp>
<accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xe1a69af4> <pcomp>
<accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc7173459> <pcomp>
<accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xc7173459> <pcomp>
<accomp>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 196.164.32.114>
<ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 10.51.12.24> <ms-
dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfRej id=0x1 <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfRej id=0x1 <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 196.164.32.114>]
rcvd [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 10.51.12.24>]
sent [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 10.51.12.24>]
rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 196.164.32.114>]
Cannot determine ethernet address for proxy ARP
local IP address 192.168.1.1
remote IP address 192.168.1.2
the result on client was:
pppd nodetach /dev/ttyS1
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS1
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x4c2dfc79> <pcomp>
<accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x4c2dfc79> <pcomp>
<accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x67f0b1c8> <pcomp>
<accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x67f0b1c8> <pcomp>
<accomp>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 10.51.12.24> <ms-
dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 196.164.32.114>
<ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0
sent [IPCP ConfRej id=0x1 <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfRej id=0x1 <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 10.51.12.24>]
rcvd [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 196.164.32.114>]
sent [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 196.164.32.114>]
rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 10.51.12.24>]
local IP address 192.168.1.2
remote IP address 192.168.1.1
After the connection was established I could ping 192.168.1.1. from
the client
and 192.168.1.2 from the server. But was not able to ping any other
address
and could not go to the Internet from client.
Probably the message on server:
Cannot determine ethernet address for proxy ARP
which I have received might describe the problem?
Thanks for any help
pavel
Please could you help me to establish PPP connection between 2 Linux
boxes enabling the client to go to Internet through a serial cable and
the server?
On both of the machines there is a fresh Mandriva 2008.1 installation
with all updates available.
One of the machines (server) is a part of a local area network and is
connected to the Internet via Ethernet.
The other machine (client) is only connected via serial cable to
server.
What I want to do is to be able to connect to Internet from the client
machine via serial cable connected to server. Firstly I would like to
be able to ping any Interned address from client.
I have disabled firewall and then I have enabled IP forwarding - I
have set net.ipv4.ip_forward = 1 in
/etc/sysctl.conf.
Then I followed chapter 29 "Using PPP across a null modem (direct
serial) connection" of http://tldp.org/HOWTO/PPP-HOWTO/ and in
addition to I have disabled authentication and compression in the
options files to make first try as easy as possible.
/etc/ppp/options.ttyS1 on server is:
crtscts
lock
192.168.1.1:192.168.1.2
debug
proxyarp
noauth
nodeflate
nobsdcomp
/etc/ppp/options.ttyS1 on client is:
crtscts
lock
defaultroute
192.168.1.2:192.168.1.1
debug
noauth
nodeflate
nobsdcomp
I have called “pppd /dev/ttyS1” nodetach firstly on server and then
on client.
The result on server was:
pppd nodetach /dev/ttyS1
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS1
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xe1a69af4> <pcomp>
<accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xe1a69af4> <pcomp>
<accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc7173459> <pcomp>
<accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xc7173459> <pcomp>
<accomp>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 196.164.32.114>
<ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 10.51.12.24> <ms-
dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfRej id=0x1 <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfRej id=0x1 <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 196.164.32.114>]
rcvd [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 10.51.12.24>]
sent [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 10.51.12.24>]
rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 196.164.32.114>]
Cannot determine ethernet address for proxy ARP
local IP address 192.168.1.1
remote IP address 192.168.1.2
the result on client was:
pppd nodetach /dev/ttyS1
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS1
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x4c2dfc79> <pcomp>
<accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x4c2dfc79> <pcomp>
<accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x67f0b1c8> <pcomp>
<accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x67f0b1c8> <pcomp>
<accomp>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 10.51.12.24> <ms-
dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 196.164.32.114>
<ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0
sent [IPCP ConfRej id=0x1 <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfRej id=0x1 <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 10.51.12.24>]
rcvd [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 196.164.32.114>]
sent [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 196.164.32.114>]
rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 10.51.12.24>]
local IP address 192.168.1.2
remote IP address 192.168.1.1
After the connection was established I could ping 192.168.1.1. from
the client
and 192.168.1.2 from the server. But was not able to ping any other
address
and could not go to the Internet from client.
Probably the message on server:
Cannot determine ethernet address for proxy ARP
which I have received might describe the problem?
Thanks for any help
pavel