configure linux router
Is it possible to setup a linux box to act as a hub/switch between two interfaces? I have an ubuntu box connected wirelessly on wlan0. I'd like to connect up another machine to the ubuntu boxes eth0 and have the other machine use that connect AND be on the same network as the ubuntu box. Is this possible?
Solution 1:
Hello "unknown" Google-User,
what you want is to set up a bridge rather than a router, if you want to span the subnet over lan and wlan. This will make your two NICs to behave like a switch.
Under Debian/Ubuntu, install the bridge-utils
package. Then create a Bridge and add NICs to it:
brctl addbr br0
brctl addif br0 eth0 wlan0
HTH