LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-30-2014, 10:36 AM   #1
jzoudavy
Member
 
Registered: Apr 2012
Distribution: Ubuntu, SUSE, Redhat
Posts: 188

Rep: Reputation: Disabled
ubuntu ethernet interface option with empty value


Hi all

This is on a Ubuntu VM, running 9.04.

I have an interface I am trying to setup, eth0 but i keep getting this error:

/etc/network/interfaces:5 option with empty value
But line 5 is the device name, which I clearly put as eth0.

this is my interfaces file:

Code:
root@ubuntu-vm:/etc/bind# vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
DEVICE=eth0
HWADDR=FA:16:3E:74:16:F8
IPADDR=10.120.36.63
NETMASK=255.255.252.0
ONBOOT=no
BOOTPROTO=static
TYPE=Ethernet
USERCTL=yes
IPV6INIT=no
GATEWAY=10.120.36.1
DNS1=10.120.36.63
NAME="System eth0"
NM_CONTROLLED=no
PEERDNS=yes
and this is my ifconfig:

Code:
root@ubuntu-vm:/etc/bind# ifconfig 
eth0      Link encap:Ethernet  HWaddr fa:16:3e:74:16:f8  
          inet addr:10.120.36.63  Bcast:10.120.39.255  Mask:255.255.252.0
          inet6 addr: fe80::f816:3eff:fe74:16f8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:690 errors:0 dropped:0 overruns:0 frame:0
          TX packets:627 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:90182 (90.1 KB)  TX bytes:92450 (92.4 KB)
Can someone point out to me what am I missing?

Thanks


edit:

I should mention that I also tried the file without
Code:
auto eth0
iface eth0 inet static
but still get the same error about empty options.

Last edited by jzoudavy; 05-30-2014 at 10:45 AM.
 
Old 05-30-2014, 12:26 PM   #2
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Do you really need a netmask of 255.255.252.0?
That's a lot of ip addresses.

A more usual PC setup would use a netmask of 255.255.255.0
This would mean that the only addressable devices would be 10.120.36.xxx
You would still get 253 device addresses.
 
Old 05-30-2014, 12:55 PM   #3
jzoudavy
Member
 
Registered: Apr 2012
Distribution: Ubuntu, SUSE, Redhat
Posts: 188

Original Poster
Rep: Reputation: Disabled
this vm is part of a larger farm. so yes, that mask is necessary. and 253 is tiny compared to some of the data farms i have seen.
 
Old 05-31-2014, 04:18 PM   #4
AREmbedded
LQ Newbie
 
Registered: May 2014
Posts: 3

Rep: Reputation: Disabled
Make sure the network setting are set correctly in /etc/network/interfaces
Then use ifdown and ifup to reset the network port.
 
  


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] Bridging tap interface with ethernet interface rjm1 Linux - Networking 9 09-13-2013 09:29 AM
Ubuntu Ethernet Interface up/ Down? your_shadow03 Linux - Newbie 1 08-01-2009 11:34 AM
Receive Ethernet VLAN frame on the native ethernet interface (raw packet socket) scottbiker Linux - Networking 0 07-13-2009 03:49 AM
Bridge between ethernet interface and tap interface jayadhanesh Linux - Networking 3 04-12-2009 11:32 PM
how can i shutdown the PHYSICAL interface of an ethernet interface markraem Linux - Networking 2 04-12-2007 02:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:38 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