| Red Hat This forum is for the discussion of Red Hat Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
11-19-2009, 02:27 AM
|
#1
|
|
LQ Newbie
Registered: Nov 2009
Posts: 20
Rep:
|
RHEL 5 server / client problem
Hi all
I've been recently setting up a RHEL5 server and I have run into some problems. I can't ping the server's ip address. I have set static ip to 192.168.0.1 . Though when I go to ping the network I get a response telling me to try ping -b. I do that and I get no response. Though the server can ping to the client machines. Here's my static ip configuration:
Static IP Address: 192.168.0.1
Netmask: 255.255.255.0
Gateway: 10.10.0.1
Hostname: homer.simpson.org
Primry DNS: 192.168.0.1
If this helps the server has dhcpd running. The client machine runs Fedora 8.
I really need to get this problem fixed so that I can finish off LDAP.
Thanks in advance
|
|
|
|
11-19-2009, 04:15 AM
|
#2
|
|
Member
Registered: Dec 2005
Location: Lawrenceville GA
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216
Rep:
|
Your static IP and the gateway are on two different subnets. The gateway IP needs to be on the 192.168.0.0/24 subnet or you need to re-IP the server to be on the 10.10.0.0/?? subnet.
|
|
|
|
11-19-2009, 06:40 AM
|
#3
|
|
LQ Newbie
Registered: Nov 2009
Posts: 20
Original Poster
Rep:
|
Thankyou very much. I'll try it tomorrow and let you know how everything goes.
|
|
|
|
11-20-2009, 02:00 AM
|
#4
|
|
Member
Registered: Nov 2009
Location: India
Distribution: Xandros, Ubuntu
Posts: 74
Rep:
|
You definitely need to correct that Gateway IP address. However, just as a FYI, if you're pinging any host in your network say 192.168.0.2, it should have pinged - gateway IP address is irrelevant to reach a machine which is within your subnet.
|
|
|
|
02-02-2010, 02:49 AM
|
#5
|
|
LQ Newbie
Registered: Nov 2009
Posts: 20
Original Poster
Rep:
|
Sorry I haven't replied for ages but I have been doing a lot of configurations on the server like openldap and stuff like that. Changed it and just to clarify does that mean that I would now have to ping 192.168.0.1/24. Plus if i was testing to see if i could mount an nfs folder on a client machine would i have to change the following command:
mount 192.168.0.1:/home /home/ to
mount 192.168.0.1/24:/home /home/
|
|
|
|
02-02-2010, 04:38 AM
|
#6
|
|
Senior Member
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,115
Rep: 
|
Can you now ping Server from Client and vice versa?
If you can, setting up nfs share and accessing it from Client is not to much complicated. I even set up automounting nfs share for my notebook.
|
|
|
|
02-02-2010, 08:00 PM
|
#7
|
|
LQ Newbie
Registered: Nov 2009
Posts: 20
Original Poster
Rep:
|
No. the ping returns network host unreachable or it returns ping -b. Which is why i thought you would need to add the /24 .
|
|
|
|
02-02-2010, 09:08 PM
|
#8
|
|
Senior Member
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,115
Rep: 
|
Then you need to learn a networking one-on-one. I sugest you visit www.tldp.org and read few manuals and howto's
Using the 192.168.0.x subnet, set it this way:
Server:
IP: 192.168.0.1
netmask 255.255.255.0
gateway: 192.168.0.Y (where Y is numer of your network gateway/router to get outside of that subnet). this not necessary for now.
Client: 192.168.0.2
netmask 255.255.255.0
gateway: 192.168.0.Y (where Y is numer of your network gateway/router to get outside of that subnet). this not necessary for now.
Run as root "service network restart" on the Server (and on the client if you use Linux).
Now to ping client from server PC, run: "ping 192.168.0.2", and from the client type "ping 192.168.0.1". If you are not getting anything, you have something wrongly setup, either software or hardware.
Be aware that if you connect 2 PC's directly, without a network switch, you need to use crossover LAN cable.
|
|
|
|
02-03-2010, 03:02 AM
|
#9
|
|
LQ Newbie
Registered: Nov 2009
Posts: 20
Original Poster
Rep:
|
Accidentally posted twice ignore this reply
Last edited by Deathkarr; 02-03-2010 at 03:24 AM.
|
|
|
|
02-03-2010, 03:03 AM
|
#10
|
|
LQ Newbie
Registered: Nov 2009
Posts: 20
Original Poster
Rep:
|
My server is a dhcp server so I shouldn't neet to make a static ip for my client. Wouldn't this mean that my ip address for the server 192.168.0.1 will also be the Default gateway address. The network will have no internet
Last edited by Deathkarr; 02-03-2010 at 03:37 AM.
|
|
|
|
02-03-2010, 03:54 AM
|
#11
|
|
Senior Member
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,115
Rep: 
|
Yes, if your server acts as DHCP server PROPERLY, and you DO NOT have any OTHER DHCP server plugged in that physical network, it will. But since you are unable to ping between client and server, I suggest you set it up manually as I told you, so we can debug this problem.
Removing unknown variables is the best way to do that, and your networking knowledge is so low I can not rely you set that DHCP server properly.
By the way, 192.168.0.1/24 (or 192.168.0.1/255.255.255.0) is not proper IP address to use, that is logical representation of the IP, meaning IP/netmask since /24 replaces "255.255.255.0"
Last edited by DrLove73; 02-03-2010 at 03:56 AM.
|
|
|
|
02-03-2010, 05:41 AM
|
#12
|
|
LQ Newbie
Registered: Nov 2009
Posts: 20
Original Poster
Rep:
|
I think that my option router in the dhcpd.conf file might not be 192.168.0.1. Though if it was I would turn off the dhcp service and make the client and server both static using the settings you previously said. But would I leave the gateway blank or should I put in 192.168.0.1 for both server and client.
Both of my machines are Linux. I'm just using windows as a way to communicate to you guys.
|
|
|
|
02-03-2010, 11:17 AM
|
#13
|
|
Senior Member
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,115
Rep: 
|
Then take a look at your Network settings in Windows and just change IP for both server and client. You can use last number in IP address from 1-254, but I recommend 200 (192.168.1.200) for server and 201 (192.168.1.200) for client. Also, if you use router with DHCP, then both Linux units should be able to access internet when left in Automatic IP mode.
There is a possibility that you overlap 192.168.0.1 on your server with routers IP, so change IP's for both Linux-es as above and use gateway that Windows set's on his connection.
|
|
|
|
02-03-2010, 04:31 PM
|
#14
|
|
LQ Newbie
Registered: Nov 2009
Posts: 20
Original Poster
Rep:
|
I'm not understanding. Should i change option routers to server ip address. I also need to keep the server ip at 192.168.0.1 cause that's what i have my clients connect to for ldap.
Let me explain my network a bit better I have about 3 client machines all running linux and one server running rhel5. I have a network switch which connects to a larger switch and I can't get internet on the machines. I use the Windows machines to get internet help like through forums. The windows machines are not connected to the network
Last edited by Deathkarr; 02-03-2010 at 04:59 PM.
|
|
|
|
02-03-2010, 06:45 PM
|
#15
|
|
Senior Member
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,115
Rep: 
|
Umph. What is the IP of the router/gateway facing internet that is connected to your Linux network? If it is 192.168.0.1, then you have problem since the same IP is used for server.
Something bothers me. DO you or don't you have connection between clients and Server? Can you ping Server from clients? You are too much confusing to understand.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:52 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|