[gentoo-user] ifconfig - SIOCSIFFLAGS: Cannot assign requested address

2006-12-11 Thread Leandro Melo de Sales

Hi list,

# ifconfig eth0:0 192.168.1.3
SIOCSIFADDR: File exists
SIOCSIFFLAGS: Cannot assign requested address

My /etc/conf.d/net is correct:

config_eth0=( 192.168.1.2 netmask 255.255.255.0
 192.168.1.3 netmask 255.255.255.0
 192.168.1.6 netmask 255.255.255.0
)
routes_eth0=( default gw 192.168.1.1 )

When I start /etc/init.d/net.eth0 (which is a sym link to net.lo) everything
seems to be ok, but when I type ifconfig I can see just eth0 interface. So,
I tried to execute the ifconfig command listen above but I got that error.
What is wrong?

Thank you,

Leandro


Re: [gentoo-user] ifconfig - SIOCSIFFLAGS: Cannot assign requested address

2006-12-11 Thread Jerry McBride
On Monday 11 December 2006 12:34, Leandro Melo de Sales wrote:
 Hi list,

 # ifconfig eth0:0 192.168.1.3
 SIOCSIFADDR: File exists
 SIOCSIFFLAGS: Cannot assign requested address

 My /etc/conf.d/net is correct:

 config_eth0=( 192.168.1.2 netmask 255.255.255.0
   192.168.1.3 netmask 255.255.255.0
   192.168.1.6 netmask 255.255.255.0
 )
 routes_eth0=( default gw 192.168.1.1 )

 When I start /etc/init.d/net.eth0 (which is a sym link to net.lo)
 everything seems to be ok, but when I type ifconfig I can see just eth0
 interface. So, I tried to execute the ifconfig command listen above but I
 got that error. What is wrong?

 Thank you,

 Leandro

Normally this means you haven't loaded the required nic driver or have loaded 
the wrong one...

The lspci tool is your friend, if you need help figuring out which nic driver 
you need.

-- 

--

Jerry McBride
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] ifconfig - SIOCSIFFLAGS: Cannot assign requested address

2006-12-11 Thread Leandro Melo de Sales

Hi Jerry, but the fact is that eth0 (the first ip, 192.168.1.2) is up...

Any other clue?

Leandro

2006/12/11, Jerry McBride [EMAIL PROTECTED]:


On Monday 11 December 2006 12:34, Leandro Melo de Sales wrote:
 Hi list,

 # ifconfig eth0:0 192.168.1.3
 SIOCSIFADDR: File exists
 SIOCSIFFLAGS: Cannot assign requested address

 My /etc/conf.d/net is correct:

 config_eth0=( 192.168.1.2 netmask 255.255.255.0
   192.168.1.3 netmask 255.255.255.0
   192.168.1.6 netmask 255.255.255.0
 )
 routes_eth0=( default gw 192.168.1.1 )

 When I start /etc/init.d/net.eth0 (which is a sym link to net.lo)
 everything seems to be ok, but when I type ifconfig I can see just eth0
 interface. So, I tried to execute the ifconfig command listen above but
I
 got that error. What is wrong?

 Thank you,

 Leandro

Normally this means you haven't loaded the required nic driver or have
loaded
the wrong one...

The lspci tool is your friend, if you need help figuring out which nic
driver
you need.

--

--

Jerry McBride
--
gentoo-user@gentoo.org mailing list




Re: [gentoo-user] ifconfig - SIOCSIFFLAGS: Cannot assign requested address

2006-12-11 Thread Xavier Parizet
Hello !

Do you check if  the requested address is free ?
This may be the source of your problem...
Try ping 192.168.1.3 to see if this address is already assigned.
-- 
the principal difference between the Free Software movement and the open
source activity is that open source is a development model and Free
Software is a social movement -- RMS

On Mon, December 11, 2006 20:28, Leandro Melo de Sales wrote:
 Hi Jerry, but the fact is that eth0 (the first ip, 192.168.1.2) is up...

 Any other clue?

 Leandro

 2006/12/11, Jerry McBride [EMAIL PROTECTED]:

 On Monday 11 December 2006 12:34, Leandro Melo de Sales wrote:
  Hi list,
 
  # ifconfig eth0:0 192.168.1.3
  SIOCSIFADDR: File exists
  SIOCSIFFLAGS: Cannot assign requested address
 
  My /etc/conf.d/net is correct:
 
  config_eth0=( 192.168.1.2 netmask 255.255.255.0
192.168.1.3 netmask 255.255.255.0
192.168.1.6 netmask 255.255.255.0
  )
  routes_eth0=( default gw 192.168.1.1 )
 
  When I start /etc/init.d/net.eth0 (which is a sym link to net.lo)
  everything seems to be ok, but when I type ifconfig I can see just
 eth0
  interface. So, I tried to execute the ifconfig command listen above
 but
 I
  got that error. What is wrong?
 
  Thank you,
 
  Leandro

 Normally this means you haven't loaded the required nic driver or have
 loaded
 the wrong one...

 The lspci tool is your friend, if you need help figuring out which nic
 driver
 you need.

 --

 --

 Jerry McBride
 --
 gentoo-user@gentoo.org mailing list





-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] ifconfig - SIOCSIFFLAGS: Cannot assign requested address

