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
  • 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
BeagleBoard
  • Products
  • Dev Tools
  • Single-Board Computers
  • BeagleBoard
  • More
  • Cancel
BeagleBoard
Forum Beaglebobe Black Static IP rentention
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
BeagleBoard requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 3 replies
  • Answers 1 answer
  • Subscribers 98 subscribers
  • Views 1859 views
  • Users 0 members are here
  • bbb
Related

Beaglebobe Black Static IP rentention

prasanna_1812
prasanna_1812 over 3 years ago

Dear All,

 

I am using Beaglebone black device as an Energy Monitoring device in my IOT Projects. The application reads data through USB (Modbus RTU) and sends it to remote cloud through MQTT. There are around 15-20 Beaglebone Black devices such devices. To access, the internet, the plant IT Manager has given me (15-20)number of static ip addresses. I have set static ip address in the (/etc/network/interfaces) file. But sometimes, the internet connectivity is not working. when i debugged it, i found that beaglebone black is getting dynamic ip address.

There are separate ranges for static and dynamic ip address in the plant. If i reboot the beaglebone black, it again catches the static IP address properly and the system works normally.

I am facing this issue in random ip address. As of now there is no option of shifting it permanently on the dynamic ip range. This is occurring in random devices. Please help me resolve this issue. I am attaching the screenshots of ip set in the (/etc/network/interface) file and ip address received.

 

for example, the static IP address set in the device,

 

IP: 10.12.4.152

netmask: 255.255.254.0

gateway: 10.12.4.1

 

IP Address received (checked using ifconfig command)

 

IP: 10.12.4.207

netmask: 255.255.254.0

 

I have attached two separate images of configuration done in the beablebone black. one image is /etc/network/interface file and the other is response of ifconfig command.

 

image

image

Attachments:
image
image
  • Sign in to reply
  • Cancel

Top Replies

  • prasanna_1812
    prasanna_1812 over 3 years ago in reply to cstanton +1
    Hi Christopher, Thank you for your response. By network manager you mean the connman utility ? On some other communities, i received suggestions such as 1. Setting static IP using the connman with the…
  • cstanton
    0 cstanton over 3 years ago

    Ubuntu has a network manager which it runs by default and overrides /etc/network/interface.

     

    The best way is to set your static IP address via your DHCP server, called a 'reserved address', that way you'll always get the same IP address.

     

    Otherwise you have to either set your IP address via the network manager in Ubuntu or disable the network manager.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • prasanna_1812
    0 prasanna_1812 over 3 years ago in reply to cstanton

    Hi Christopher,

     

    Thank you for your response. By network manager you mean the connman utility ? On some other communities, i received suggestions such as

     

    1. Setting static IP using the connman with the help of command

    connmanctl config ethernet_d436390d4dcb_cable --ipv4 manual 192.168.0.192 255.255.255.0 192.168.0.1.

    I did manage to set it but it required me to to do nameserver settings manually

     

    2. Second suggestion was removing connman from the system completely so that /etc/network/interfaces could act normally. I tried this one and testing it in my local device. so far, it is working fine, but nor sure how it will work out in the remote devices. Also would like your opinion on point no 1 and 2.

     

    Thanks again.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • cstanton
    0 cstanton over 3 years ago in reply to prasanna_1812

    Looks like it.

     

    https://wiki.ubuntu.com/ConnMan

     

    I believe the other way to access it would've been to click on the 'wifi' or 'radio' icon that was at the top of your screenshot and from there you can usually configure the connection to be static rather than dynamic. image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject 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