My intention was to connect directly the networkLayer (IPv4NetworkLayer) to the LLC module (EtherLLC) in order to encapsulate/decapsulate Ipv4Datagrams but I think that LLC module only encapsulate ethernet traffic, so I connected the module encap (IEtherEncap) to the networkLayer instead the LLC module and still didn't work. Then, I tried to connect directly the IWiredNic with the EthernetInterface from INET just like it is on the StandardHost (in order to see if the problem was due to wrong mac directions in the routing tables or something else) and it worked .
So my question is: ¿does anyone knows if the networkLayer must to be connected directly to a IWiredNic? or ¿How can I check this?
As I have seen that connecting the networkLayer directly to an IWiredNic worked it, the only thing that I have done is create a different version of EthernetInterface.ned from INET and put it in this IWiredNic. Even though it works, I'd have preferred to connect all the modules directly instead using IWiredNics.
For more information, here I attach the routing tables of etherHost (routingTables.png), the etherHost modified (etherHost.png), the EtherInterface(etherInterf2.png) that I've modified and a picture of the simulation.
Thanks for your help in advanced
Dania