PDA

View Full Version : connection timed out; no servers could be reached


absm1
2006-01-22, 04:03 AM CST
Hi

I have spent much time sweating over fedora and apache but no result. Whats needed is xp to start I.E. and point it to a domain on the development server. Nic on server has sub interfaces configured with separate ip’s for each interface. httpd is listening on port 80. Would like to setup ip based virtual hosting for each interface, with separate ip and domain name.

I am able to ping www.ecomm.net from xp but unable to run host www.ecomm.net not even from fedora box itself?

Output from host www.ecomm.net:
connection timed out; no servers could be reached

No chance of pointing I.E. to the domain.

Heres the setup from my understanding of fedora and apache:
Since a development fedora box is proposed, there’s no need for dns unless the box needs to resolve registered FQDN. In that case nameservers will be required. Instead /etc/hosts can do a poor mans dns role as attempted below.

Interfaces:
All are up, pingable and traceroutable.

/etc/hosts:
127.0.0.1 localhost.localdomain localhos
192.168.0.1 www.ecomm.net
192.168.0.4 desktop

/etc/hosts.allow:
ALL : 192.168.

/etc/hosts.deny
Empty. Nothing entered.

/etc/sysconfig/network:
NETWORKING=yes
HOSTNAME=www.ecomm.net

/usr/local/apache2/conf/httpd.conf:
<VirtualHost 192.168.0.1>
# ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /home/ecomm-online/public_html
ServerName www.ecomm.net
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
<Directory /home/ecomm-online/public_html/>
Options Includes FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>

Can anyone assist please! :confused:

gavinw6662
2006-01-22, 04:29 PM CST
well it looks to me that you are using the wrong IP. If you are on a C-class network of 192.168.0.0 then 192.168.0.1 should be your gateway IP - which means it is reserved for networking purposes (it is the default 'route' 192.168.0.1) - therefore you should change the IP on the box to be something like 192.168.0.2 or higher. In networking you always have 2 reserved IP's - .1 (or whatever the IP is of the gateway interface - considered to be the next upstream router) and the last IP which is what's called you broadcast IP. On a /24 network that would be .255 - but if you are on smaller networks - it is the last usable IP.

absm1
2006-01-23, 04:02 PM CST
Ip's updated
eth0 is set at 192.168.0.2
eth0:0 is set at 192.168.0.3
eth0:1 is set at 192.168.0.4

/etc/hosts:
Updated accordingly

httpd.conf:
Updated accordingly

All pingable, traceroutable

host resolution problems remains.
host www.ecomm.net:-
connection timed out; no servers could be reached