lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Re: [lwip] Tun/Tap interfaces


From: Felipe Massia Pereira
Subject: [lwip-users] Re: [lwip] Tun/Tap interfaces
Date: Wed, 08 Jan 2003 23:05:21 -0000

I think your problem now is routing. Router and host2 must
know how to reach the
address you have configured in lwIP (probably 192.168.0.0 net). Try to add
a route to this network in both. I guess it would be:

host2: # route add -net 192.168.0.0 netmask 255.255.255.0 gw router-addr \
            dev eth0

router: # route add -net 192.168.0.0 netmask 255.255.255.0 dev ethX

Where X is the number of the interface which has direct link with host1. I
dont know if this works... I remember I had the same problem but I dont
remember if it succeeded. :)

Felipe

On Fri, 20 Sep 2002, ERIC MAHLAKO wrote:

> I have separated my network into two subnets. i.e
> 
> Host1 <====> Router <====> Host2
> subnet1            subnet2
> IP addresses
> Host1(146.232.144.41)
> Router(146.232.144.96) and (146.232.144.107)
> Host2(146.232.147.37)
> All the computers runs Linux 2.4.18.
> Host2 and Router are both running Linux TCP/IP stack.
> Host1 contains lwIP stack. I want the application to
> receive and transmit packets using the TUN/TAP
> devices.
> But the problem is I tried to configure the devices,
> but still Host2 can not ping Host1.Kernel in Host1 has
> been configured to support the devices. I have
> configured the devices using the following procedure:
>  mknod /dev/net/tun c 10 200
>  alias char-major-10-200 tun in /etc/modules.conf
>  run: depmod -a
> 
>  ./MAKEDEV tap in /dev/
> So I don't know if ever I have omitted something. Can
> anyone tells me how to solve this problem. Lastly I
> want to know if the IP addresses in simhost.c should
> be changed to correspond with my IP addresses of the
> network I'm using.
> 
> Eric 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com
> [This message was sent through the lwip discussion list.]
> 

[This message was sent through the lwip discussion list.]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]