LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-10-2001, 09:42 AM   #1
JustinS
LQ Newbie
 
Registered: Nov 2001
Location: Seymour Johnson AFB, NC
Distribution: JAMD-Linux 0.0.6b
Posts: 10

Rep: Reputation: 0
Angry Home LAN/Internet Share?


I've been using WindowsME to share my cable connection with my wifes comp, also WindowsME (mine being the dual NIC card machine hooked to the Cable Modem and HUB) and all's been well.

I installed Linux (RH 7.2) and although I can look around the net just fine, if I try to tinker with eth1 (The card going to the HUB and then to her comp) neither of them work any more, not even in start up. I get a red FAILED and no longer can get on the internet.

eth0 is DHCP and that's about it, eth1 is another storie. I have tried to put in the IP address stuff from her winipcfg information instead of DHCP and still nothing.

ALSO, using KDE all is well, but when I fire up Gnome it tells me the domaine address or something can't connect. Somehow RH gave this computer the name JUSTINS, which is what it is in Windows but I didn't specify that in setting up RH. Can I change this? It may be the problem.

I really suck with line commands, but REALLY wanna learn Linux so I can CHUCK windows out the friggin' window.

Thank you if you can help,
Justin
 
Old 11-10-2001, 11:24 AM   #2
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
Cool hmmm

firstly, if i were you i would head over to this website. this will help you understand linux better and also give you some simple command line commands to get you started and moving round your system. you;ll need them sooner or later.

secondly, how have you set up your system? how did you set up dhcp and with what tool? what isp are you using?

have you set red hat to do ip masquerading (the thing that will allow your wife's computer to share your connection)? you won't be able to share a connection till this is set up (which can be a bit difficult). what are the type of cards that you have?

try typing
Code:
ifconfig -a
at a command prompt and post the results here.

Alex

P.S. you may want to look at the how-tos on linuxdoc.org .
 
Old 11-11-2001, 04:31 PM   #3
JustinS
LQ Newbie
 
Registered: Nov 2001
Location: Seymour Johnson AFB, NC
Distribution: JAMD-Linux 0.0.6b
Posts: 10

Original Poster
Rep: Reputation: 0
I am using network configuration to set up my ethernet cards (both RTL8139) the one connecting to the net is set up for automatic DHCP and automatic DNS. I use Road Runner cable internet (A Time Warner company).

The other card is just sitting there right now, every time I have it load on bootup or turn any of it on everything stops working.

is setting my computer up as a server something I should try? I'd LOVE to set it up as a Router. Is that the same thing as IP Masquerading?

I also ran ifconfig -a and this is what it gave me:

[root@JUSTINS Justin]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:48:54:85:B8:25
inet addr:66.26.59.139 Bcast:255.255.255.255 Mask:255.255.255.128
UP BROADCAST NOTRAILERS RUNNING MTU:1500 Metric:1
RX packets:2403 errors:0 dropped:0 overruns:0 frame:0
TX packets:803 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:401737 (392.3 Kb) TX bytes:135078 (131.9 Kb)
Interrupt:9 Base address:0x4000

eth1 Link encap:Ethernet HWaddr 00:48:54:85:C9:F3
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:5 Base address:0x6000

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:892 errors:0 dropped:0 overruns:0 frame:0
TX packets:892 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:57848 (56.4 Kb) TX bytes:57848 (56.4 Kb)

Hope you can make something out of it... I can't .. really .. lol .

Thanks for your time,
Justin
 
Old 11-12-2001, 12:09 AM   #4
b0b0
Member
 
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53

Rep: Reputation: 15
if you want to change your hostname (JUSTINS) just type:

hostname whatyouwantyourhostnametobe


here is what I am grasping...

you replaced your WinME box with rh72. the WinME box was running ICS. if this is correct you get to do what you would love to do. ICS is a router of sorts, actually a proxy service.

so you can do one of two things...
1) set up your rh72 box as a router running NAT (network address translation)
2) set up your rh72 box as a proxy server

linux docs

this site should get you going in the right direction, as i will be doing the same thing shortly. right now i use a cisco router, but am going to start working on my rh router/firewall...might use a BSD flavor though...

good luck and keep us posted

jason
 
Old 11-12-2001, 10:26 AM   #5
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
Thumbs up

