Gentoo Archives: gentoo-user

From: Ryan Viljoen <ravilj@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] SIOCADDRT: No such device
Date: Wed, 21 Dec 2005 19:55:32
Message-Id: deb20110512211150x6d595390o842baba24d51c648@mail.gmail.com
1 Ok here is my problem, I am unable to set the default route and gateway:
2
3 ----- ziig etc # /etc/init.d/net.eth0 restart
4 ----- * Unmounting network filesystems ...
5 ----- * samba -> stop: smbd ...
6 ----- * samba -> stop: nmbd ...
7 ----- * Stopping sshd ...
8 ----- * Stopping eth0
9 ----- * Bringing down eth0
10 ----- * Shutting down eth0 ...
11 ----- * Starting eth0
12 ----- * Bringing up eth0
13 ----- * dhcp
14 ----- * Running dhcpcd ...
15 ----- * Trying fallback configuration
16 ----- * 192.168.4.128
17 ----- * Adding routes
18 ----- * default ...
19 ----- * via ...
20 ----- gw: Unknown host
21 ----- * 192.168.4.1 ...
22 ----- SIOCADDRT: Invalid argument
23 ----- * Mounting network filesystems ...
24 ----- * samba -> start: smbd ...
25 ----- * samba -> start: nmbd ...
26 ----- * Starting sshd ...
27
28 Here is the result of ifconfig:
29
30 ----- ziig / # ifconfig
31 ----- eth0 Link encap:Ethernet HWaddr 00:03:0D:19:93:5D
32 ----- inet addr:192.168.4.128 Bcast:192.168.4.255 Mask:255.255.255.0
33 ----- UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
34 ----- RX packets:1158 errors:0 dropped:0 overruns:0 frame:0
35 ----- TX packets:15753 errors:0 dropped:0 overruns:0 carrier:0
36 ----- collisions:0 txqueuelen:1000
37 ----- RX bytes:133926 (130.7 Kb) TX bytes:2023411 (1.9 Mb)
38 -----
39 ----- lo Link encap:Local Loopback
40 ----- inet addr:127.0.0.1 Mask:255.0.0.0
41 ----- UP LOOPBACK RUNNING MTU:16436 Metric:1
42 ----- RX packets:12819 errors:0 dropped:0 overruns:0 frame:0
43 ----- TX packets:12819 errors:0 dropped:0 overruns:0 carrier:0
44 ----- collisions:0 txqueuelen:0
45 ----- RX bytes:968646 (945.9 Kb) TX bytes:968646 (945.9 Kb)
46 -----
47 ----- ziig / #
48
49 Okay I tried the following:
50
51 ----- ziig conf.d # route add 192.168.4.1
52 ----- SIOCADDRT: No such device
53
54 This however did not give an error:
55
56 ----- ziig conf.d # route add 192.168.4.1 gw 192.168.4.1
57
58 I can quite happily ping 192.168.4.1. Any ideas?
59
60 --
61 Ryan Viljoen Bsc(Eng) (Electrical)
62
63 "When you say "I wrote a program that crashed Windows", people just
64 stare at you blankly and say "Hey, I got those with the system, for
65 free". - Linus Torvalds, 1995
66
67 --
68 gentoo-user@g.o mailing list

Replies

Subject Author
[gentoo-user] Re: SIOCADDRT: No such device Ryan Viljoen <ravilj@×××××.com>
Re: [gentoo-user] SIOCADDRT: No such device Michael Kjorling <michael@××××××××.com>
Re: [gentoo-user] SIOCADDRT: No such device Hans-Werner Hilse <hilse@×××.de>