LinuxQuestions.org
Help answer threads with 0 replies.
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 12-13-2013, 10:45 AM   #1
dobharweim
LQ Newbie
 
Registered: Dec 2013
Posts: 1

Rep: Reputation: Disabled
Angry ifup: couldn't read interfaces file "/etc/network/interfaces"


Hi everybody,

I'm extremely new to linux, as part of a college project I've had to install and use a Debian Virtual Machine for a number of tasks, and I'm extremely impressed with how powerful an OS it is.

Anyway, the final part of my assignment is to set the machine a static ip address, which I did using this guide http://elinux.org/RPi_Setting_up_a_static_IP_in_Debian
and an elevated gedit window.

Unfortunately when I try to restart the network connection I get the error mentioned in my title.

My interfaces file is as follows:

# This file describes the network interfaces #available on your system
# and how to activate them. For more information, #see interfaces(5).


# The primary network interface
allow-hotplug eth0
#iface eth0 inet dhcp

# Enable a loopback interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static

#Static IP address
address 192.168.15.4

#your gateway IP
gateway 192.168.15.1
netmask 255.255.255.0

#Network address settings
network 192.168.15.1

Can anyone see the issue?

Thanks a million for any help!

Last edited by dobharweim; 12-13-2013 at 10:46 AM. Reason: forgot to sign off
 
Old 12-13-2013, 12:20 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,900
Blog Entries: 13

Rep: Reputation: 4947Reputation: 4947Reputation: 4947Reputation: 4947Reputation: 4947Reputation: 4947Reputation: 4947Reputation: 4947Reputation: 4947Reputation: 4947Reputation: 4947
Hmmm that looks correct. The only thing I don't normally include is the allow-hotplug. Try taking that out. I have an identical interfaces file which does work for me:
Code:
# Interfaces file
auto lo
iface lo inet loopback

# Ethernet to remote station
auto eth1
iface eth1 inet static
address 192.168.20.10
netmask 255.255.255.0
 
  


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
[SOLVED] Solved Ununtu 12.04 "Desktop" network-manager and /etc/network/interfaces conflicts MrDave Linux - Networking 0 02-20-2013 05:44 AM
ifup: couldn't read interfaces file "/etc/network/interfaces" debian lenny lorimer73 Linux - Networking 1 08-24-2010 04:47 PM
How do I specify "security mode: open" in /etc/network/interfaces? DittoAlex Debian 10 10-07-2007 11:17 PM
How do I specify "security mode: open" in /etc/network/interfaces? DittoAlex Linux - Wireless Networking 4 09-29-2007 03:11 PM
ifup cant read network interfaces flebber Debian 3 03-13-2006 05:42 AM

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

All times are GMT -5. The time now is 02:31 PM.

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