[Top][All Lists]

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

Re: [lwip-users] Local "ping"

From: Sergio R. Caprile
Subject: Re: [lwip-users] Local "ping"
Date: Mon, 06 Apr 2015 09:47:31 -0300
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

Ola Norberto,

> - VM´s network configured as "NAT Network"
Sorry, I don't know what that is, assuming your virtual machines +
network are properly configured, it doesn't matter wether they are
virtual or real, they are machines in one or many networks and can be
pinged if routed and not firewalled.

If I understand correctly, you are running lwIP under Ubuntu GNU/Linux.
I don't know what your particular netif does (sorry, that is your job),
the "standard" provided in the contrib tree: mintapif, uses a TUN/TAP
Bear in mind that different interfaces (except in some particular cases)
must belong to different IP networks, otherwise you must bridge them.
The TUN/TAP interface has its own IP subnet and the host machine routes
to it because it looks like a physical interface. In order for the other
machines to reach that, they have to be configured to properly route
that subnet.

> I configure the netif with IP=, MASK=, GW=
> The eth-7 (VM#1) interface has this configuration:
> eth7      Link encap:Ethernet  HWaddr 08:00:27:48:61:0c  
>           inet addr:  Bcast:  Mask:

For what I think I understand, you have two Ethernet interfaces within
the same IP subnet in the same machine. That won't work unless you
bridge them or change one of them.
You should see an interface for lwIP in your ifconfig with the GW
address you configured for lwIP. If you expect Linux to route, then
addresses must belong to different subnets, otherwise, put the
interfaces into a bridge so Linux can bridge them.

The ARP request is a broadcast, the Echo Request (ping) is unicast.
check for something like this in your netif.c



reply via email to

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