Ok, here is my /etc/network/interfaces file :
# This file describes the network interfaces available on your system > # and how to activate them. For more information, see interfaces(5). > # The loopback network interface > auto lo > iface lo inet loopback > # The primary network interface > auto eth0 > iface eth0 inet static > address 192.168.1.26 > netmask 255.255.255.0 > gateway 192.168.1.1 > # Example to keep MAC address between reboots > #hwaddress ether DE:AD:BE:EF:CA:FE > > # The secondary network interface > #auto eth1 > #iface eth1 inet dhcp > # WiFi Example > #auto wlan0 > #iface wlan0 inet dhcp > # wpa-ssid "essid" > # wpa-psk "password" > # Ethernet/RNDIS gadget (g_ether) > # ... or on host side, usbnet and random hwaddr > # Note on some boards, usb0 is automaticly setup with an init script > iface usb0 inet static > address 192.168.7.2 > netmask 255.255.255.0 > network 192.168.7.0 > gateway 192.168.7.1 It wirks but i must restart networking service on startup. (/etc/init.d/networking restart) If i dont restart it eth0 doesnt have any configuration with no ip no gateway and no netmask assigned. What can i do ? Thanks! El divendres, 13 febrer de 2015 18:37:07 UTC+1, Enric Climent va escriure: > > Yes, ok this night i will attach it ;) thanks! > > El divendres, 13 febrer de 2015 18:27:03 UTC+1, COG va escriure: >> >> Did you include the netmask 255.255.255.0 line? You should probably send >> the 'interfaces' (Assuming your using Debian: /etc/network/interfaces) file >> as an attachment so follks can check it out. >> >> On Friday, February 13, 2015 at 12:49:31 PM UTC-4, Enric Climent wrote: >>> >>> That is like i have but the problem is that when reboot the beaglebone i >>> lose the configuration until i reboot networking manually. >>> >>> El divendres, 13 febrer de 2015 13:42:38 UTC+1, COG va escriure: >>>> >>>> Try this: >>>> >>>> auto eth0 >>>> iface eth0 inet static >>>> address 192.168.1.26 >>>> netmask 255.255.255.0 >>>> gateway 192.168.1.1 >>>> >>>> That worked for me. >>>> >>>> On Friday, February 13, 2015 at 6:02:09 AM UTC-4, Enric Climent wrote: >>>>> >>>>> Hi! I put latest jessie debian snapshot from here >>>>> http://elinux.org/Beagleboard:BeagleBoneBlack_Debian >>>>> >>>>> Well, i want to have an ip to the beaglebone. I put this in >>>>> /etc/network/interfaces: >>>>> >>>>> auto eth0 >>>>> iface eth0 inet static >>>>> #your static IP >>>>> address 192.168.1.26 >>>>> #your gateway IP >>>>> gateway 192.168.1.1 >>>>> >>>>> >>>>> But when restart the ip are 192.168.1.130 (provided by DHCP server). >>>>> If after reboot i execute /etc/init.d/networking restart then ip change >>>>> to >>>>> 192.168.1.26 but if i ping 192.168.1.130 the beagle responds correctly. >>>>> >>>>> So Any ideas? Thanks! >>>>> >>>> -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