that stuff you posted says that the kernel has detected both your cards and they are all chirpy (you don;'t have to start fiddling with modules and settings for them etc.).

the one you are connecting to the internet through seems to be eth0 since it says that traffic is passing through.

im afraid im not to knowledgable on setting up a network but yes ipmasquerading is what is needed to set linux up as a router (to the internet). you'll need all the other firewall things in the kernel set up as well which is a bit beyond my grasp. you will have to look at the HOW-TO guides on the website b0b0 gave you. that should help you on your way to networking

Alex
 
Old 11-12-2001, 11:38 AM   #6
JustinS
LQ Newbie
 
Registered: Nov 2001
Location: Seymour Johnson AFB, NC
Distribution: JAMD-Linux 0.0.6b
Posts: 10

Original Poster
Rep: Reputation: 0
Yes, eth0 is my internet card (via cable modem). When I boot to WinME the network kicks butt. I just can't seem to understand what I've got to do to do it in Linux.

What do I have to set up to use Linux as I do WinME? That's what I'm hunting down right now. I really don't care how I use it, so long as my wifes WinME comp can get on the net with out me having to be using WinME.

I've been trying to read up on it all and there are just TOO many ways to do it, and I don't know which one I need to use first, last or even at all.

Do I need to fire up SMB to use the files on her computer and visa versa once the intranet is up and running? Or do I need to do that before? Or do I need that at all?

Security isn't much of a concern since neither of us really do anything that's not replacable, so the simpler the better.

Thank you all for your input, Justin

 
Old 11-12-2001, 01:32 PM   #7
Ascii King
LQ Newbie
 
Registered: Sep 2001
Location: Canada
Distribution: Suse
Posts: 7

Rep: Reputation: 0
I am no expert, but it looks to me like you have not assigned an IP address to eth1. Are you sure that only eth0 is set up as DHCP?

Your ifconfig output says that eth0 is up and running and has an IP address of 66.26.59.139 . Notice, though that there is no address for eth1.

Could this be the problem? You would need to set the IP address for eth1 to whatever the gateway is set for on your wife's machine.
 
Old 11-12-2001, 03:35 PM   #8
JustinS
LQ Newbie
 
Registered: Nov 2001
Location: Seymour Johnson AFB, NC
Distribution: JAMD-Linux 0.0.6b
Posts: 10

Original Poster
Rep: Reputation: 0
When I set eth1 to DHCP both stop working .. failing at start up, and dissconecting both from communication. (Knocking me off the internet, and nothing to or from her machine).

I think I need to use something to act as the proxy server/router/firewall what ever ..

Still grinding away,
Justin

 
Old 11-12-2001, 05:57 PM   #9
b0b0
Member
 
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53

Rep: Reputation: 15
Yep, gotta set up that box as either a proxy server (fetches web pages, etc for the other boxes on the LAN) or as a router. You are only given one live IP address from your ISP, so it has to be give to your WinME/rh box. Either proxy or routing will accomplish your goal. Which one you pick is all dependent on what you want to do/learn.

Setting up the proxy will definitly be the easiest for now and you can play with the other cool stuff later. I am not sure about a proxy server for Linux, but I am positive that there is one out there...do a google search.

Keep us updated,
jason
 
Old 11-12-2001, 06:20 PM   #10
JustinS
LQ Newbie
 
Registered: Nov 2001
Location: Seymour Johnson AFB, NC
Distribution: JAMD-Linux 0.0.6b
Posts: 10

Original Poster
Rep: Reputation: 0
Then a proxy it is .. thank you for all your help .. I'll start looking for more spacific things related to setting up a proxy server ..

Can't WIAT to toss Gates' crap OS .. lol .. woohoo ..

Justin
 
Old 11-12-2001, 06:41 PM   #11
b0b0
Member
 
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53

Rep: Reputation: 15
Squid Cache

This is the squid, a caching/proxy server.

keep us posted on your progress.

jason
 
  


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
No Internet but LAN and VPN connect LAN work fine??? xavior Suse/Novell 7 11-09-2005 01:14 PM
Setting up gateway to share internet for private LAN muru Linux - Networking 6 09-17-2005 08:08 PM
share home boombastic Linux - Newbie 3 08-22-2004 10:04 AM
sharing internet over home lan! 94gsr Linux - Networking 13 05-04-2004 03:10 AM
How can I share my Internet connection with other LAN ms windows users emiliofil Linux - Networking 1 02-21-2004 10:01 AM


All times are GMT -5. The time now is 10:54 AM.

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