comm between lnet and ethernet

Is it possible that lnet exchange data with normal ethernet? If yes please can you send me the sample code example.

comm between lnet and ethernet

What is lnet?  If you mean local net then yes.  The uIP and lwIP samples do this.