Not able ping to 192.168.2.2 from Liux Machine

Hi,
Following are the setup details:

  1. Ubuntu.16 Machine
  2. Connected mangOH green board to linux machine through USB cable.

When trying the steps mentioned in the “4118961_mangOH_Fundamentals_LinuxCLI_r5_draft.pdf” after connecting everything
as per the section 4.2.2 we tried to ping 192.168.2.2 which was failing.

Could please help us in solving this issue.

Thanks & Regards,
Murali.

Can you SSH in to it? Connect to it in any way?

If you can SSH in, or at least see it show up as a device on 192.168.2.2, it would be worth checking the iptable.
/etc/iptables/rules.v4

Check to see that it has something similar to the below:
# Allow SSH, PING and DHCP over ECM interface
-A INPUT -i usb0 -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -i usb0 -p icmp -m icmp --icmp-type 8 -j ACCEPT
-I INPUT -i usb0 -p udp --dport 67:68 --sport 67:68 -j ACCEPT

And if you want to be able to ping/ssh over eth0, add these lines:
# Allow SSH, PING and DHCP over eth0 interface
-A INPUT -i eth0 -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -i eth0 -p icmp -m icmp --icmp-type 8 -j ACCEPT
-I INPUT -i eth0 -p udp --dport 67:68 --sport 67:68 -j ACCEPT

2 Likes

Hi,

Thank you for your reply. It’s really working. I can able to connect
mangoh board from my linux machine.