Forums » Software Development »
Static IP Adderess
Added by Anonymous about 10 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
- /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
- The loopback interface
auto lo
iface lo inet loopback
- 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
- Ethernet/RNDIS gadget (g_ether)
- ... 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
- Bluetooth networking
iface bnep0 inet dhcp
Replies (2)
RE: Static IP Adderess - Added by Daniel Vincelette about 10 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