LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-07-2005, 09:03 AM   #1
evasion81
LQ Newbie
 
Registered: Feb 2004
Posts: 9

Rep: Reputation: 0
server ifup: RTNETLINK answers: Network is unreachable problem


hello,

i am fairly new to linux and am using rc2 on a vps (virtuozzo) machine. i am using it as a web/mail/ftp server for my websites. i have finally gotten things to how i want them and feel great about managing it.

recently i installed updates (using apt-get upgrade) to the machine and a few things broke. i am working my way through them and the latest thing is that iptables don't seem to work correctly. i try to setup rules using a bash script for vps machines (which worked great before my updates) and they don't work. here is a snippet of the response:

Code:
iptables v1.2.9: host/network `your_main_IP' not found
Try `iptables -h' or 'iptables --help' for more information.
looking through my logs i noticed these lines in boot.log that werent there before my updates and reboot:

Quote:
Jul 7 12:59:34 server ifup: RTNETLINK answers: Network is unreachable
Jul 7 12:59:34 server ifup: SIOCADDRT: Network is unreachable
i'm thinking that these must be related?? any help would be great....

thanks

stewart
 
Old 07-07-2005, 09:07 AM   #2
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

in the iptables error message it's written that your_main_IP is not found...
I think that in the script you should look for the occurences of your_main_IP and substitute them by your main IP, ie your address!

to know what is your address, just do ifconfig, you'll see all your network adapters and their IP. If you don't see any IP address, then you've got a problem
 
Old 07-07-2005, 09:23 AM   #3
evasion81
LQ Newbie
 
Registered: Feb 2004
Posts: 9

Original Poster
Rep: Reputation: 0
omg - you're right! i didn't spot that variable at the bottom! it now works - yipeeeeeeeeeeee! thanks for your help...

any ideas about the error messages in boot.log?

thanks, stewart.
 
Old 07-07-2005, 09:30 AM   #4
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
I'm not sure... this kind of messages are the answer you have when you try to use a network card that's not connected as an exemple... anyway, when you have these errors, you have no access at all to the network. since it's not your case, I think the errors are old ones.
 
Old 07-07-2005, 09:40 AM   #5
evasion81
LQ Newbie
 
Registered: Feb 2004
Posts: 9

Original Poster
Rep: Reputation: 0
i know i have a virtual address venet0:0 (as well as venet0)... could any of this be misconfigured?

thanks again
 
Old 07-07-2005, 09:44 AM   #6
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
don't know... I believe venet0 are vps virtual interfaces, but as I had never heard of vps before reading your post, I won't be very accurate on the subject
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
SiS900 Ethernet Problem "Network is unreachable" mertos Linux - Networking 7 04-04-2005 10:01 AM
RTNETLINK answers: Invalid argument j-me Linux - Networking 1 04-23-2004 04:38 AM
eth0 and eth1 RTNETLINK answers: File existslike RT trouble....need some helpHello pierrot Linux - Networking 0 08-09-2003 04:23 PM
nForce 2 network card & ifup problem dmellem Linux - Hardware 1 06-06-2003 01:45 AM
newbie problem:Network is unreachable nauman1 Linux - Networking 0 09-03-2001 12:04 AM


All times are GMT -5. The time now is 03:49 AM.

Main Menu
Advertisement
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