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: Jani Monoses
Subject: [lwip-users] Re: [lwip] Tun/Tap interfaces
Date: Thu, 09 Jan 2003 01:56:50 -0000

> 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)

the netmasks you use  matter as well...
are both addresses on the route 146.232.144.XXX ?? One should use 147.
I assume netmasks are 255.255.255.0

> 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.
you can leave it as it is but then set the routes properly.

On host1 
route add -net 146.232.147.0 netmask 255.255.255.0 gw 146.232.144.96
On host2 
route add -net 146.232.144.0 netmask 255.255.255.0 gw 146.232.147.107

So that both hosts know how to reach the other subnet via the router

And on host2
route add -net 192.168.0.0 netmask 255.255.255.0 gw 146.232.144.41

So that host2 knows that to reach lwip/tap it goes through host1
[This message was sent through the lwip discussion list.]




reply via email to

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