LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 02-14-2008, 09:35 AM   #1
derekolive
LQ Newbie
 
Registered: Feb 2008
Posts: 4

Rep: Reputation: 0
CENTOS 3.9 Server can see localhost and DNS Name but not IP Address


I have just installed CENTOS 3.9 apparently succesfully.

I appear to have vsftpd and telnet "on" after doing some config stuff.

I can ping out from the server to other servers so am definately on the network.

I can ping localhost and full DNS name from the server itself but NOT the IP address of the server itself.

I can not ping, telnet or ftp to the server from elsewhere using either DNS name or IP address.

Any ideas please?
 
Old 02-14-2008, 10:04 AM   #2
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
have you configure any firewall?
This problem is quite odd, since you can ping yourself with your domain name.
This server is just setup or used for long time?
 
Old 02-14-2008, 10:19 AM   #3
derekolive
LQ Newbie
 
Registered: Feb 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Brand New Installation - No Firewall

As the title suggests... I have only just completed the installation from a CD created off the WEB a few days ago. I purposely did NOT activate a firewall during the installation - there was an option to do so.

I agree it is a bit strange, and hence my question on the forum!!

I will probably try another install from scratch, but this is already my second install with the same issue occuring. I just wondered whether I needed to do anything in any of the networking config files that I was unaware of.
 
Old 02-14-2008, 10:52 AM   #4
derekolive
LQ Newbie
 
Registered: Feb 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Partly Solved!!

OK - I found some stuff about network configuration and started to look at ifconfig and the /etc/sysconfig/network-scripts/ifcfg-eth0 file.

What was wierd was that ifconfig reported the IP address incorrectly, but the ifcfg-eth0 file had the correct value.

I used ifconfig -a x.x.x.x to try and set the correct IP address and BINGO!! I can now ping the server both with DNS name and IP address.

I had to add a user in /etc/passwd in order to ftp succesfully ( root would not work ).

telnet connects to the login screen OK but I can't login as root or as the user I added. I'll keep digging on this one unless anybody has the answer before me!!
 
Old 02-14-2008, 11:11 AM   #5
derekolive
LQ Newbie
 
Registered: Feb 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Smile Solved

I decided to use sshd instead of telnet - every body says one should do this anway - and connecting via a sshd client worked first time so I can now remotely connect and ftp.

I love it when a plan comes together!!
 
  


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
LXer: CentOS 4.6 Server Setup: LAMP, Email, DNS, FTP, ISPConfig LXer Syndicated Linux News 0 01-10-2008 03:40 PM
LXer: CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig LXer Syndicated Linux News 0 12-06-2007 03:21 PM
CentOS DNS fails on internal network (works on server) ucffool Linux - Networking 1 05-31-2007 02:36 PM
Dedicated Server with CentOS 4.x and DNS Xoleum Linux - Newbie 3 09-10-2005 02:48 PM
cannot use DNS server except on localhost lekien Linux - Networking 1 06-29-2003 08:09 PM


All times are GMT -5. The time now is 06:43 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