Project

General

Profile

Static IP Adderess

Added by Anonymous over 9 years ago

Hi,

I tried to set a static IP address to the system, by changing the /etc/network/interface file (See below). Because we want to communicate it directly via ethernet without the USB cable.

The issue is that having assigned IP addresses to both the PC and the Mity, we can ping the Mity from the PC but not ping the PC from the Mity.

PC static IP is 192.168.2.13
Mity IP is 192.168.2.12

Any ideas?

Jack

  1. /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
  1. The loopback interface
    auto lo
    iface lo inet loopback
  1. Wireless interfaces
    iface wlan0 inet dhcp
    wireless_mode managed
    wireless_essid any
    wpa-driver wext
    wpa-conf /etc/wpa_supplicant.conf

iface atml0 inet dhcp

auto eth0

iface eth0 inet static
address 192.168.2.12
netmask 255.255.255.0
gateway 192.168.2.1

iface eth1 inet dhcp

  1. Ethernet/RNDIS gadget (g_ether)
  2. ... or on host side, usbnet and random hwaddr
    iface usb0 inet static
    address 192.168.7.2
    netmask 255.255.255.0
    network 192.168.7.0
    gateway 192.168.7.1
  1. Bluetooth networking
    iface bnep0 inet dhcp

Replies (2)

RE: Static IP Adderess - Added by Daniel Vincelette over 9 years ago

Hello Jack,

Is your PC a windows machine? If so I believe if you have the firewall on then it will block any ping requests. So if you disable your firewall on your PC then that might solve this issue. Let me know how it goes.

Dan

RE: Static IP Adderess - Added by Anonymous over 9 years ago

Hi Dan,

That works! Thank you!

Jack

    (1-2/2)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)