Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

SIOCSIFFLAGS: Cannot assign requested address

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
26 posts
  • 1
  • 2
  • Next
Author
Message
commandline
n00b
n00b
User avatar
Posts: 70
Joined: Wed Oct 20, 2004 2:12 pm

SIOCSIFFLAGS: Cannot assign requested address

  • Quote

Post by commandline » Fri Aug 14, 2009 3:15 pm

hi all,
i recently upgrade my gentoo cause my old version was no longer supported.
i noticed that several config files has changed, like network enviroment.
i'm not able to start my eth0 interface, no more.

my network card is a dlink dge-530t and i used to enable sk98lin module in the kernel.
now i read that the new module for my card is sky2 and i added it too...
but when i do:

Code: Select all

ifconfig eth0 up
the response is this post subject:

Code: Select all

SIOCSIFFLAGS: Cannot assign requested address
the strange part is that if i do

Code: Select all

ifconfig -a
i can see that eth0 has the address i choose but the HWaddr is 00:00:00:00:00:00

i'm quite sure that /etc/conf.d/net is ok cause my eth1 interface is up.

i'm searching for a fix but i solve it yet...
thanks for help!
gentoo stage3-2008.0 kernel 2.6.28-hardened-r9
Top
cach0rr0
Bodhisattva
Bodhisattva
User avatar
Posts: 4123
Joined: Thu Nov 13, 2008 11:14 pm
Location: Houston, Republic of Texas

  • Quote

Post by cach0rr0 » Fri Aug 14, 2009 3:33 pm

can you post your lspci -n output please?
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Top
commandline
n00b
n00b
User avatar
Posts: 70
Joined: Wed Oct 20, 2004 2:12 pm

  • Quote

Post by commandline » Fri Aug 14, 2009 3:53 pm

sure, thanks:

lspci -n:

Code: Select all

00:00.0 0600: 8086:1130 (rev 04)
00:01.0 0604: 8086:1131 (rev 04)
00:1e.0 0604: 8086:244e (rev 11)
00:1f.0 0601: 8086:2440 (rev 11)
00:1f.1 0101: 8086:244b (rev 11)
00:1f.2 0c03: 8086:2442 (rev 11)
00:1f.3 0c05: 8086:2443 (rev 11)
00:1f.4 0c03: 8086:2444 (rev 11)
01:00.0 0300: 10de:0110 (rev a1)
02:0a.0 0200: 1148:4320 (rev 10)
02:0c.0 0200: 100b:0020
gentoo stage3-2008.0 kernel 2.6.28-hardened-r9
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Fri Aug 14, 2009 4:12 pm

This is exactly kind of error funtoo gives, using it ?
Top
commandline
n00b
n00b
User avatar
Posts: 70
Joined: Wed Oct 20, 2004 2:12 pm

  • Quote

Post by commandline » Fri Aug 14, 2009 4:14 pm

pardon?
gentoo stage3-2008.0 kernel 2.6.28-hardened-r9
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Fri Aug 14, 2009 4:20 pm

well, if you don't know funtoo, then you're not using it :D

post /etc/conf.d/net

check dmseg for error while loading the module or trying to bring it up ?
Top
commandline
n00b
n00b
User avatar
Posts: 70
Joined: Wed Oct 20, 2004 2:12 pm

  • Quote

Post by commandline » Fri Aug 14, 2009 4:22 pm

should i do

Code: Select all

dmesg | grep error
or something else?
gentoo stage3-2008.0 kernel 2.6.28-hardened-r9
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Fri Aug 14, 2009 4:31 pm

Code: Select all

dmesg | grep eth
would be better :)
Top
commandline
n00b
n00b
User avatar
Posts: 70
Joined: Wed Oct 20, 2004 2:12 pm

  • Quote

Post by commandline » Fri Aug 14, 2009 4:36 pm

meanwhile the /etc/conf.d/net:

Code: Select all

# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $

# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface
#
config_eth0=( "192.168.0.6 netmask 255.255.255.0 brd 192.168.0.255" )
config_eth1=( "192.168.0.7 netmask 255.255.255.0 brd 192.168.0.255" )

# For setting the default gateway
#
routes_eth0=( "default via 192.168.0.1" )
eth1 can be loaded without problems...
gentoo stage3-2008.0 kernel 2.6.28-hardened-r9
Top
cach0rr0
Bodhisattva
Bodhisattva
User avatar
Posts: 4123
Joined: Thu Nov 13, 2008 11:14 pm
Location: Houston, Republic of Texas

  • Quote

Post by cach0rr0 » Fri Aug 14, 2009 4:52 pm

commandline wrote:sure, thanks:

lspci -n:

Code: Select all

