Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Bedrock Linux
User Name
Bedrock Linux This forum is for the discussion of Bedrock Linux.


  Search this Thread
Old 12-27-2016, 07:07 AM   #1
LQ Newbie
Registered: Dec 2016
Posts: 1

Rep: Reputation: Disabled
Persistent network settings

I'm in need to set a virtual ethernet interface and this being the first time to get my hands on a bedrock I can't seem to figure it out.

I brought it up with "ifconfig" but it's not persistent after a reboot.

Where are the configs stored?
Old 12-27-2016, 09:04 AM   #2
Senior Member
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Posts: 4,118

Rep: Reputation: Disabled
Most distros networking files are stored under /etc.
Old 12-27-2016, 10:29 AM   #3
Bedrock Linux Founder
Registered: Feb 2016
Distribution: Bedrock Linux
Posts: 141

Rep: Reputation: Disabled
It seems you've also asked about this on reddit, as well as in the IRC channel. I didn't answer on IRC because you dropped off before I had the chance, but I did on reddit. You asked an additional question here - "Where are the configs stored?" - and so I'll answer here as well, including this new question into consideration.

Some background to make sure we're on the same page:

Continuing with the same thing I said on reddit:

It sounds like you have gotten the networking stuff you want working, just not persistent after reboots. Correct? If so, I see two likely sources of your issue:
  • You're setting up networking from one stratum and getting your init from another. This means the init you're using isn't reading whatever configuration is supposed to tell init to run the networking code at boot due to the above mentioned known issue.
    • The easiest fix for this is to just get networking from the same distro as you get init. It doesn't take advantage of Bedrock Linux's features in this respect, but it's easiest to make work, and you can still take advantage of Bedrock Linux features elsewhere.
    • If you want to get networking and init from different distros/strata, the work around for the above mentioned issue is to manually make init-specific configuration to run the networking code at boot. For example, if you're using systemd from Arch, you could make a unit file with that as the ExecStart= line. You'll have to see the documentation for the specific distro/init you're using to boot for this, sadly; I can't give you an answer that works for everything. Most distros/inits either support /etc/rc.local or can be easily made to do so, which makes it a good choice in case you later want to take init hop as it should then continue to work across init choices. One note additional: since (in this guess for where your trouble lies) you're getting init and networking from different distros, I'd recommend explicitly specifying which ifconfig you're using with brc - so you'd probably want something like /bedrock/bin/brc <stratum> ifconfig <device> up.
  • You're getting the networking and init from the same distro/stratum - that is, the above mentioned init hook issue isn't relevant here - and you're missing some required step. You'll have to see the documentation for the specific distro/init you're using to boot for this, sadly; I can't give you an answer that works for everything. For example, if you're getting your init and networking from Arch, you could see the Arch Linux wiki page. This isn't a cop-out trying to push you away; I'm happy to help, it's just there's no way to cover all the possible instructions here for all the possible distros/networking stacks/inits.

Hopefully that points you in the right direction. If not, do let me know and I'll see what I can do.

Last edited by ParadigmComplex; 12-27-2016 at 05:13 PM. Reason: Rephrasing to avoid possible misinterpretated tone


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Debian: Transmission, Autologin, touchpad settings not persistent manishthatte Linux - Newbie 15 07-08-2014 08:19 AM
HD-Audio: ALSA settings not persistent across reboots. stf92 Slackware 18 01-09-2013 03:32 AM
[SOLVED] How to get persistent network settings when changing hardware rocketb Red Hat 6 11-07-2012 07:25 PM
Display Color/Gamma settings not persistent azgs Linux - Desktop 5 08-13-2008 06:06 PM
soudcard settings not persistent in SuSE 9.2 piratu SUSE / openSUSE 4 04-01-2005 02:47 AM > Forums > Linux Forums > Linux - Distributions > Bedrock Linux

All times are GMT -5. The time now is 11:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration