LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-03-2007, 11:16 PM   #1
kerinism1
LQ Newbie
 
Registered: Jun 2007
Posts: 8

Rep: Reputation: 0
What do I need to set up a network with multiple IP addresses?


Hey,

I hope someone can help me or point me in the right direction as to setting up a network.

I have set up my own company that offers web site design and hosting for the web sites.

My current setup is as such: a cable internet connection (with modem) which is connected to a linksys wrt54g router. The router has 2 home computers, a server computer, and a laptop (wireless) connected to it. The home/laptop computers are running windows while the server computer is running RHEL4. I am using one of the home computers to do the web site design on (using dreamweaver) and have the server computer set up to host the sites.

The server computer is set up to allow ftp (well, vsftp) from my home computer that I do the design on. My server computer is set up and running my web site and is ready for other sites to be hosted on it.

With my Internet connection, my plan from my ISP has given me 2 static IP addresses to use. I can get more static IP's from them if required (for a fee, of course). But right now, I have only been able to figure out how to set up my router to use one of my IP's.

Because of my business, I want to be able to offer my clients the ability to do e-commerce, which would include the ability to accept credit card transactions through their website. From what I understand, for each website that requires credit card transactions, they would need to have access to 2 IP addresses; one to access the web site and another just for the credit card transaction. So, this could mean that I would have multiple IP addresses in the future as need be.

So, my question is this: What hardware do I need between my cable modem and my various computers to support having multiple IP addresses? Would a switch work? Or are there routers out there that allow you to set them up with multiple IP's and forward them to the server?

Or maybe another solution would be to set up another computer to act as a router? I have an old, spare computer at home that is doing nothing that I can set up and do nothing but route to the other computers. The only problem with this computer is that it has only one NIC in it, so if I went this route, I think I would need to get another NIC, right?

Please let me know if anyone can help me or point me in the right direction for info on setting this up.
 
Old 09-04-2007, 04:33 AM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by kerinism1 View Post
So, my question is this: What hardware do I need between my cable modem and my various computers to support having multiple IP addresses?
Quote:
Originally Posted by kerinism1 View Post
Would a switch work?
Yes. Put it between the cable modem & the wrt54g. Then connect the box associated w/ the 2nd IP to another port on the switch, preferably through another router or firewall. I have a hub between my DSL modem & my LAN. Whenever I want to use one of my other 2 IP's, I connect to it. Just remember, by the act of 'Net connection sharing, the wrt54g is providing substantial firewall protection.

Quote:
Originally Posted by kerinism1 View Post
Or are there routers out there that allow you to set them up with multiple IP's and forward them to the server?
Although I couldn't name one, I'm sure there are. The Q is, how much do they cost?

Quote:
Originally Posted by kerinism1 View Post
Or maybe another solution would be to set up another computer to act as a router?
That could work.

Quote:
Originally Posted by kerinism1 View Post
I have an old, spare computer at home that is doing nothing that I can set up and do nothing but route to the other computers. The only problem with this computer is that it has only one NIC in it, so if I went this route, I think I would need to get another NIC, right?
At least 1 add'l, maybe 2 or 3 -- depends on how many sub-nets you think you need. The routing table/commands for this solution could get complicated.

Last edited by archtoad6; 09-04-2007 at 04:37 AM.
 
Old 09-04-2007, 05:12 AM   #3
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221

Rep: Reputation: 30
Quote:
My current setup is as such: a cable internet connection (with modem) which is connected to a linksys wrt54g router. The router has 2 home computers, a server computer, and a laptop (wireless) connected to it. The home/laptop computers are running windows while the server computer is running RHEL4. I am using one of the home computers to do the web site design on (using dreamweaver) and have the server computer set up to host the sites.
As you said your ISP gave you 2 IP's .One out of them you allocated to your dsl modem/router (dsl modem/router Model ? )..now your dsl modem/router is than connected to linksys ( what is the IP's your are using for configure lnksys ?.ie. lan side IP)...and from linksys your both the machines are connected is it like that ?
Now
what is the IP you got at Linksys wan port ?
what are the IPs of you machines connected to linksys ?
Is your website accessible from outside ?(afaik you need port forwarding in dsl and linksys)
 
Old 09-04-2007, 09:44 AM   #4
kerinism1
LQ Newbie
 
Registered: Jun 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Yes, my connection goes like this: internet --> cable modem --> router -->2 home computers, laptop and server computer.

