
Originally Posted by
penguin_to_bits
In Microsoft Windows, there's a thing called "Internet Connection Sharing". Here's how it works:
* You have two NIC's, let's say they're eth0 and wlan0. (Yes I give Linux names to my NIC's in Windows :P )
* You set up wlan0 as normal to access the wireless network and the internet.
* You go into the settings for wlan0 and enable "Internet Connection Sharing". At this point, it asks you to select a different NIC thru which the internet connection will be shared.
* You select eth0.
* Windows assigns an IP address of 192.168.0.1 to eth0.
* Windows sets up a DHCP daemon on eth0 so that other client machines can hook into eth0 and get an IP address.
* When you run an Ethernet cable from the eth0 port to another machine, the other machine will do a DHCP request and your machine will give it an IP address, default gateway, etc.. The default gateway is set to 192.168.0.1, meaning that eth0 is acting as a router.
* When eth0 receives packets to its own MAC address, but with a different IP address than its own, the packets get routed thru wlan0.
* eth0 also performs PAT and NAT.
Is there Linux software for doing this?
Also, totally unrelatedly, is there anyway of bridging two network connections at the commandline? I did it in Ubuntu one time before using the GUI but I'd like to know how to do it at the commandline.