LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-30-2014, 04:49 PM   #1
GTrax
Member
 
Registered: Oct 2005
Location: UK
Distribution: Mint
Posts: 258

Rep: Reputation: 37
Please help make network configuration "stick" on re-boot.


The system is LinuxMint 17.
The network can be made to work OK, but it fails to be there on start-up.
I have already learned to remove the crazy re-spawning "Network Manager" that repeatedly tries to connect to anything it finds.
I have already found /etc/network/interfaces.txt.
I have put there exactly what I need.
Code:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

iface eth1 inet static
address 192.168.0.<my_chosen_number_here>
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameservers 208.67.222.222

# auto eth1
That last "auto eth1" that I disabled by making it into a comment is always automatically written into this file on start-up, but is apparently trumped by the following command, delivered from a root terminal.
Code:
# ifup eth1
The network is then started up as needed, and it works just fine!
As it happens, there are two network ports, and eth0 is the one without the cable.
The questions..
1) Where is the proper place to put the "ifup eth1" command so that the network will be started correctly when we switch on?
2) Will there be a never-ending series of "auto eth1" repeatedly added to /etc/network/interfaces? If so, how do we prevent it?
My thanks if you can help.
 
Old 10-01-2014, 02:51 AM   #2
jebe88
LQ Newbie
 
Registered: Jan 2012
Location: Germany
Distribution: Debian
Posts: 11

Rep: Reputation: Disabled
The line reading "auto eth1" which you disabled should bring up the interface during boot without the need to explicitely doing an "ifup eth1". The "ifup" script is called with the option "-a" during boot which makes it parse /etc/network/interfaces and bring up everything marked as "auto" for you. If this still doesn't work, try to add a line with "allow-hotplug eth1". For further information use "man 5 interfaces".
 
Old 10-01-2014, 04:06 AM   #3
GTrax
Member
 
Registered: Oct 2005
Location: UK
Distribution: Mint
Posts: 258

Original Poster
Rep: Reputation: 37
My thanks to you jebe88
Quote:
Originally Posted by jebe88 View Post
The line reading "auto eth1" which you disabled should bring up the interface during boot without the need to explicitely doing an "ifup eth1". The "ifup" script is called with the option "-a" during boot which makes it parse /etc/network/interfaces and bring up everything marked as "auto" for you. If this still doesn't work, try to add a line with "allow-hotplug eth1". For further information use "man 5 interfaces".
The motivation for disabling the "auto eth1" was I was still without network after re-start (this took a lot of tedious re-starts to test), and it was the only line left doing things I did not understand. At one stage, I noticed a "new" auto eth1 had appeared after the one commented out.

OK - so I re-enable the line, and read more manual.
My regards..
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel make error: "vmlinux.o no such file ..." and make -d "Reaping losing ..." micscherer Linux - Kernel 3 06-12-2012 07:29 AM
LXer: Installing "Sugar on a stick" (Strawberry Release) On A USB Stick LXer Syndicated Linux News 0 08-04-2009 03:50 PM
I can't make screen size changes "stick" -- they're always set back after a reboot PTrenholme Ubuntu 15 02-29-2008 06:45 PM
boot "disk" on flash stick amishtechie Debian 1 08-18-2007 03:10 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:17 AM.

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