Communication with a simple echo server works with RPi but not desktop Ubuntu
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Communication with a simple echo server works with RPi but not desktop Ubuntu
Hi guys.
I have been stuck on this problem for quite a while now and I humbly ask for your advice.
OS: Ubuntu 18.04.1
HW: Dell Precision 5820
I have a simple example ethernet echo server running on a FPGA evaluation board. The problem is that I am not able to communicate with it from my desktop running Ubuntu 18.04.1. I am, however, able to communicate with it from my Raspberry Pi.
The echo server aquires, without DHCP, an IP of 192.168.1.10, when connecting my RPi directly to the evaluation board I can type
"ping 192.168.1.10" and I observe packets sent back and forth on Wireshark.
My desktop has 2 ethernet interfaces, en0 and enp2s0. en0 is connected to the internet. When I simply type
"ping 192.168.1.10" the OS uses the en0 interface and we get, obviously, no response. I tried updating the ip route table by doing:
"sudo ip route add 192.168.1.10 dev enp2s0" but this had no effect.
What did have an effect was specifing what interface to use with ping:
"ping -I enp2s0 192.168.1.10" makes the ping requests go over the enp2s0 interface, But still there is no response. Inspecting the packet trace in Wireshark on both desktop and RPi reveals nothing. The message exchange seems identical except that the RPi gets a response and the desktop doesnt.
Any ideas for how to debug this further? This is, unfortunately, only one of many issues I am having with Ubuntu 18.04.1 which lends to the question if I should just wipe the computer and try Ubuntu 18.04.4 or maybe 20.04?
I have not done anything to configure that interface. It doesnt have an IP address:
"ip addr show dev enp2s0
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether b4:96:91:8c:89:9e brd ff:ff:ff:ff:ff:ff
"
The ping's sent over the enp2s0 interface does report a source IP address that matches the en0 interface which is connect to the internet. Should I try to assign a static IP address to enp2s0? How does one do this?
But I could configure a static IP address using the network gui in Ubuntu. Now I am able to communicate with the echo server. A curios observation is that I tried connecting the devices through a router, which should do DHCP, but still the enp2s0 didnt get an IP address.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.