LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   SIOCADDRT: No such device (https://www.linuxquestions.org/questions/linux-networking-3/siocaddrt-no-such-device-212638/)

klanux 08-02-2004 05:09 PM

SIOCADDRT: No such device
 
Hi,

I have installed Mandrake 10 and I have problems with my eth0 configuration, and I can't connect to internet.
Please, could you help me?

I give you the information I know.
If you need more information please tell me, and I will send you.
I'm newbie...
thank you very much!!!
Clara

I use ADSL (wi-fi router, but by now I've taken off my PCI Adapter Wireless, just to avoid problems).
I have a "windows partition" and there I can connect to internet without any problem.

with 'ping "any url"' I obtain '"ping: unknown host "any url"'

with ping 192.168.2.1 I obtain "connect: Network is unreachable"

with ipconfig eth0 I obtain:
eth0 Link encap:Ethernet HWaddr 00:0E:A6:79:EB:7E
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Base address:0x9800

in /var/log/security.log I find:

ifplugd (eth0) [1045]: Using interface eth0 00:0E:A6:79:EB:7E with driver <sis900> (version: v1.08.07 11/02/2203)

ifplugd (eth0) [1045]: Using detection mode: SIOCGMIIPHY

ifplugd (eth0) [1045]: Inicialization complete, link beat detected.

ifplugd (eth0) [1045]: Executing '/etc/ifplugd/ifplugd.action eth0 up'.

dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 inverval 8 <27>Aug 2 16:31:17 dhclient: send_packet: Network is down

ifplugd (eth0) [1045]: client: Determining IP information for eth0...SIOCSIFFLAGS: Device or resource busy

ifplugd (eth0) [1045]: client: SIOSCIFFLAGS: Device or resource busy

dhclient: send_packet: Network is down

last message repeatec 4 times

ifplugd (eth0) [1045]: Killing child

network: s'està iniciant la interfície eth0: failed

mritch 08-02-2004 10:34 PM

looks like your ethernet device doesn't get an ip via dhcp. you may try assigning a fixed ip somewhere in the configuration files from you mandrake sys. anyway you can assign one manual with

"ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up"

so it will be 192.168.1.2. you should get results back when pinging that interface. if it's allright add a route to your gateway (will likely be your router).

"route add default gw 192.168.1.1" <- ip of your router.

try ping the router to see if he's reachable. if you've further questions send them in or have a look at www.tldp.org. there are a lot of useful howtos helping you getting various things to work. (linux network admin..)

sl mritch.

klanux 08-03-2004 07:42 AM

Hi!
Thank you very much for your advise.
I've tried but it still doesn't work:

with ifconfig eth0 192.168.2.2 netmask 255.255.255.0 up

it says:
SIOCSIFFLAGS: Device or resource busy
SIOCSIFFLAGS: Device or resource busy

if I do:
ping 192.168.2.2

it says:
64 bytes from 192.168.2.7: icmp-seq= ttl=64 time=0,126ms a lot of times, until it stops

what else could I do?

Thank you very much!
Clara

klanux 08-09-2004 08:31 AM

solved: SIOCSIFFLAGS: Device or resource busy
 
Hi,

I've managed to solve the problem:

I've changed the BIOS, disabling the option Plug & Play O/S (settint it to "No").
Then I've started Linux Mandrake 10 and I have been able to connect to internet, with no other changes.

Allthough I've a Windows "partition", I can enter Windows and everything works all right, by the moment.

Thank you very much to all!
I hope this will help anyone else,
Bye!

Clara

tgp1994 01-16-2010 08:51 PM

Quote:

Originally Posted by mritch (Post 1084924)
looks like your ethernet device doesn't get an ip via dhcp. you may try assigning a fixed ip somewhere in the configuration files from you mandrake sys. anyway you can assign one manual with

"ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up"

so it will be 192.168.1.2. you should get results back when pinging that interface. if it's allright add a route to your gateway (will likely be your router).

"route add default gw 192.168.1.1" <- ip of your router.

try ping the router to see if he's reachable. if you've further questions send them in or have a look at www.tldp.org. there are a lot of useful howtos helping you getting various things to work. (linux network admin..)

sl mritch.

OH. MY. GOD. THANK YOU SO MUCH! :D

I have a sort of custom debian distro here, and after lots of package changing, the network stuff stopped working. It should have been using DHCP, but I could only ping IP addresses, name resolution would not work. Thanks to you, those two steps got things in high gear :D

And sorry if I'm bumping an old thread.


All times are GMT -5. The time now is 05:13 AM.