2 Static IPs one LinkSys router, how do i maximize

DeadSeaSquirrels

Senior member
Jul 30, 2001
515
0
0
I have 2 static IPs and one linksys 4 port router right now. i am currently using only 1 IP for the router and the router DHCPs to my 4 computers for their IPs. I was thinking about putting linux on one of those machines and then trying to do some web hosting stuff for fun. How do i connect the system so that one of the computers has a static IP (namely one of the two given to me by my ISP), and the others are still connected to the router. Furthermore, i want the one static IP system to be connected to the network as well. Is there a way to do this without getting any more hardware?
 

Scarpozzi

Lifer
Jun 13, 2000
26,391
1,780
126
If you have 2 static IPs, the router shouldn't have both of them as it probably only has one external port. Personally, I would "lock down" or block all ports other than port 80 to the linux box and run it as your webserver outside of your router. This will allow you to utilize the second IP address since it doesn't sound like you're using it right now.
 

DeadSeaSquirrels

Senior member
Jul 30, 2001
515
0
0
So I have he linux box connected to my DSL modem....then what? Where do I connect the router and the rest of my computers to? That is my big question, I have two different telephone/dsl jacks, but do I need to get another dsl modem?

I guess I am wondering how do I run my webserver "outside" the router, and also have the router serving the other 3 computers, without more hardware, or even with more hardware. What needs to be done?
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0


<< So I have he linux box connected to my DSL modem....then what? Where do I connect the router and the rest of my computers to? That is my big question, I have two different telephone/dsl jacks, but do I need to get another dsl modem? >>


dsl modem----->hub

hub takes that and feeds one to the linux box, and another connection to the router. linux box gets one ip, router takes the other ip and shares it among the other boxes connected behind the router.
 

calpha

Golden Member
Mar 7, 2001
1,287
0
0
Yes, it would, but that's why he has two static IPs.

If he wanted it to be both LAN and WAN, then he'd need two NICs in the Linux Box.
 

Abzstrak

Platinum Member
Mar 11, 2000
2,450
0
0
U only need one IP and to use a combonation of NAT and PAT. Or assign both IPs to the router and have different nat translations to an internal IP for the one going to the web server.

Of course this requires a decent router, not some POS from office max. Or you can build your own.