Find the answer to your Linux question:
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.
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Location
    Harrisburg, PA, USA
    Posts
    56

    Need::Wireless LAN and LAN network interfaces to work simultaneously in one network


    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 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?

    Thanks.

    Regards,
    Sumit

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Hello

    Please stop with all the duplicate threads because they are not allowed on the forums:

    http://www.linuxforums.org/forum/lin...ums-rules.html

    Feel free to continue any discussion regarding this matter in your other thread on this topic.

    Thank you.
    oz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •