lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Netifs routing


From: Sergio R. Caprile
Subject: Re: [lwip-users] Netifs routing
Date: Sat, 27 Feb 2016 13:19:45 -0300
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

Oh! Sorry, didn't see you got a /24, a class C mask. My mistake, sorry
again, my apologies.

Would you care to post the other addresses too ? Please include the
VM-lwip actual machine addresses and interface names. As I told you
before, you have a TUN/TAP interface and it is either bridging or
routing. How is it configured ?

At first sight, it looks like lwIP is sending the response through its
default interface instead of the "routing" interface. I'm not sure if
lwIP will do this simplest form of routing, but there are hooks to make
it so if it doesn't.
Before that, I need to be sure all networking scenario is correctly
configured and there are no repeated address ranges. You have your VM1
PPP in 10.0.3/24 and all other interfaces in different nets, do you ?
When you connect from VM1, you do it to 10.0.3.183 or to 10.0.2.180 ? If
you connect to eth, lwIP will answer from eth and not route (AFAIK)

So (IPv4 only):

lwIP eth IP address, and mask
lwIP PPP IP address, and mask
lwip default gateway IP address
lwip default interface (call to set_default)
        is this called before or after bringing PPP up ?
physical host machine eth IP address, and mask
physical host machine default gateway
TUN/TAP interface for lwIP address, and mask
        bridging ? -> bridged interfaces
VM0 eth IP address, and mask
        associated TUN/TAP on host machine if in different network
VM0 default gateway
VM1 eth IP address, and mask
        associated TUN/TAP on host machine if in different network
VM1 PPP IP address, and mask
        is it statically assigned
VM1 default gateway
destination address when you connect to echo from VM0
destination address when you connect to echo from VM1

PS: regarding the PPP mask you mention, look:
address@hidden ~]$ /sbin/ifconfig ppp0
ppp0      Link encap:Point-to-Point Protocol
          inet addr:181.26.199.74  P-t-P:200.63.148.219
Mask:255.255.255.255
So, no, that shouldn't be a problem.



reply via email to

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