LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-06-2010, 09:13 AM   #1
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Rep: Reputation: 145Reputation: 145
zencafe - server to client pc, all working except client pc getting internt access


Hope this might be of interest for anybody setting up a small internet cafe network.

My problem is a network one , concerning zencafe (slackware type distro) and getting internet connection for the client computer, eigthy percent of the system works its this last bit thats giving me jip.

My set up is two computers a “server” with two etthernet cards . Eth0 ( is part of mainboard) on the server pc has a static IP of 192.168.1.250 and connects to a router of IP address 192.168.1.1
This card has an Wicd icon on the kicker pannel , netmask is 255.255.255.255 and have set gateway to 192.168.1.1
This card connects to the internet fine

Then on the server pc I have eth1 card in a pci slot. I have set IP address to 192.168.2.1
I have also set gateway to 192.168.1.1
There is no icon on the panel for this card but got it working editing /etc/rc.d/rc.inet1.conf
This card is attached to a switch and through the switch connects to a client pc having a static Eth0 IP of 192.168.2.249

Now from the server pc I can see the private connection of server 192.168.2.1 via switch to client
of 192.168.2.249 works – I can see the client icon and host name on cafe con leche GUI on the server.

I can also control the client from the server pc using cafe con leche. I.e it does a basic up and switch off mode.

My only problem is the client pc can not connect to the internet. Have tried every permutation of gateway address for client pc.I just can not get it to connect to internet.



Can somebody have a look at my basic settings and just give me a simple pointer please

Last edited by captain_sensible; 06-06-2010 at 09:16 AM. Reason: spelling corrections
 
Old 06-07-2010, 02:37 AM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Are you sure 192.168.2.1 is correct? 192.168.1.x and 192.168.2.x are usually considered a class C type of address with a subnet mask of 255.255.255.0 meaning that 192.168.2.1 and 192.168.1.1 are on different sub nets and is likely the reason they are not fully co-operating with each other... that style of networking can work but generally with special configurations. I would suggest trying a secondary IP on the server with an IP like 192.168.1.x and seeing if this work.

Alternatively (sorry my networking knowledge is not too great), you could try port forwarding to Eth0 for anything external as they are on the same box it should be able to forward but I am not certain on that one...

Last edited by r3sistance; 06-07-2010 at 02:41 AM.
 
1 members found this post helpful.
Old 06-07-2010, 10:03 AM   #3
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Original Poster
Rep: Reputation: 145Reputation: 145
R3sistance

Ok Thanks will try your suggestion about the network addresses. Basically my problem I guess is to get Eth1 stuff to route through Eth0.Didn't realise about the subnet , I choose a C network because I aim to have a set up of only around 5 computers.

Don't know details of port fordwarding but did read a bit about route tables & route command. Will try
your suggestion first.

cheers
 
Old 06-08-2010, 10:37 AM   #4
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Original Poster
Rep: Reputation: 145Reputation: 145
Thumbs up zencafe cafe con leche solved

r3sistance,

thanks very much ; I was probably just making things too complicated for myself. My router private address is 192.168.1.1 such just made my "server" a static address of 192.168.1.2 and my "client" pc 192.168.1.3

I just connected the pc's straight to the router ethernet to ethernet. Then when into billing controls of both server and client. The client host name was on the server control GUI, and could put client onto standby from server. Put gateway address as router address and netmask 255.255.255.0

Everything is working as it should with client accessing internet fine.

What I was attempting at first was to have a "private" server - client network; with the clients getting access from the server.

However since the main focus was about having a control and timer faciltity, and there will not be anything stored on the server of any security risk, this set up will do fine!
 
  


Reply



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
Nis Client On Centos not working with Suse Server . But works with Suse Nis Client jibinforu Linux - Server 2 07-23-2009 08:44 PM
Nis Client On Centos not working with Suse Server . But works with Suse Nis Client jibinforu Linux - Networking 1 07-13-2009 05:51 AM
Server and Client process using Openssl: Error: no client certificate available lokesh_c2004 Linux - Security 2 11-10-2008 08:30 AM
can not connect to my pureftp server from Linux client, but i can from windows client bonito SUSE / openSUSE 5 03-16-2005 09:45 PM
Refresh client user list at autentication client/server network. robertoneto123 Linux - Networking 0 11-11-2003 10:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:55 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
Open Source Consulting | Domain Registration