I am running debian, and I was wondering how I would set up a bridge between ethernet
I am running debian, and I was wondering how I would set up a bridge between Ethernet and wifi so I can update a computer that does not have wifi.
Code:
lspci |
If you have a your wifi network card setup with an IP address and it's working (you can ping your host from another machine and vice versa)
AND you have your ethernet card setup with an IP address. (I am gonna assume that this card is connected somehow to the internet) and you can ping some address out in the ether. Then all you need to do is turn on "IP FORWARDING" By default - most modern Linux's have IP forwarding turned off. You can check by Code:
cat /proc/sys/net/ipv4/ip_forward To turn it on temporarily ... Code:
echo 1 > /proc/sys/net/ipv4/ip_forward If you are using ipv6 then you should search for the (different) details with regard to ipv6 forwarding. Of course - you will also need to adjust your routing tables on the client. To say "my default route (gateway) for stuff is that machine over there". I apologise if it appears that I haven't given the "complete solution on a plate" - but, I am assuming you wanted "pointers in the right direction". Dave |
I was meaning something like ethernet to wifi. It does not have to be a bridge I just want it to connect one of my machines that can't get wifi to the internet.
|
How are you connecting wirelessly? Do you not have a router available, with ethernet ports?
|
Quote:
If you have a wireless device (example - laptop) and you DO NOT have a wireless router or Access point - then it begs the question - "how is this wireless device communicating with anything at present?". Maybe that is the root? You have a server/desktop Debian box - that has both wired and wireless interfaces. It is the Debian box that is connected (by wire) to the Internet. You wish to make the Debian box behave as an "Access point" for the laptop.. thus the laptop can connect to the internet "through" the Debian box? I guess what sgosnell and I are both asking you is - Please explain in more detail - (a) what you have and (b) what it is you wish to achieve. Dave |
I have a router, but not a cable long enough to run to the other machine.
EDIT: I have wep set on the router, if that helps. My netbook is a stock model, 1005hab eee pc. My desktop computer is a custom build, and is much older than my netbook. I have maxed out the ram on all of my computers except the netbook. I have an old pentium 4 with 4 gigabytes of ram, well that is not entire true I also have one that has 2.5 gigabytes of ram. I can't complain when I only had to pay for the netbook. |
Can you temporarily move the router? Ethernet cable isn't expensive, and can be bought in long lengths, but if you really don't want to do that, moving the router, and using a longer phone cable might be a workable compromise. Or just move the desktop temporarily.
In the long run, you will be better off getting a longer ethernet cable or moving the router. |
All times are GMT -5. The time now is 09:50 PM. |