Solved

Adding a new web server

Posted on 2003-12-01
9
292 Views
Last Modified: 2010-03-17
Hi,
We have an ADSL line with several satic IPs. Our system works as follow:
Internet -> Router(Cisco 827 Series) -> Linux Machine (Web Server) -> 3Com 3300 XM switch -> Hubs -> Workstations.

The configuration may look weird for some people, but thats the way it is now and so far it doesnt have any problem. We have tried to connect from the router to the switch, but it doesnt work, hence no workstation is able to connect to the internet.

With this configuration, the router has one IP and the linux machine has one as well.

The questions are:
1. How do we re-arrange the configuration so that the switch connects directly to the router and the web server is treated as one of the workstation with a static IP (not local IP)??

2. If i want to have another web server, how do I assign a static IP the new server?? I tried to hardcode it, but it didnt work??

Thanks in advance
 
0
Comment
Question by:dFs1978
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 43

Accepted Solution

by:
JFrederick29 earned 150 total points
ID: 9861430
Physically, connect the router into the switch along with the Linux Machine and hubs/workstations.  This will allow communication between all devices.  

Internet ------- Router--------
                                        |
                                        |
                                 3Com switch
                             |                      |
                             |                      |
                  Linux Machine         Hubs/workstations

Logically, you should have one static IP from your ISP assigned to one ethernet interface on your router and the other a private IP address such as 192.168.0.1.  You then need to run NAT on your router to provide internet access to the devices on the local network.  The gateway address on the clients should be the internal interface of the cisco router (192.168.0.1).  You could then assign a static private IP such as 192.168.0.2 to the linux machine and setup a static NAT on the router to forward web traffic to the web server from the outside.
0
 

Assisted Solution

by:chucksmith
chucksmith earned 150 total points
ID: 9863769
I agree with what was stated above, furthermore, in regard to statically assigning an ip to a linux box. It depends what Linux box you are running. I'll give an example of redhat linux 9.  You want to go to the following location on the machine (I am assuming it is already built and that everything else - including hardware is working properly). Login, gain su access then go to /etc/sysconfig/network-config/ . Perform an ls and you should see a file, similar to this:
ifcfg-eth0
type
vi ifcfg-eth0
The file should look similar to this ( it will when we are done with it anyway):
DEVICE=eth0
BOOTPROTO=none
BROADCAST=10.10.1.255
IPADDR=10.10.1.3
NETMASK=255.255.255.0
NETWORK=10.10.1.0
ONBOOT=yes
USERCTL=no
PEERDNS=no
GATEWAY=10.10.1.1
TYPE=Ethernet

Now, you will need to enter in the appropriate GATEWAY, IPADDR, and NETMASK. Everything else should be similar. You could restart the network services and possibly get away without a reboot, but reboot just to be safe (no telling what we might leave lingering - so go ahead and do a nice clean boot).  Now, when the box comes up, you should be able to ping other machines on the lan. Next is DNS and such, but let's keep it simple and restricted to getting the interface on the network and able to ping. Once we get that done we can move on to bigger and better things....

Let us know how things are progressing..

Chuck
0
 

Author Comment

by:dFs1978
ID: 9864124
Hi all,
Thanks for the replies. I have yet to try the suggested answers, but I can see that I'm going to have a problem assigning the web server. Just like I said earlier, that I want to have another web server... which means two machines that hosts two different web sites. One domain ie. 'www.a.com' goes to machine "a", and 'www.b.com' goes to machine "b". If I have to set the NAT that listens to port 80, how does the router know which domain for which machine?

Thanks
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:chucksmith
ID: 9866054
I'm not all familiar with the Cisco 827, but my guess is that you might have to purchase another ip address from your isp. Then add it to the Cisco as a secondary ip on the external side and then map that address to the second web server.

Chuck
0
 
LVL 43

Expert Comment

by:JFrederick29
ID: 9866109
Exactly right Chuck!
0
 
LVL 62

Expert Comment

by:gheist
ID: 9876946
actually you can have NameVirtualHost 's on same webserver with static address to serve multiple named sites.
if you need other platform you can use proxy module of apache, shipped with Linux, in reverse-proxy mode same way.
if you ask another IP address, Cisco will handle it fine.
0
 
LVL 2

Expert Comment

by:Xtreme-X
ID: 9999269
Virtual hosting using Host Headers is fine n requires only 1 IP......

Later on u could always go in load balancing or eh... Clusters :D


just a suggestion...
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This solves the problem of diagnosing why an internet connection is no longer working. It also helps identify the likely cause of the lost connection if the procedure fails to re-establish your internet connection. It helps to pinpoint the likely co…
Cable Modem Provisioning from DPoE compliant server  This Article is to support CMTS administrators to provide an overview of DOCSIS compliance configuration file, and to provision a cable modem located at customer place from a Back office serve…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question