LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   server ifup: RTNETLINK answers: Network is unreachable problem (https://www.linuxquestions.org/questions/linux-networking-3/server-ifup-rtnetlink-answers-network-is-unreachable-problem-340915/)

evasion81 07-07-2005 08:03 AM

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

fr_laz 07-07-2005 08:07 AM

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 ;)

evasion81 07-07-2005 08:23 AM

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.

fr_laz 07-07-2005 08:30 AM

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.

evasion81 07-07-2005 08:40 AM

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

thanks again :)

fr_laz 07-07-2005 08:44 AM

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 ;)


All times are GMT -5. The time now is 08:14 AM.