The operative word here is "share", and as such the basic hardware requirements would be:

1) A broadband modem with an ethernet out connection.
2) A wired/wireless multiported router.
3) Network cards wired/wireless in each machine.

The rest is software.