Hi,
I’m trying to use the snickeroodle as a router for my network but looks like the eth0 is not working properly.
Both eth0 and eth1 are configured with static IPs and the IP forwarding is enabled.
I can ping the eth1 IP from another computer but not the eth0.
If I connect a computer to the eth0 and try to ping the eth0 IP, with Wireshark I see the packets going but nothing returns, and if I try the ping the other way around, with tcpdump I see the packets but not on Wireshark.
I have an USB Ethernet adapter that plugged in the snickerdoodle do the job.
Any suggestion of what I need to check to know why eth0 is not working properly?
Presumably this is all using a piSmasher + snickerdoodle black?
Does ifconfig show both interfaces being up?
Have you tried setting the ETH0 mode to DHCP to see if it can acquire an IP address?
It’s a little unclear what you mean by
I have an USB Ethernet adapter that plugged in the snickerdoodle do the job.
Presumably you just have an Ethernet cable plugged into ETH0/ETH1?
-Cousins
Yes, piSmasher + snickerdoodle black.
ifconfig shows both interfaces up.
ETH0 with dhcp is not getting an IP address.
My current setup is:
- WLAN0: 10.20.30.224
- ETH0: 10.20.60.1
- ETH1: 10.20.50.1
- EN01: 10.20.70.1 <-It's an USB ethernet adapter.
From then 10.20.30.X network I can ping all the IP address mentioned above plus IPs in these networks with the exception of the ETH0 network.
I can ping the IP of ETH0 but nothing in that network.
Sorry for the delay while I looked into this @unaitxin .
Can you try disabling the other network interfaces after connecting ETH0 (e.g. ifconfig ETH1 down, etc.) then try pinging the ETH0 address?
I experienced something similar when ‘hot swapping’ Ethernet connections and disabling the other interfaces appeared to fix the problem (or at least made that interface pingable). Once you can ping ETH0, we’ll figure out how to fix any remaining issues.
-Ryan
Also, if you’re having trouble with ETH0’s internet connection, it could be an issue with the default gateway setting.
Try: $ route add default gw [router IP address] eth0
Then see if you have an internet connection.
Tried disabling the other interfaces and adding a default gateway but no luck still no ping.
I have connected a computer directly to the ETH0 and no matter in which way I ping (board to computer, computer to board) the led of the ethernet port is blinking while the ping is running but I don’t see in Wireshark the packet coming from the board…just the ones from the computer.
BTW I checked the wire is ok.