element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum Beagle Bone Black ( C revision ) Static IP issue
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 7 replies
  • Subscribers 294 subscribers
  • Views 1076 views
  • Users 0 members are here
  • beagle bone black
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

Beagle Bone Black ( C revision ) Static IP issue

Former Member
Former Member over 9 years ago

I have Debian on my BB and have written interfaces file for Static IP.
On Boot-Up It takes IP but After unplugged of LAN cable it does not retain it.

ifconfig eth0 does not Show IP against ethernet interface.

  • Sign in to reply
  • Cancel
  • clem57
    0 clem57 over 9 years ago

    Are you modifying the interfaces file? Realize this file is modified by other processes like DHclient. Check if it maybe overwriting the interfaces file. Ubuntu Manpage: dhclient - Dynamic Host Configuration Protocol Client

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gdstew
    0 gdstew over 9 years ago

    As far as I know dhclient should not modify static IP addresses or any other part of a static interface (kind of negates the "static" part).

    I have static IP addresses set up in interfaces on a couple of computers (not BBB) running Debian and have not had dhclient  modify

    my interfaces file but that may depend on what's in the file. This is what my interfaces file for the static interface looks like:

     

    # network interface

    allow-hotplug eth1

    iface eth1 inet static

    address 192.168.1.22

    netmask 255.255.255.0

    gateway 192.168.1.1

     

    If you are not using allow-hotplug eth0 (use man interfaces to check it out) it may be what is causing your problem.

     

    If you are using allow-hotplug please show me what the interfaces file you modified looks like (you can substitute IP addresses

    if you want to, I did).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to clem57

    HI,

    In Linux and so for even BB, to assign Static IP it is necessary to write interfaces file so i Do.
    I have not observed any changes in it since i modify interfaces file, SO no issue of modification by dhclient.
    any suggestion.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to gdstew

    i used allow-hotplug option in my interfaces though problem persist.
    Does your machine which you configured for static IP retain it after unplugged LAN for significant period of time and after insertion of it again.
    This is my interfaces file looks

    auto eth0

    iface eth0 inet static

    address 172.16.41.22

    netmask 255.255.255.0

    gateway 171.16.41.1

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 9 years ago in reply to Former Member

    auto eth0

    iface eth0 inet static

    address 172.16.41.22

    netmask 255.255.255.0

    gateway 171.16.41.1

    Is this a typo in bold? Because this cannot work!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to clem57

    Sorry while posting this i made a mistake

    auto eth0

    iface eth0 inet static

    address 172.16.41.22

    netmask 255.255.255.0

    gateway 172.16.41.1

     

    This is my interfaces file. Do u have any solution regarding this?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gdstew
    0 gdstew over 9 years ago in reply to Former Member

    Sorry it took so long to get back to you but I've had some computer problems of my own to fix!

     

    In answer to your first question, as far as I know from what I have seen it always retains the static IP address as it should.

     

    ifconfig on my computers always shows the static IP address as configured in interfaces so I'm not sure exactly what you say you are seeing. Could you

    post a ifconfig before/after ? The best/easiest way to do this if you have the GUI available is to copy it from a terminal opened from the graphics interface

    and paste that into a text editor which you can then copy and paste into  the reply. This eliminates a lot of typing and all typos.

     

    I would also suggest that you go back to having allow-hotplug in the interfaces file and remove the auto eth0 since allow-hotplug should bring up the

    interface when something is plugged in.

     

    One last question mainly just out of curiosity, what are you plugging the Raspberry Pi in to ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube