Networking Forums

Networking Forums > Computer Networking > Linux Networking > SIOCADDRT: No such device when setting lo

Reply
Thread Tools Display Modes

SIOCADDRT: No such device when setting lo

 
 
Joel Kreager
Guest
Posts: n/a

 
      02-13-2005, 10:59 PM
I have been trying to set up a local network to bridge through my dsl
connected computer. I am running redhat 9 but with a 2.6.10 kernel on
my main computer. Since I could not get any ping to return from my
second computer when pinging first, (I tried many things), I turned
off all the network setup /etc/sysconfig/network to off to do
everything by hand. (An emergency linux disk did return pings from
the second computer, but redhat 9 did not). When I run:

/sbin/ifconfig lo 127.0.0.1

I get:

[veryfine:~]# /sbin/ifconfig lo
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:29 (29.0 b) TX bytes:29 (29.0 b)

But when I run:

/sbin/route add 127.0.0.1

I get:

SIOCADDRT: No such device

I can run:

/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 gw 127.0.0.1

successfully, but I can't ping localhost.

Don't know if this is the reason I can't get a return from the redhat
host when I ping from my second computer, but I am suspicious.
 
Reply With Quote
 
 
 
 
Floyd L. Davidson
Guest
Posts: n/a

 
      02-14-2005, 01:45 AM
Joel Kreager <(E-Mail Removed)> wrote:
>I have been trying to set up a local network to bridge through my dsl
>connected computer. I am running redhat 9 but with a 2.6.10 kernel on
>my main computer. Since I could not get any ping to return from my
>second computer when pinging first, (I tried many things), I turned
>off all the network setup /etc/sysconfig/network to off to do
>everything by hand. (An emergency linux disk did return pings from
>the second computer, but redhat 9 did not). When I run:
>
>/sbin/ifconfig lo 127.0.0.1
>
>I get:
>
>[veryfine:~]# /sbin/ifconfig lo
>lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:1 errors:0 dropped:0 overruns:0 frame:0
> TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:29 (29.0 b) TX bytes:29 (29.0 b)
>
>But when I run:
>
>/sbin/route add 127.0.0.1
>
>I get:
>
>SIOCADDRT: No such device


Since you didn't give a device name, it is using "" for the name.
Read the man pages for ifconfig and route. Then try these steps in turn:

/sbin/ifconfig lo 127.0.0.1

# These are just for information:
/sbin/ifconfig lo
/sbin/route

ping 127.0.0.1 # Works because ifconfig sets a subnet route.

>I can run:
>
>/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 gw 127.0.0.1


If you have deleted the route that ifconfig provided, the command
to put it back is

/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 dev lo

You certainly don't need a gatway! But you do need to tell it which
interface the route applies to...

>successfully, but I can't ping localhost.
>
>Don't know if this is the reason I can't get a return from the redhat
>host when I ping from my second computer, but I am suspicious.


--
Floyd L. Davidson <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) (E-Mail Removed)
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
802.11 Broadcom device missing from device manager tinanewtonart Broadband Hardware 1 03-12-2009 08:18 AM
Device Available to connect Wired router from Wireless Device? Bakshi Network Routers 2 03-22-2008 01:55 PM
Unable to remove hidden device in device manager mario Wireless Networks 9 05-10-2007 05:25 PM
HELP! There's an Unidentified Device on my Device Manager! > > > Alan Windows Networking 2 05-02-2004 04:24 AM
Network device is gone -no such device Bryce Linux Networking 1 04-21-2004 05:53 PM



1 2 3 4 5 6 7 8 9 10 11