00:00.0 0600: 8086:1130 (rev 04)
00:01.0 0604: 8086:1131 (rev 04)
00:1e.0 0604: 8086:244e (rev 11)
00:1f.0 0601: 8086:2440 (rev 11)
00:1f.1 0101: 8086:244b (rev 11)
00:1f.2 0c03: 8086:2442 (rev 11)
00:1f.3 0c05: 8086:2443 (rev 11)
00:1f.4 0c03: 8086:2444 (rev 11)
01:00.0 0300: 10de:0110 (rev a1)
02:0a.0 0200: 1148:4320 (rev 10)
02:0c.0 0200: 100b:0020
Per the link in my sig, the correct driver is not 'sky2' but rather 'skge'

might be worth investigating at the very least - i dont know to what degree these drivers vary

go back into menuconfig, and look for

Code: Select all

Symbol: SKGE [=n]                                                                                                   │  
  │ Prompt: New SysKonnect GigaEthernet support                                                                         │  
  │   Defined at drivers/net/Kconfig:2176                                                                               │  
  │   Depends on: NETDEVICES && NETDEV_1000 && PCI                                                                      │  
  │   Location:                                                                                                         │  
  │     -> Device Drivers                                                                                               │  
  │       -> Network device support (NETDEVICES [=y])                                                                   │  
  │         -> Ethernet (1000 Mbit) (NETDEV_1000 [=y])                                                                  │  
  │   Selects: CRC32       

Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Top
commandline
n00b
n00b
User avatar
Posts: 70
Joined: Wed Oct 20, 2004 2:12 pm

  • Quote

Post by commandline » Fri Aug 14, 2009 5:04 pm

to be sure, in /etc/modules.autoload/kernel-2.6, i have already put both, sky2 and skge...
gentoo stage3-2008.0 kernel 2.6.28-hardened-r9
Top
cach0rr0
Bodhisattva
Bodhisattva
User avatar
Posts: 4123
Joined: Thu Nov 13, 2008 11:14 pm
Location: Houston, Republic of Texas

  • Quote

Post by cach0rr0 » Fri Aug 14, 2009 5:11 pm

i wonder if it might have to do with the fact that you don't have a routes_eth1 defined?

The error doesn't support this claim - but who knows, try adding a route for eth1


EDIT: also, I'm always paranoid about driver conflicts. I would only use the skge driver, and take the sky2 driver out.

lspci -k should show you which driver the card is using. If it isn't using skge then I'd definitely say let's nuke the sky2 driver and try with only skge available
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Top
commandline
n00b
n00b
User avatar
Posts: 70
Joined: Wed Oct 20, 2004 2:12 pm

  • Quote

Post by commandline » Fri Aug 14, 2009 5:12 pm

do you think it could be the matter? i'm going to try...
Last edited by commandline on Fri Aug 14, 2009 5:14 pm, edited 1 time in total.
gentoo stage3-2008.0 kernel 2.6.28-hardened-r9
Top
cach0rr0
Bodhisattva
Bodhisattva
User avatar
Posts: 4123
Joined: Thu Nov 13, 2008 11:14 pm
Location: Houston, Republic of Texas

  • Quote

Post by cach0rr0 » Fri Aug 14, 2009 5:13 pm

Possible. To be perfectly honest I'm not basing any of this on factual knowledge, and am simply going based upon my own experience and "hmm, that doesn't look right!"
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Top
commandline
n00b
n00b
User avatar
Posts: 70
Joined: Wed Oct 20, 2004 2:12 pm

  • Quote

Post by commandline » Fri Aug 14, 2009 5:19 pm

sorry but... the problem is with eth0, that has route_eth0 configurated
gentoo stage3-2008.0 kernel 2.6.28-hardened-r9
Top
commandline
n00b
n00b
User avatar
Posts: 70
Joined: Wed Oct 20, 2004 2:12 pm

  • Quote

Post by commandline » Fri Aug 14, 2009 5:28 pm

...and this is

Code: Select all

dmesg | grep eth

Code: Select all

Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methods
Driver 'ch' needs updating - please use bus_type methods
natsemi eth0: NatSemi DP8381[56] at 0xed000000 (0000:02:0c.0), 00:09:5b:20:20:87, IRQ 11, port TP.
udev: renamed network interface eth0 to eth1
skge 0000:02:0a.0: bad (zero?) ethernet address in rom
skge eth0: addr 00:00:00:00:00:00
eth1: DSPCFG accepted after 0 usec.
eth1: link up.
eth1: Setting full-duplex based on negotiated link capability.
gentoo stage3-2008.0 kernel 2.6.28-hardened-r9
Top
cach0rr0
Bodhisattva
Bodhisattva
User avatar
Posts: 4123
Joined: Thu Nov 13, 2008 11:14 pm
Location: Houston, Republic of Texas

  • Quote

Post by cach0rr0 » Fri Aug 14, 2009 5:40 pm

Code: Select all

natsemi eth0: NatSemi DP8381[56] at 0xed000000 (0000:02:0c.0), 00:09:5b:20:20:87, IRQ 11, port TP.
udev: renamed network interface eth0 to eth1
reckon we have a udev rule burning us?

