Red Hat Help!

AMDPwred

Diamond Member
Mar 22, 2001
3,593
0
0
Some of you may have seen that I was trying to get my Linux box (RH 7.2) to connect to the web. I'm still having problems while trying to do this. I have a home network with 2 Windows boxes and my new Linux box. For now I just want to give it access to the web, I'm worry about hooking it up to my 2 Windows boxes later. If you need any info just ask. And remember, I'm a complete newbie!;)

I went into my router setup (on my Win PC) and got some settings:

WAN:
(MAC Address: 00-03-6D-15-2D-53)
IP Address: 65.97.16.203
Subnet Mask: 255.255.252.0
Default Gateway: 65.97.16.1
DNS: 24.30.225.17
24.30.225.18
0.0.0.0

Hope that helps some.
 

mcveigh

Diamond Member
Dec 20, 2000
6,457
6
81
could you explain your setup? it sounds like you are doing ICS through a windows box?
 

AMDPwred

Diamond Member
Mar 22, 2001
3,593
0
0


<< could you explain your setup? it sounds like you are doing ICS through a windows box? >>



I'm not sure really. I just have a cable modem going to a 4 port Linksys router, the 3 wires to 3 PCs. That's it. When I setup my Win boxes for internet sharing I just cloned the MAC address in my router settings and it worked.
 

mcveigh

Diamond Member
Dec 20, 2000
6,457
6
81
i'm not sure how to do it with a setup like you have. which pc is doing the internet sharing?
 

fastman

Golden Member
Oct 9, 1999
1,521
4
81
Are you behind a Router using NAT? Is the IP Address: 65.97.16.203 the one your ISP gave you, if so your Subnet should be 255.0.0.0 because the IP is class A.
 

AMDPwred

Diamond Member
Mar 22, 2001
3,593
0
0
No, no NAT here. Also, there isn't a single PC that distributes the connection to the others. Since I use a router they are all behind that.

At work today I was talking with our Unix guru and he said the kernel used it RH 7.2 isn't the best. He suggested I go back to 7.1 so I'm doing that now. He even gave me a copy of his distro of Linux. He put together the best existing parts, modified a few and created his own version of Linux. So I'll probably try that also.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
There is nothing wrong wtih 7.2. In fact the newer kernels should be faster than older ones (new and improved vm). Anyhow, you are not doing NAT through the linksys router? I bet you are. What is the ip address of one of your windows boxes? First 3 octets should be fine. Check to see if your router is a dhcp server for yout other machines.
 

AMDPwred

Diamond Member
Mar 22, 2001
3,593
0
0
It may be a little faster but from what our Linux guy told me some of the code isn't as tight as the last version (2.4.7 or something). I guess I'll have to take his word since he's been doing it since the beggining.

The IP (external) is the same for all of my boxes. The difference is the internal IPs. 192.168.1.100 and 192.168.1.101 are my Win boxes.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0


<< From what our Linux guy told me it is. I guess I'll have to take his word since he's been doing it since the beggining.

The IP (external) is the same for all of my boxes. The difference is the internal IPs. 192.168.1.100 and 192.168.1.101 are my Win boxes.
>>



That would be NAT. Now, do you remember if you assigned them or were they dynamically assigned? If they were dynamically assigned, look for a dhcp client (like pump or dhcpcd(?)) and configure that for the linux interface. If not, assign 192.168.1.102 to eth0. Personally, with that few machines I would use static ips.
 

AMDPwred

Diamond Member
Mar 22, 2001
3,593
0
0
When I setup my router I didn't assign anything. All I did was clone the MAC address and off I went.

I can't find anything like pump or dhcpcd on my PC. When I had 7.1 installed it auto detected my connection and did the config for me. Since it will do that I'll just wait for my download to finish and install that.
 

marat

Senior member
Aug 2, 2001
207
0
0


<<

<< could you explain your setup? it sounds like you are doing ICS through a windows box? >>