The router has been set up with one static IP. The computers have all been provided their own internal IP from the router. Any program that needs to listen on a specific port, I have listening on the internal IP along with the appropriate port. The router is also set up to port forward and the website is accessible from outside.

Last edited by kerinism1; 09-04-2007 at 09:45 AM.
 
Old 09-04-2007, 07:41 PM   #5
kerinism1
LQ Newbie
 
Registered: Jun 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Yes, my connection goes like this: internet --> cable modem --> router -->2 home computers, laptop and server computer.

The router has been set up with one static IP. The computers have all been provided their own internal IP from the router. Any program that needs to listen on a specific port, I have listening on the internal IP along with the appropriate port. The router is also set up to port forward.
 
Old 09-05-2007, 03:15 AM   #6
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
I'm no expert on this, and it may be different with cable than DSL, but I have a block of 8 ip addresses. xxx.xxx.233.136/29. I set the wan ip of the router to 142, the internal IP of the router to 141. I then set the routers routing table to say that xxx.xxx.233.136/29 was accessible via its ethernet interface.

Each computer I wanted to have visible externally I just set the address to xxx.xxx.233.13{7,8,..}, set the netmask to 255.255.255.248, and the gateway to xxx.xxx.233.141, and it all just worked.

That was just with a plain cheap bog standard router.
 
Old 09-05-2007, 12:15 PM   #7
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Rep: Reputation: 61
Quote:
Originally Posted by kerinism1 View Post
Hey,
Or are there routers out there that allow you to set them up with multiple IP's and forward them to the server?
Why yes there is. Check out the LInksys RV042 or RV082. You could also, get another internet connection, such as a dsl line so your network can stay redundant. Which is good for website hosting / ecommerce transactions.
 
Old 09-06-2007, 12:50 AM   #8
kerinism1
LQ Newbie
 
Registered: Jun 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Hey wh33t,

I looked at those 2 routers you mentioned and am not sure they will not work, either. I only have the one connection from my ISP and they are providing me the 2 static IP's through the one connection. Maybe I am missing something here and am getting confused.

My ISP has given me the IP's 1.2.3.4 and 1.2.3.5 with all the other necessary setup info. Right now, when I go to configure my router, I can only enter 1.2.3.4 into the Static IP section.

I hope this makes sense. If not, I am also going to look at the possibility of an NIC with multiple ports so that I can set up my old computer as a router
 
Old 09-06-2007, 12:56 AM   #9
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Rep: Reputation: 61
Oh yea, I get what your saying. I was just saying if you got a second modem, you could easily use the two IP's with a dual port router.

Sorry, i must have not made that clear. As for taking your little linksys router there, I don't think you will find a way to bind it to two IP's, but you might try flashing it with a linux firmware. I can see that possibly helping you. Look up DD-WRT or openwrt.
 
Old 09-06-2007, 08:11 AM   #10
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Don't try 2 modems on the same same connection, it:
  • probably won't work
  • may confuse the the equipment @ your ISP
  • (outside possibility) might piss off your ISP

The easiest way, not necessarily the cheapest, is to get a switch & another router. Connect the switch (uplink/WAN port) to the modem & the 2 routers to (regular/LAN ports on) the switch. You have static IP addresses, so configure the new router w/ the 2nd IP -- "1.2.3.5" in your example.

If you trust its firewalling ability, you can omit the 2nd router & connect a single computer to the switch. You still have to set it up w/ a static IP, again "1.2.3.5".


Yes, you can probably find a, probably commercial, router that will handle 2 external IP's "out of the box". I suspect that this will cost more in money, search time, & learning curve than the switch/2nd router solution.

Yes, you can flash the WRT55G, but how hard will it be to set up afterwards. No money cost, but there is still the learning curve. Also, I believe the "standard" WRT55G has been cheapened from the original ver. by including less RAM & flash memory. Will the one you own hold & run the Linux you need to make this work?
 
Old 10-06-2007, 05:33 AM   #11
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
What did you decide to do?
 
  


Reply



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
how to set network addresses for running NISTNET on red Hat Linux 9.0 apimple2002 Linux - Software 5 06-30-2005 06:42 AM
Set up Windows network with multiple access points newuser455 General 8 02-02-2005 05:12 PM
how do i group multiple global ip addresses on a single network iterface? shinacalypse Linux - Networking 3 09-08-2003 06:07 AM
how to set network addresses for running NISTNET on red Hat Linux 9.0 apimple2002 Linux - Software 0 08-08-2003 09:36 AM
Multiple IP addresses on one network card jeucken Linux - Networking 1 10-04-2002 07:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:17 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration