i'm try to setup a network in redhat 6.1. I have two computers,one hub, and one CISCO 677 router.

i have read all how to and i'm still lost

i can network the two computer up fine and even do the nfs.

but how do i  setup a router.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Okay, the 677 is an ADSL router and it should have been set up by your provider when your service was installed. What we need to know now is what kind of ADSL service you've got. The possibilities are:

1) A provider assigned static IP or static net block.

2) DHCP for a single IP or for more than one dynamically assigned IP's.
malfunctionAuthor Commented:
(dchp) what have is hooked you the the to computer and the router to the hub and both computer can get on the net.
but they can talk to ezch other(like ping or nfs) before i go the router(dsl line) i had the computers network to for years) just fine now i'm clue less
Bear with me, I'm trying to make sure I understand your set up. It sounds like you've got two computers interconnected via a hub and they can talk to each other just fine. The router is also connected to the hub and your service uses dhcp for address assignment.

More than likely, your DSL service only provides for a single, dynamically assigned IP address. If this is in fact the case, you're only going to be able to get one of the two to be able to reach the Internet (whichever one you enable DHCP on) and when it's in that configuration it won't be able to talk to the other computer. However, you can add a second ethernet card to one system and rearrainge your network a bit and have all of it work.

What you would do in this case is to conect the DSL router directly to the system with two ethernets (we'll call this "outside" interface), and connect the second ethernet (and call this "inside") on that box to the hub. You'd set the outside interface to use DHCP and set inside interface for one of the private networks. You'd also need to set up IPMasquerading on the box so that your inside systems can share the outside IP.

This kind of setup is discussed pretty well in the "IP Masquerade How-To".

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
malfunctionAuthor Commented:
let explain it a little better everything is hooked up to the hub.

i have net to both now thanks but now my apache won't work. And it worked before i started the network
Okay, let me make sure I understand what's transpired. Your machines get their IP's assigned from DHCP and you've now got both configured for DHCP. They can now talk to each other and can also reach sites on the Internet (by name, not by IP).

This should mean that the current IP address of the machines are different than they were previously, and consequently their hostnames are different. Running ifconfig on each system will tell you what the current IP's are and an nslookup on the IPs will tell you what the hostnames are.

My bet is that the "ServerName" directive in Apache is no longer correct. Apache cares (a lot) what the ServerName is and (per the docs) it must be the hostname that an nslookup of the system's IP would return. Also, if you have any IP address restrictions (AllowFrom/DenyFrom) in the Apache conf files they may also need to be modified.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.