I'm not sure really. I just have a cable modem going to a 4 port Linksys router, the 3 wires to 3 PCs. That's it. When I setup my Win boxes for internet sharing I just cloned the MAC address in my router settings and it worked.
>>



OK. Your cable company gave you hostname that serves as your username. Your password is your cable modem's MAC address.

Cloning MAC on your PCs is a wrong way to go. BTW redhat 7.1 is a bad distro. Get mandrake 8.1 or Suse 7.3 - it will be best for you. You'll be amazed how easy they are to install.


If you want to connect Linux PC directly to cable modem:

Step1: Connect your Linux box directly to cable modem.

Step2: You have to enable DHCP on your Redhat box. Start linuxconf (as root) and goto networking, change setting on you network card to automatic/DHCP. Change hostname for THIS CONNECTION only to whatever hostname cable company gave you (I don't know about At&T, COX has something like cx2123456 ).

Don't read or you'll be confused on:
Your hostname for this connection only should be equal to cx1234566 (or whatever AT&T gave you). You can change global hostname to it, but sendmail will not work then, since ther it is not a valid hostname since there is no domainname
Don't read or you'll be confused off:

Step3: reboot.

step4: ping yahoo.com.

If you can reach it - you're in. If not - goto /etc/dhcp directory. There should be config file there. chage hostname in this config file (you'll see the commented directive).

Uff. Problems? Post

Edit: Sorry, if you have router it is even easier.

1. there should be settings for hostname in router - change that hostname to whatever AT&T provided. No need to change mac address for router.
2. Change you linux box to dhcp. Connect PC's to router. Make sure router is running DHCP. You are set :)
 

marat

Senior member
Aug 2, 2001
207
0
0


<< When I setup my router I didn't assign anything. All I did was clone the MAC address and off I went.

I can't find anything like pump or dhcpcd on my PC. When I had 7.1 installed it auto detected my connection and did the config for me. Since it will do that I'll just wait for my download to finish and install that.
>>



Do not go with Redhat 7.1. It has old kernel and bad gcc 2.96 compiler. You won't be able to compile most of the programs, plus a lot of bugs were fixed in newer kernels
 

AMDPwred

Diamond Member
Mar 22, 2001
3,593
0
0
I just did a reinstall of 7.2 and it did detect my settings (host names and everything) but I still can't hit the Net. The browsers just won't connect.
 

flippinfleck

Golden Member
Oct 24, 2000
1,090
1
0


<< ...BTW redhat 7.1 is a bad distro. Get mandrake 8.1 or Suse 7.3 - it will be best for you. You'll be amazed how easy they are to install >>


Please don't state an opinion as fact. Installation itself is not the only factor in what makes a good os, although it is the first step. I've got RH installed on my fileserver, and I haven't had any problems yet. But then again, I haven't taxed it thoroughly enough.


<< ...1. there should be settings for hostname in router - change that hostname to whatever AT&T provided. No need to change mac address for router.
2. Change you linux box to dhcp. Connect PC's to router. Make sure router is running DHCP. You are set :)
>>


Actually, if you already have an existing network set up with a router, you might want to think about static ip's for your local lan. Where you have only a few, keeping track should be relatively easy. Keep a pad of paper next to each computer, anytime you make a change jot it down. Put the computers name (hostname in linux), ip addy, and cpu type/speed at the top of each new page.

If you ever decide to host your own web site on your linux box, or possibly file server, you will appreciate the static ip being the same after every re-boot. Hell, you could even set just the linux box to static, and leave your windows boxes as dhcp clients.

But I digress... This is just my opinion. Someone else may come up with a different setup and it might be easier for you to implement.

I'll keep an eye on this thread if you have any question on what I've just said :)
 

flippinfleck

Golden Member
Oct 24, 2000
1,090
1
0


<< I just did a reinstall of 7.2 and it did detect my settings (host names and everything) but I still can't hit the Net. The browsers just won't connect. >>


Are you able to ping any websites by name? Or just IP...

Did your RH install set up as a static or dynamic IP? Is the default gateway setup correctly?