lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Lwip with two ethernet ports


From: Eason
Subject: Re: [lwip-users] Lwip with two ethernet ports
Date: Mon, 11 May 2015 00:01:56 -0700 (MST)

Sorry, l have another questions.

My devices and IP setting as following:
========================================================
PC <----------> (eth1)[Device_1](eth0) <-------------> [Device_2]

/----------------device_1----------------/ 
//eth0 
ip: 192.168.191.220 
netmask: 255.255.255.0 
gw: 192.168.191.254 

//eth1 
ip: 192.168.190.101
netmask: 255.255.255.0 
gw: 192.168.190.254
/----------------device_1----------------/ 

/----------------device_2----------------/ 
ip: 192.168.191.199 
netmask: 255.255.255.0 
gw: 192.168.191.254 
/----------------device_2----------------/ 

/----------------PC----------------/ 
ip: 192.168.190.102
netmask: 255.255.255.0 
gw: 192.168.190.101 
/----------------PC----------------/ 

========================================================

I try to trace the packet flow, there are log messages I print:

ping 192.168.190.101
[ethernetif_input] netif ip=192.168.190.101
[ethernetif_input] netif gateway=192.168.190.254
[ip_input] inp ip=192.168.190.101
[ip_input] inp gateway=192.168.190.254
[ip_input] ICMP packet sent to icmp_input, gw(192.168.190.254)...

ping 192.168.191.220
[ethernetif_input] netif ip=192.168.190.101
[ethernetif_input] netif gateway=192.168.190.254
[ip_input] inp ip=192.168.191.220
[ip_input] inp gateway=*255.255.0.0*
[ip_input] ICMP packet sent to icmp_input, gw(*255.255.0.0*)...

The Problems are these two:
1. Why my PC pings eth1(192.168.190.101) is OK, but eth0(192.168.191.220) is
"request timeout"?

2. Why the packet's gateway that ping eth0 is changed in ip_input, is it the
reason of "request timeout"?

thanks



--
View this message in context: 
http://lwip.100.n7.nabble.com/Lwip-with-two-ethernet-ports-tp24405p24425.html
Sent from the lwip-users mailing list archive at Nabble.com.



reply via email to

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