Results 1 to 2 of 2
Hello, I have ported linux kernel 2.6.19 on my embedded device. The device has two network interfaces, eth0 - ethernet and eth1 - wireless LAN. I need to achieve following ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-23-2010 #1
- Join Date
- Nov 2006
- Harrisburg, PA, USA
Need::Wireless LAN and LAN network interfaces to work simultaneously in one network
I have ported linux kernel 2.6.19 on my embedded device. The device has two network interfaces, eth0 - ethernet and eth1 - wireless LAN.
I need to achieve following network topology.
PC1[192.168.254.100]->Cross over ethernet cable -> eth0 interface of device[192.168.254.254]
PC2[192.168.254.250]->ethernet cable->wireless access point[192.168.254.1]->wireless LAN eth1 interface of device [192.168.254.253]
I want PC1 to ping eth0 of device and PC2 to ping wireless LAN interface of device at the same time. I am not able to ping both of them.
I tried to enable advance IP router configuration in linux kernel. I also tried several /proc/sys/net/ipv4/conf/<interfaces> variables. But at a time only one interface works.
If I configure both of them in different network, eth0 in 192.168.254.254 and eth1 in 10.110.2.4 both works simultaneously. I suspect it is related to managing kernel routing tables.
This is what I need to achieve.
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.254.1 255.255.255.0 UG 0 0 0 eth0/eth1
192.168.254.0 * 255.255.255.0 U 0 0 0 eth1
192.168.254.0 * 255.255.255.0 U 0 0 0 eth0
In the first line, if eth0 interface is not available, the kernel should forward packets through eth1and vice versa. I did not find a way to achieve this.
How should I achieve this?
- 02-23-2010 #2
- Join Date
- May 2004
- arch linux
Please stop with all the duplicate threads because they are not allowed on the forums:
Feel free to continue any discussion regarding this matter in your other thread on this topic.