what is:

Code: Select all

cat /etc/udev/rules.d/70-persistent-net.rules 
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Top
commandline
n00b
n00b
User avatar
Posts: 70
Joined: Wed Oct 20, 2004 2:12 pm

  • Quote

Post by commandline » Fri Aug 14, 2009 5:50 pm

Code: Select all

cat /etc/udev/rules.d/70-persistent-net.rules

Code: Select all

SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:09:5b:20:20:87", NAME="eth1"
gentoo stage3-2008.0 kernel 2.6.28-hardened-r9
Top
cach0rr0
Bodhisattva
Bodhisattva
User avatar
Posts: 4123
Joined: Thu Nov 13, 2008 11:14 pm
Location: Houston, Republic of Texas

  • Quote

Post by cach0rr0 » Fri Aug 14, 2009 6:20 pm

weird. the rule is doing exactly as prescribed, taking that MAC, and giving it eth1. see if commenting that out and rebooting gives you any joy, I don't like that it's starting off as eth0 and being realiased as eth1.
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Fri Aug 14, 2009 6:24 pm

looks like your card don't have a valid (or already used) mac address

you may try that (with skge drive, i don't know if skin98 would agree with that, oh and also, try rmmod sklin98 && modrpobe skge to be sure just one is loaded)

Code: Select all

ifconfig eth0 192.168.0.6 hw ether 00:90:f5:30:41:71 
Top
cach0rr0
Bodhisattva
Bodhisattva
User avatar
Posts: 4123
Joined: Thu Nov 13, 2008 11:14 pm
Location: Houston, Republic of Texas

  • Quote

Post by cach0rr0 » Fri Aug 14, 2009 6:33 pm

krinn wrote:looks like your card don't have a valid (or already used) mac address

you may try that (with skge drive, i don't know if skin98 would agree with that, oh and also, try rmmod sklin98 && modrpobe skge to be sure just one is loaded)

Code: Select all

ifconfig eth0 192.168.0.6 hw ether 00:90:f5:30:41:71 
basically I'm looking at this

Code: Select all


natsemi eth0: NatSemi DP8381[56] at 0xed000000 (0000:02:0c.0), 00:09:5b:20:20:87, IRQ 11, port TP.
udev: renamed network interface eth0 to eth1 
which is *exactly* what we would expect with such a udev rule

Code: Select all

SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:09:5b:20:20:87", NAME="eth1"
(note the matching MAC)

now, not being an expert on udev, my guess is the kernel wants the natsemi interface to be eth0, but udev wants it to be eth1
so if we remove (by commenting out) that udev rule, natsemi can stay on eth0, and skge can have eth1
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Fri Aug 14, 2009 7:05 pm

cach0rr0, basically it just do what we expect it to do, so i'm more worried by
commandline wrote:

Code: Select all

skge 0000:02:0a.0: bad (zero?) ethernet address in rom
skge eth0: addr 00:00:00:00:00:00
maybe that is related to your guess that kernel don't like udev swapping cards, 2 ways to dig for him :P
Top
Mike Hunt
Watchman
Watchman
User avatar
Posts: 5287
Joined: Sun Jul 19, 2009 11:01 pm

  • Quote

Post by Mike Hunt » Fri Aug 14, 2009 7:35 pm

Have a look here
Top
commandline
n00b
n00b
User avatar
Posts: 70
Joined: Wed Oct 20, 2004 2:12 pm

  • Quote

Post by commandline » Sat Aug 15, 2009 2:53 pm

goodmorning.

i tried all your advices but then i realized...
could the source of the problem be that i'm trying to assign two ip addresses that belong to the same ip class?

i tried to use two different classes, 192.168.0.100 and 10.0.0.100 and it works (enough).

well, i still have an issue:
1) at boot it continues to claim:

Code: Select all

SIOCSIFFLAGS: Cannot assign requested address
2) at prompt ifconfig displays that eth1 hardware address is still zero;
3) command:

Code: Select all

ifconfig eth1 10.0.0.100 hw ether 00:90:f5:30:41:71
again says:

Code: Select all

SIOCSIFFLAGS: Cannot assign requested address
4) and if i immediately repeat:

Code: Select all

ifconfig eth1 10.0.0.100 hw ether 00:90:f5:30:41:71
it finally works...

i'm a little bit astonished... :?
gentoo stage3-2008.0 kernel 2.6.28-hardened-r9
Top
commandline
n00b
n00b
User avatar
Posts: 70
Joined: Wed Oct 20, 2004 2:12 pm

  • Quote

Post by commandline » Mon Aug 17, 2009 11:01 am

a little up... :idea:
gentoo stage3-2008.0 kernel 2.6.28-hardened-r9
Top
Post Reply

26 posts
  • 1
  • 2
  • Next

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic