Adding a new web server

Posted on 2003-12-01
Last Modified: 2010-03-17
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
Question by:dFs1978
LVL 43

Accepted Solution

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  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 (  You could then assign a static private IP such as to the linux machine and setup a static NAT on the router to forward web traffic to the web server from the outside.

Assisted Solution

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:
vi ifcfg-eth0
The file should look similar to this ( it will when we are done with it anyway):

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..


Author Comment

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. '' goes to machine "a", and '' 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?

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.


Expert Comment

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.

LVL 43

Expert Comment

ID: 9866109
Exactly right Chuck!
LVL 61

Expert Comment

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.

Expert Comment

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...

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

    Over the past few years, small business and home owners have become so dependent on internet that a need for redundancy has arisen.    What happens when your small business or home / home office loses its internet connection?  The results c…
Sometimes you have to pull out old tricks to get a new firewall to work… While we were installing a new Sonicwall at a customers site we found that sites they were able to visit before were not working.  It seemed random and we could not understa…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now