Cannot get my head around routing
Dear All I have a machine that has two network interfaces - one is an ordinary cabled ethernet connection (eth0) connected to a hub, the other is a wireless card in Access Point mode (wlan0). I can only connect my laptop to the wireless AP when eth0 is down - and then it does not forward anything to the machine that is the default internet gateway (172.27.1.3).
From what i have read i should be able to make a bridge between eth0 and wlan0 but cannot find out how to do it.
But i also think that this is just a matter of routing but cannot work that out either. Network addresses: eth0 = 172.27.1.1 wlan0 = 172.27.1.2 laptop = 172.27.1.50 machine with internet connection = 172.27.1.3 What is the best way to go to get this working? TIA Tim __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com
Can you run the following command and send me the results: route -n This will print out your routing table. Actually do it once with both cards running and then do it again with eth0 down. How I have my wireless to cable set up is rather then having a gateway that connects the two I have a cable connection between a hub and my access point. I believe your problem is going to be the fact that wlan0 and eth0 are on the same subnet, so when you go out to the 172.27.1.x subnet the eth0 is the default route (with no path to the access point) and then when you shutdown eth0 the wlan0 becomes the default route (and then you can connect to the access point). So your problem could be solve by putting the two on seperate subnets but then you would have to setup a gateway between the two (I use iptables to do stuff like that). Jon On Wednesday 19 February 2003 01:50, tim schofield wrote:
Dear All
I have a machine that has two network interfaces - one is an ordinary cabled ethernet connection (eth0) connected to a hub, the other is a wireless card in Access Point mode (wlan0).
I can only connect my laptop to the wireless AP when eth0 is down - and then it does not forward anything to the machine that is the default internet gateway (172.27.1.3).
From what i have read i should be able to make a bridge between eth0 and wlan0 but cannot find out how to do it.
But i also think that this is just a matter of routing but cannot work that out either.
Network addresses:
eth0 = 172.27.1.1 wlan0 = 172.27.1.2 laptop = 172.27.1.50 machine with internet connection = 172.27.1.3
What is the best way to go to get this working?
TIA
Tim
__________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com
--- Jon Hoffman
results:
route -n
This will print out your routing table.
Jon Thanks for the help - this was exactly my problem but somebody else got there first. Thanks again Tim __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com
On Wed, 19 Feb 2003 06:50:12 +0000 (GMT)
tim schofield
From what i have read i should be able to make a bridge between eth0 and wlan0 but cannot find out how to do it.
But i also think that this is just a matter of routing but cannot work that out either.
Network addresses:
eth0 = 172.27.1.1 wlan0 = 172.27.1.2 laptop = 172.27.1.50 machine with internet connection = 172.27.1.3
What is the best way to go to get this working?
I have no experience with your particular problem, but the word "gateway" comes to mind. -- use Perl; #powerful programmable prestidigitation
--- zentara
I have no experience with your particular problem, but the word "gateway" comes to mind.
Thanks for this - that was exactly what i was trying to create but i was having a problem with routing and subnetting. Tim __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com
participants (3)
-
Jon Hoffman
-
tim schofield
-
zentara