Share one IP address with a simple router
We have just moved into a new office and have been given our 'internet connection' in the following form:
- One Ethernet cable in the corner of the room
- An IP address with subnet mask 255.255.255.0
We have several computers, and are wanting to set up a simple LAN, all with internet access.
Given that our 'wan' cable is an RJ45 Ethernet cable, is it possible to use a normal home router, and plug in all the computers alongside the 'internet' cable into the router's switch ports?
The switch would need to have machines on a different IP subnet than the one we have been assigned, because we have only been granted one IP address. We must somehow use NAT to get everyone online at once.
Can a normal router handle this?
Most consumer routers have a WAN port, and will automatically do NAT for outgoing traffic. You should be able to plug the Internet cable into the WAN part, and then configure the router appropriately (it will use DHCP by default, if you need to assign a static address you'll need to configure that). Then configure the router's DHCP server for handing out addresses to LAN clients, and plug the computers into the LAN ports.
I wouldn't really recommend a "Home" router. At the very least, get yourself something like a Netgear FVS318 (a new one, mind you, not an old one). They're quite good for a half-dozen computers set up in branch-office configuration.
It will likely serve you quite well unless you're planning on doing some high-performance stuff that you haven't mentioned above. With something like the FVS I mentioned, there's no particular reason to further subnet your office location as everything will be behind a LAN.
If you happen to have $300-$400 and you're working with some network-savvy people, you can't really beat a Cisco ASA5505 with a 10 user license either.
Of course, all these configuration suggestions will change when IPv6 comes to town.
There are literally hundreds of products that will meet your requirements. Most Consumer Off The Shelf (COTS) or Small Office / Home Office (SOHO) include a "WAN" port for your external connection and "LAN" ports for your networked machines and will of course do NAT between them.
I recommend that you purchase a dedicated firewall/router and a dedicated switch instead of an integrated all-in-one COTS device for a few reasons. By using different devices you gain functional separation which is almost always a good thing. You increase the flexibility of your network design because you can upgrade or replace one or other without having to replace both, it will simplify troubleshooting and in my experience I have found that many COTS devices are very unreliable. You will find that the business definition of downtime is very different form the home network definition of downtime.
Features I like to look for in a SOHO or small business router would be:
- NAT
- Layer-3/4 filtering
- (with the ability of write custom rules or exceptions)
- the ability to write static routes
- Port Forwarding
- DHCP and DNS services
- a rudimentary way to monitor your network traffic
- remote logging
- vendor or a local re-seller support
- a decent warranty
VLAN tagging and VPN support are also real nice to have and you might find need of them in the future but they are by no means necessary.
Take a look at this question for features you might want to look at in a networking switch: What should I pay attention to when I'm buying a network switch?