LinuxQuestions.org
Review your favorite Linux distribution.
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
  Search this Thread
Old 04-20-2010, 12:46 PM   #1
knight827
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Rep: Reputation: 0
eth0 not working but virtual hosts are


First of all hello everyone and thank you in advance to anyone who tries to help, I really appreciate you taking your time to help us newbies....

now on to my problem, Some time throughout the night last night eth0 stopped working entirely, I could not resolve dns or any thing. Oddly though eth0:1 and eth0:2 worked perfectly with a ping -c 10 -I eth0:2 xxx.xxx.xxx.xxx but still could not resolve domain names. My nameservers are good as i have tested them on my other machine. My setup had been working fine for quitte some time and i did not make any changes besides updating webpages, it is a server running Debian Lenny. Unfortunatly since eth0:1 was working for the most part i was trying to change the IP's in the config and accidentally killed the settings using webmin so I cant post to many details at the moment until my host for the dedicated gets my /etc/network/interfaces restored but in the meantime i have searched all over google to try to find an answer to the original problem but cannot so i would like to prepared for when the server is accessible again.
Once again thanx in advance.
 
Old 04-21-2010, 07:07 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,487

Rep: Reputation: 88
Hmm, I think you might have more complex problems that I suspect, but have you tried the following as root in a terminal:

Code:
/sbin/ifconfig eth0 down
/sbin/ifconfig eth0 10.0.0.8 netmask 255.255.255.0 broadcast 10.254.255.255 up
/sbin/route del default
/sbin/route add default gw 10.0.0.2 eth0
where

10.0.0.8 - the IP you want to assign to your machine
10.0.0.2 - the IP of the gateway / router that gets you to your ISP to have internet access

This is, to completely take eth0 down, and then get it back up on a fixed IP address...?
 
Old 04-21-2010, 07:43 PM   #3
knight827
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Original Poster
Rep: Reputation: 0
No i haven't. unfortunately it is on a remote server.
I installed bind9 and it seems to have got things working, but it still leaves me wondering what happened to begin with. I don't want to do anything where I might lose the limited connectivity I have.
 
  


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
Apache 2 httpd virtual hosts not working erics_acvw Linux - Server 2 12-29-2009 04:14 AM
Name Based Virtual Hosts not working stlyz3 Linux - Networking 12 10-18-2008 10:22 PM
Virtual Hosts in apache2-2.2.0-21 not working Stuart Morrow Linux - Server 2 10-14-2006 03:59 AM
virtual hosts stopped working jbjaaz Linux - Networking 1 06-09-2005 09:33 PM
Only one virtual hosts is working dienerk Linux - General 5 10-23-2004 04:36 PM


All times are GMT -5. The time now is 04:16 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration