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 06-24-2008, 08:07 AM   #1
dwezel
LQ Newbie
 
Registered: Sep 2005
Posts: 14

Rep: Reputation: 0
Multihoming


I have added a second network interface to my interfaces file in /etc/networking but can't get the interface to come up, I get the error

"SIOCSIFFLAGS: Cannot assign requested address" when I issue the command "ifconfig eth0:0 up". Any help is much appreciated.

Here is what my interfaces file looks like:

auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 10.0.0.10
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
gateway 10.0.0.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 10.0.0.1
dns-search remotecpu.com

iface eth0:0 inet static
address 10.0.0.12
netmask 255.255.255.0
 
Old 06-25-2008, 03:43 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
You indicate you added a second NIC, but are trying to create an alias for the first NIC. Are you trying to bring up a new physical interface, or add an alias to an existing one?
 
Old 06-25-2008, 07:39 AM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
rather than
ifconfig eth0:1 up
Which is expecting an address to be assigned as part of this command

why don't you use
ifup eth0:1
which will use the address assigned in the interfaces file

Quote:
it-etch:~# ifconfig eth0:1 up
SIOCSIFFLAGS: Cannot assign requested address

it-etch:~# ifup eth0:1

it-etch:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1a:a0:xx:xx:xx
inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0


eth0:1 Link encap:Ethernet HWaddr 00:1a:a0:xx:xx:xx
inet addr:192.168.0.8 Bcast:192.168.0.255 Mask:255.255.255.0
the command you gave it is incomplete, it's looking for an address, but you never provided one to assign.
Quote:
it-etch:~# ifconfig eth0:1 10.0.0.2 netmask 255.255.255.0 up

it-etch:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1a:a0:XX:XX:XX
inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0


eth0:1 Link encap:Ethernet HWaddr 00:1a:a0:XX:XX:XX
inet addr:10.0.0.2 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:209

Last edited by farslayer; 06-25-2008 at 07:47 AM.
 
  


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
Load Balancing/multihoming/bonding/3 Nics Neo321/genius321 Linux - Networking 5 02-14-2007 03:53 AM
enable multihoming on linux enterprise helmsley Linux - Networking 2 02-12-2006 08:05 PM
writing multihoming daemon without bind blackzone Linux - Networking 0 08-26-2004 09:40 PM

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

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