2006-12-11 Thread Mike Williams
On Monday 11 December 2006 17:34, Leandro Melo de Sales wrote:
 # ifconfig eth0:0 192.168.1.3
 SIOCSIFADDR: File exists
 SIOCSIFFLAGS: Cannot assign requested address

 My /etc/conf.d/net is correct:

 config_eth0=( 192.168.1.2 netmask 255.255.255.0
               192.168.1.3 netmask 255.255.255.0
               192.168.1.6 netmask 255.255.255.0
 )
 routes_eth0=( default gw 192.168.1.1 )

 When I start /etc/init.d/net.eth0 (which is a sym link to net.lo)
 everything seems to be ok, but when I type ifconfig I can see just eth0
 interface. So, I tried to execute the ifconfig command listen above but I
 got that error. What is wrong?

You executed the ifconfig command above.

# ip addr list dev eth0

ifconfig can't assign multiple addresses to one interface, but iproute2 can.

-- 
Mike Williams

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] ifconfig - SIOCSIFFLAGS: Cannot assign requested address

2006-12-11 Thread Leandro Melo de Sales

Well, I solve the problem as follows:

config_eth0=( 192.168.1.2 netmask 255.255.255.0
   192.168.1.3 netmask 255.255.255.0 label eth0:1
   192.168.1.6 netmask 255.255.255.0 label eth0:2
)

... and I think that ifconfig can assign more than one ip for a net
interface.

Thanks for all replies.
Leandro

2006/12/11, Mike Williams [EMAIL PROTECTED]:


On Monday 11 December 2006 17:34, Leandro Melo de Sales wrote:
 # ifconfig eth0:0 192.168.1.3
 SIOCSIFADDR: File exists
 SIOCSIFFLAGS: Cannot assign requested address

 My /etc/conf.d/net is correct:

 config_eth0=( 192.168.1.2 netmask 255.255.255.0
 192.168.1.3 netmask 255.255.255.0
 192.168.1.6 netmask 255.255.255.0
 )
 routes_eth0=( default gw 192.168.1.1 )

 When I start /etc/init.d/net.eth0 (which is a sym link to net.lo)
 everything seems to be ok, but when I type ifconfig I can see just eth0
 interface. So, I tried to execute the ifconfig command listen above but
I
 got that error. What is wrong?

You executed the ifconfig command above.

# ip addr list dev eth0

ifconfig can't assign multiple addresses to one interface, but iproute2
can.

--
Mike Williams

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] ifconfig - SIOCSIFFLAGS: Cannot assign requested address

2006-12-11 Thread Pawel Kraszewski
Dnia poniedziałek, 11 grudnia 2006 18:34, Leandro Melo de Sales napisał:

 config_eth0=( 192.168.1.2 netmask 255.255.255.0
   192.168.1.3 netmask 255.255.255.0
   192.168.1.6 netmask 255.255.255.0
 )

Well, it is a design flaw to have 3 addresses in overaping networks. From what 
I recall you may use only one non /32 address in a network. If the 
requirement is not met, problems arise:

Problem: You want to broadcast to 192.168.1.255.
Question: From which of these addresses should it origin?

Problem: Someone else broadcasts to 192.168.1.255.
Question: Which of these addresses should catch it? One? All?


I was taught that configurations of multiple-ip-per-net should look like:

 config_eth0=( 192.168.1.2 netmask 255.255.255.0
   192.168.1.3 netmask 255.255.255.255
   192.168.1.6 netmask 255.255.255.255
 )

Only the first has a regular mask (and therefore is source and target for 
broadcasts) - the rest has /32 mask and is only valid for unicast 
communication.

AFAIK this is true for both multiple cards on single network and multiple 
aliases on single card.

-- 
 Pawel Kraszewski
 www.kraszewscy.net

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] ifconfig - SIOCSIFFLAGS: Cannot assign requested address

2006-12-11 Thread Iain Buchanan
Hi all,

I've found that at some point, ifconfig has not been listing my aliases
correctly either.  I haven't changed /etc/conf.d/net for a long time,
and yet I only see eth0 when I run ifconfig, and not eth0:1 (which is
also created from /etc/conf.d/net)

However, if I run ifconfig eth0:1 from the command line, then ifconfig
displays it, so I don't know what's going on and why it's changed...

On Mon, 2006-12-11 at 23:35 +0100, Pawel Kraszewski wrote:
 Dnia poniedziałek, 11 grudnia 2006 18:34, Leandro Melo de Sales napisał:
 
  config_eth0=( 192.168.1.2 netmask 255.255.255.0
192.168.1.3 netmask 255.255.255.0
192.168.1.6 netmask 255.255.255.0
  )
 
 Well, it is a design flaw to have 3 addresses in overaping networks. From 
 what 
 I recall you may use only one non /32 address in a network. If the 
 requirement is not met, problems arise:

Not necessarily.  It may be necessary to have multiple addresses on the
same subnet.

 Problem: You want to broadcast to 192.168.1.255.
 Question: From which of these addresses should it origin?

The first one it finds?  A random one? don't know.

you could also say `ping I 192.168.1.2 b 192.168.1.255`

 Problem: Someone else broadcasts to 192.168.1.255.
 Question: Which of these addresses should catch it? One? All?

All of course, it is a broadcast after all :)

 I was taught that configurations of multiple-ip-per-net should look like:
 
  config_eth0=( 192.168.1.2 netmask 255.255.255.0
192.168.1.3 netmask 255.255.255.255
192.168.1.6 netmask 255.255.255.255
  )
 
 Only the first has a regular mask (and therefore is source and target for 
 broadcasts) - the rest has /32 mask and is only valid for unicast 
 communication.

good idea.

 AFAIK this is true for both multiple cards on single network and multiple 
 aliases on single card.

cya,
-- 
Iain Buchanan iaindb at netspace dot net dot au

The other day I... uh, no, that wasn't me.
-- Steven Wright

-- 
gentoo-user@gentoo.org mailing list