Issue setting static ETH0 IP BeagleBone Black Version C Debian Preloaded

15,719

Solution 1

You are missing the auto line

auto eth0
 iface eth0 inet static
    address 192.168.0.102
    netmask 255.255.255.0
    network 192.168.0.0
    gateway 192.168.0.1

(Just for diagnosis) - Also remove the gateway line from it and after you get the connection run this command to add the gateway

    root prompt :) #
route add default gateway 192.168.0.1

i was playing around a lot with networking on it so i got the answer. Hope this resolve your issue do post.

Solution 2

Do the configurations in wicd. Run "wicd-client" which opens GUI to make the configuration. Apparently wicd configurations overwrite what you do in /etc/network/interfaces

Share:
15,719
HopWorks
Author by

HopWorks

Updated on June 04, 2022

Comments

  • HopWorks
    HopWorks almost 2 years

    Settings in /etc/network/interfaces seems to have no effect on my BeagleBone Black Version C. I want to set my beaglebone black's ethernet IP address to a static IP as I have done with all my other internet-of-things devices running Debian. I edited /etc/network/interfaces as I have before, but I do not see any changes via ifconfig. This is after a restart of networking AND a restart of the beaglebone. I have googled somewhat, and posted to the beaglebone forums after searching them, and I still do not have a solution. I noticed a commented line in interfaces suggesting that the settings are set via an init script, but this is where I get a little lost. I have moderate knowledge of Debian, but I have not peeled back enough layers apparently. I am connecting my beaglebone black via ethernet connector. WIFI is a beast I will tackle later.

    I set my router to reserve a specific IP based on MAC ID, but I would like to know what I am missing here.

    iface usb0 inet static
        address 192.168.0.103
        netmask 255.255.255.0
        network 192.168.0.0
        gateway 192.168.0.1
    
    iface eth0 inet static
        address 192.168.0.102
        netmask 255.255.255.0
        network 192.168.0.0
        gateway 192.168.0.1
    
  • HopWorks
    HopWorks about 9 years
    Thank you user1486241. I did not know about route add as you suggested. Thank you so very much! I got this working shortly after I posted and failed to follow up, and I thought I had. What I did was exactly the same.
  • user1486241
    user1486241 about 9 years
    Pleasure. I think this problem is still bugging many people. Thank you selecting my answer as correct answer. Thank you
  • JimB
    JimB over 8 years
    This was our problem. We don't need wicd's functionality, so dpkg -l | grep -i wicd shows what's installed. For us, apt-get remove wicd-gtk wicd-curses wicd-cli wicd-daemon python-wicd (and apt-get autoremove for good measure).
  • Andrejs Gasilovs
    Andrejs Gasilovs over 6 years
    Thank you Milind Dumbare and especially @JimB This saved my life and now static address is preserved during hotplugging