LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-11-2003, 06:44 AM   #1
TiMo
LQ Newbie
 
Registered: Aug 2003
Posts: 9

Rep: Reputation: 0
Exclamation Question about my Local Network, HELP PLEASE


Hello , my problem is this:

I Have 3 Computers in my Home , all in a local Network, let me explain it:

1* Windows XP (Internet Server) : Address #200.200.0.1 : This machine i use to SHARE internet between the other pc's of my house, i do it using a HUB and WINGATE.

2* My Linux Box : Mandrake 9.1 : Address #200.200.0.2 : The problem i got here is, i CANT configure this pc to use my WINDOWS MACHINE (200.200.0.1) , I Dont know how to setup linux to use 200.200.0.1 as the INTERNET SERVER.

Now im connected on my linux box (200.200.0.2) but specificing in Mozilla that the proxy Server is 200.200.0.1 and works great. But in the Terminal Programs like : wget , lynx , BitchX , ftp etc...
i cant connect because i dont know how to SPECIFY that 200.200.0.1 is the proxy server for internet connection.

I cannot ping external webs only local IP'S:

Code:
[root@localhost network-scripts]# ping linuxquestions.org
ping: unknown host linuxquestions.org
[root@localhost network-scripts]#
Here is the ifconfig i got:

Code:
[root@localhost network-scripts]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:E0:4C:92:98:12
          inet addr:200.200.0.2  Bcast:200.200.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12871 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11962 errors:0 dropped:0 overruns:0 carrier:0
          collisions:3734 txqueuelen:100
          RX bytes:9339366 (8.9 Mb)  TX bytes:1465278 (1.3 Mb)
          Interrupt:22 Base address:0x4c00

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1902 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1902 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1094353 (1.0 Mb)  TX bytes:1094353 (1.0 Mb)
3* The Third machine is a Windows XP laptop Address : 200.200.0.3 i already configured it to resolve that 200.200.0.1 is the proxy for the internet connection and works great.

I Hope you can Help me with this , i will be very happy

Greetings Timo
 
Old 08-11-2003, 07:05 AM   #2
codecruncher
Member
 
Registered: Aug 2003
Location: Austria
Distribution: Fedora Core release 2 (Tettnang)
Posts: 37

Rep: Reputation: 15
Unless I am totally off today...(which is possible) then you mentioned my #1 enemy Proxy multiple times in your post..

A prosy server does nothing more than sending the HTTP request he receives from you, to the actual server, and then back to you. (with some caching in between...)
anyways... you cannot ping thourgh a proxy. You will need to configure your WinXP machine as an Gateway. AFAIK it can do that by sharing the network connection with the other network connection (not sure - it does work with W2k)
Then Windows will actually forward packets for your network.

But a proxy will not. A proxy only will forward http requests.

best regards
Klaus

PS: Why don't you use linux as a gatway (internet sharing) to begin with?
 
Old 08-11-2003, 07:10 AM   #3
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
u cant ping external servers. cos u use a proxy server. i advise u to use NAT. first uninstall wingate in xp box. rigth click on my network places choose properties. it will open a new window. right click on your internet connection, choose properties. choose advanced option and enable internet connection sharing. xp makes your LAN ip 192.168.0.1 also enables DHCP server. on linux box choose automatic assign ip from DHCP or BOOTP.
u may ping external server from linux box now.
 
Old 08-11-2003, 07:13 AM   #4
TiMo
LQ Newbie
 
Registered: Aug 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Hi man , does it work using HUB?

And can u explain me more detalied?

What shall i do in The server box (XP) and my linux box
Then the laptops what shall i do?

HELP ME PLZ
 
Old 08-11-2003, 07:26 AM   #5
codecruncher
Member
 
Registered: Aug 2003
Location: Austria
Distribution: Fedora Core release 2 (Tettnang)
Posts: 37

Rep: Reputation: 15
Well, it has nothing to do withe hub. But to answere your question:
Yes, it will work using a hub.

A hub will just connect your machines with each other. But one of them has to know what to do with packets which are not dealt with within your lan. Therefore you need a gateway (WinXP in your case).

When you go to network connections, you should be able right klick on the one Ethernet adapter which is connected to the internet. There should be a tab somewhere called sharing. Then simply share the connection with the other ethernet adapter.

Then reconfigure all your machines to use a DHCP server and all should be well.

But this really is a question for some windows forum....

best regards
Klaus
 
Old 08-11-2003, 07:28 AM   #6
TiMo
LQ Newbie
 
Registered: Aug 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Thank You very much

But the last Question, how i configure the dchp in my linux , is too dificult?
 
Old 08-11-2003, 07:35 AM   #7
codecruncher
Member
 
Registered: Aug 2003
Location: Austria
Distribution: Fedora Core release 2 (Tettnang)
Posts: 37

Rep: Reputation: 15
To get Linux to use the DHCP server, all you have to do (in RedHat):
Code:
edit the file /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
Depending on your distro, the file may be somewhere else.

best regards
Klaus
 
Old 08-11-2003, 07:37 AM   #8
TiMo
LQ Newbie
 
Registered: Aug 2003
Posts: 9

Original Poster
Rep: Reputation: 0
I got this:

Shall i put the same you put before?? deleting all the other variables?

Code:
[timo@localhost timo]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=200.200.0.2
NETMASK=255.255.255.0
NETWORK=200.200.0.0
BROADCAST=200.200.0.255
ONBOOT=yes
[timo@localhost timo]$
 
Old 08-11-2003, 07:42 AM   #9
codecruncher
Member
 
Registered: Aug 2003
Location: Austria
Distribution: Fedora Core release 2 (Tettnang)
Posts: 37

Rep: Reputation: 15
Yup, but make a backup of the file first. Just in case you need to fall back to this solution.
Make sure your WinXP does the connection sharing first.
The best way to do this is to try it with your notebook first. Then change your LinuxBox.

Have fun!

Klaus
 
  


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
local network OldToker Linux - Networking 2 03-06-2005 05:35 PM
two network cards - one for local network, one for http/vsftpd server scottster Linux - Networking 1 01-20-2005 08:52 PM
local network JJV Linux - Networking 7 03-11-2004 01:44 PM
Cannot resolve local addresses on local network danielgrenyer Linux - Networking 6 01-14-2004 11:03 AM
Can't get out of local network mjf17 Linux - Networking 6 06-01-2003 04:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:55 AM.

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