Using wired and wirelss interface

Posted on 2005-04-27
Last Modified: 2010-03-18
I have a machine on which I need to use both wired (eth o)and wireless interface (eth1). I essentially need that it should first try with wired itnerface to get routes to the LAN and then use wireless interface for wireless devices.

How can I do this?
Question by:sambha03
    LVL 14

    Expert Comment

    linux, for default use the WIRED interface before use the wireless. that is the problem. specify your problem please routes, ips etcs
    LVL 16

    Accepted Solution

    Are both interfaces on teh same IP range?

    If not it's easy - make the default gateway the router on the wired IP range, make a secondary default gateway on the wireless IP range.

    If they're on the same network, a little trickier, but note you can still add routes to the table which *specify* which local adapter to go via, e.g.
    (from the Man Route pages!)

    route add -net netmask dev eth0

    That "dev eth0" bit says "route this traffic out of the box via eth0" even if other adapters are available which acn also reach the network in question.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now