LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 10-12-2003, 02:33 AM   #1
c12ayon
LQ Newbie
 
Registered: Oct 2003
Posts: 28

Rep: Reputation: 15
what is SIOCADDRT?


i perform these commands:
# /sbin/ifconfig lo 127.0.0.1
then
#/sbin/route add -net 127.0.0.0
it shows
SIOCADDRT: Invalid argument <==what is this?
 
Old 10-12-2003, 04:43 AM   #2
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
I found this link on google.com/linux.

Are you using ipsec or something like that?

Remember, www.google.com/linux is your friend!
 
Old 10-12-2003, 07:03 AM   #3
pablob
Member
 
Registered: Apr 2003
Location: Madrid
Distribution: RHAS, Kubuntu, Solaris, TRU64
Posts: 381

Rep: Reputation: 31
the message appears because that route is already set up for you.
Try:
# route -v

and you'll see your routes.
Normally you don't have to setup the routing for the loopback interface (lo); at least on modern Unix.
(wow... an SCO lawyer in my door... for I said Unix without paying the bill !)
 
Old 10-12-2003, 07:06 AM   #4
daveo
Member
 
Registered: Sep 2003
Location: Holland
Distribution: Gentoo 1.4, Slackware
Posts: 196

Rep: Reputation: 30
Re: what is SIOCADDRT?

Quote:
Originally posted by c12ayon
i perform these commands:
# /sbin/ifconfig lo 127.0.0.1
then
#/sbin/route add -net 127.0.0.0
it shows
SIOCADDRT: Invalid argument <==what is this?
What kernel are you using? The reason why i'm asking is that linux kernels 2.2.XX do not need the route -net add command. Check with ifconfig if the route already exists.

 
Old 10-12-2003, 02:34 PM   #5
c12ayon
LQ Newbie
 
Registered: Oct 2003
Posts: 28

Original Poster
Rep: Reputation: 15
i use 2.4.20-6 kernel.
another question, is it important to update to newest kernel?
 
Old 10-12-2003, 03:02 PM   #6
daveo
Member
 
Registered: Sep 2003
Location: Holland
Distribution: Gentoo 1.4, Slackware
Posts: 196

Rep: Reputation: 30
Quote:
Originally posted by c12ayon
i use 2.4.20-6 kernel.
another question, is it important to update to newest kernel?
Sometimes, it really depends on what you are doing with your machine. If it's a server it might somethimes be a good idea to keep it up-to-date. Also note that there's allways newly added support for hardware and minor bug fixes...

Then you don't need to add the the 127.0.0.0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
SIOCADDRT: No such device klanux Linux - Networking 4 01-16-2010 08:51 PM
SIOCADDRT: No such device NooDleZ Slackware 2 06-05-2004 07:35 AM
SIOCADDRT: No such device! NooDleZ Linux - Networking 2 06-05-2004 01:19 AM
SIOCADDRT : Network is Unreachable nishi_k_79 Linux - Networking 1 10-16-2003 11:18 AM
SIOCADDRT: Network is unreachable shyam Linux - Networking 16 09-10-2003 07:00 AM


All times are GMT -5. The time now is 08:21 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration