LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   how to forward wlan0 to eth0? (https://www.linuxquestions.org/questions/linux-networking-3/how-to-forward-wlan0-to-eth0-737300/)

patcito 07-02-2009 04:22 PM

how to forward wlan0 to eth0?
 
I get internet from my wireless wlan0 and I would like to forward it to eth0 which is connected to another laptop. How can I do that? Thanks.

stress_junkie 07-02-2009 04:56 PM

The function that you want to enable is network routing. You want to turn your computer into a router.

Look up linux router in the numerous howto web sites. Google will help you to find these articles.

jschiwal 07-03-2009 05:26 AM

Please provide more details on your wireless and the computers. For example, do you have a wireless NAT router? Do you have a wireless and a NIC interface on the first computer? What kind of network interface do you have on your laptop?

If you have a wireless NAT router, but the laptop doesn't have wireless, then you can connect the computers via an ethernet cable (via switch or cross-over cable) and enable forwarding. In this situation you want the two computers on different subnets. If you want to share a wireless connection (and internet IP address), and don't have a NAT router, then you need to configure the firewall to perform the network address translation (NAT) in the first computer.


All times are GMT -5. The time now is 11:22 PM.