Network Interfaces Error

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
ToxicWulf
New to forums
New to forums
Posts: 9
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Mon Apr 22, 2013 8:30 pm

Network Interfaces Error

Post by ToxicWulf »

I'm getting an error like this

Code: Select all

/etc/network/interfaces:48: duplicate option
ifdown: couldn't read interfaces file "/etc/network/interfaces"
/etc/network/interfaces:48: duplicate option
ifup: couldn't read interfaces file "/etc/network/interfaces"
but when I look at line 48, I see

Code: Select all

address 192.223.25.212
Here is a link to my whole interfaces file. http://pastebin.com/raw.php?i=djBDxuhy
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Network Interfaces Error

Post by soja »

you are missing an i on line 47, it just says face :P

Reply if this fixes it and if you need anything else!
Not a NFO employee
ToxicWulf
New to forums
New to forums
Posts: 9
Joined: Mon Apr 22, 2013 8:30 pm

Re: Network Interfaces Error

Post by ToxicWulf »

soja wrote:you are missing an i on line 47, it just says face :P

Reply if this fixes it and if you need anything else!
Thank you. This sorta worked but now I have

Code: Select all

RTNETLINK answers: File exists
Faild to bring up eth0:x.
(I put x since it says 1 - 10)
User avatar
Edge100x
Founder
Founder
Posts: 13120
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Network Interfaces Error

Post by Edge100x »

You have many mismatched entries like this:

Code: Select all

	address 192.223.25.210
	netmask 255.255.255.0
	network 66.150.164.0
	broadcast 66.150.164.255
The address should match the netmask, network, and broadcast. So, you meant to put:

Code: Select all

	address 192.223.25.210
	netmask 255.255.255.0
	network 192.223.25.0
	broadcast 192.223.25.255
That said, you do not need to specify "network" or "broadcast", at all and it would be easiest for you to leave them out. We talk more about how to add IP addresses here: http://www.nfoservers.com/forums/viewto ... =68&t=5418.
ToxicWulf
New to forums
New to forums
Posts: 9
Joined: Mon Apr 22, 2013 8:30 pm

Re: Network Interfaces Error

Post by ToxicWulf »

Edge100x wrote:You have many mismatched entries like this:

Code: Select all

	address 192.223.25.210
	netmask 255.255.255.0
	network 66.150.164.0
	broadcast 66.150.164.255
The address should match the netmask, network, and broadcast. So, you meant to put:

Code: Select all

	address 192.223.25.210
	netmask 255.255.255.0
	network 192.223.25.0
	broadcast 192.223.25.255
That said, you do not need to specify "network" or "broadcast", at all and it would be easiest for you to leave them out. We talk more about how to add IP addresses here: http://www.nfoservers.com/forums/viewto ... =68&t=5418.
I did read that when I was linked it from a support member and I asked him or her if I should of removed those but they said to keep it in. Thank you for the help.
ToxicWulf
New to forums
New to forums
Posts: 9
Joined: Mon Apr 22, 2013 8:30 pm

Re: Network Interfaces Error

Post by ToxicWulf »

Update: I'm still getting the same error. This is the new interfaces file.

http://pastebin.com/YaGqcWag I did try without network and broadcast but it gave me the same error.

By the way I'm this is my first time doing this thing since I've always had managed machines.
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Network Interfaces Error

Post by soja »

Try for the time being with a single eth0:x interface for testing purposes. If it doesn't start with just the 2 total interfaces, try removing the gateway entry for eth0:x and see what happens. Everything I have read relating to your issue is a problem with 2 default gateways.
Not a NFO employee
User avatar
Edge100x
Founder
Founder
Posts: 13120
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Network Interfaces Error

Post by Edge100x »

I don't think that you actually need any other gateways apart from the first one.

To be clear, are you just seeing cosmetic warning messages and everything is otherwise working properly, or are you seeing a real problem, with those IP addresses not binding properly? If it's the former, I advise simply sticking with what you have.
Post Reply