depending on how you hook it up, you may rnun into problems. if you use a storebought router, all you need to do is plug the linux box in and make sure it has a ip address set.
now if you are going to use your linux box AS the router, this is where things may get complicated.
for starters:
- make sure the dsl or cable modem supports ethernet so it can be plugged into the network card on the linux box
- if it does not support ethernet, hopefully it will support usb, and then you will need to do some research to get it working.
i myself have never set up my linux box as the router, but i have messed around with some of the settings.
if you have a spare box, i would recomend using
smoothwall [smoothwall.org] as a basic linux router, if not, use
the linux documentation project [tldp.org] for any help.
to keep it simple, get a hardware router from the store and everything should be as simple as plugging in the wires (After you set up the router, which is a no brainer also)