question about pppd + routing problem on freebsd 5.3

From: Haris Makripodis (haris_at_netplan.gr)
Date: 04/25/05


Date: Mon, 25 Apr 2005 16:12:58 +0300

Hello to all
I'm using 2 identical pc's , with freebsd 5.3-RELEASE #0(generic kernel)
with a serial 56k modem and a nic connected, and 2 ip-phones connected
on each nic as shown below:

********** **********
*modem ~~~~~~~~~~~~~~~~~~~~~~~~~~ modem*
**|******* *******|**
   | |
**|**************** *****************|**
*(ppp0)10.0.0.2 * * 10.0.0.1(ppp0)*
*pppd client * *pppd server *
*PC1 * *PC2 *
* * * *
*(dc0)192.168.2.40* * 192.168.1.21(xl0)*
**|**************** ****************|***
   | |
**|************* ************|***
*192.168.2.242 * *192.168.1.241 *
*ip phone-a * *ip phone-b *
**************** ****************

My main purpose is the 2 ip-phones(Micronet SP5100,just in case)to
communicate at each other.

I issued these route commands to the PC1
route add 192.168.1.0 10.0.0.1
and those to the PC2
route add 192.168.2.0 10.0.0.2

The rc.conf of both PC's is very minimal containing only the basics and
the gateway_enable="yes"
On the PC2 side Im' using kernel ppp + mgetty and on the client kernel ppp.

PC1 Routing tables

Internet:
Destination Gateway Flags Refs Use Netif Expire
10.0.0.1 10.0.0.2 UH 1 10 ppp0
127.0.0.1 127.0.0.1 UH 0 0 lo0
192.168.1 10.0.0.1 UGS 0 4 ppp0
192.168.2 link#1 UC 0 0 dc0
192.168.2.242 00:11:3b:04:5d:a3 UHLW 0 7 dc0 875

PC2 Routing tables

Internet:
Destination Gateway Flags Refs Use Netif Expire
10.0.0.2 10.0.0.1 UH 1 0 ppp0
127.0.0.1 127.0.0.1 UH 0 0 lo0
192.168.1 link#2 UC 0 0 xl0
192.168.2 10.0.0.2 UGS 0 0 ppp0

 From the PC2 I can ping both the ip's 192.168.2.40, 192.168.2.242 with
success.
 From the PC1 I can only ping to 192.168.1.21 with success and I cannot
ping to 192.168.1.241.
Please suggest a solution to my problem.
Thank you for your time.



Relevant Pages

  • Re: weird iptables behaviour
    ... PC1 is connected to internet and PC2 uses PC1 ... (for example ping and traceroute www.wikipedia.org ... # clamp MTU for new TCP connections to world ...
    (comp.os.linux.networking)
  • Re: Set up a home... network doesnt work
    ... I notice that although each PC can ping the other successfully using IP address they can't ping using computer name. ... PC1 can see the shared folders of PC2 and access them. ... Ethernet adapter Local Area Connection: ...
    (microsoft.public.windowsxp.network_web)
  • Re: Cant connect to a pc
    ... onto PC1 with admin account but I am unable to ping or connect to PC2. ...
    (microsoft.public.windowsxp.network_web)
  • Re: weird iptables behaviour
    ... PC1 is connected to internet and PC2 uses PC1 ... From PC2 i can ping and even traceroute any URL ... modprobe ip_tables ...
    (comp.os.linux.networking)
  • ZoneAlarm missing Firewall Zones tab for subnet. New NAT router wont show Entire Network.
    ... Per Netgear quick install, Internet worked for both ... PCs - - Good. ... pc1 can see pc2 files. ...
    (comp.security.firewalls)