Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I noticed the broadcast addresses differ...also, your IP addresses, this is weird:192.168.1.102 and 192.168.16.50. The second one has 16 as third entry...I doubt that is good...I'd like to see them both on 192.168.1.x, where the x is anything between 2 and 255 (1 is the router/gateway - I did'nt get that from the listing, but I assume that's in order)...
If I may make a humble suggestion: dont rely on DHCP but set the stuff to a fixed IP address.
Maybe this can help: http://www.yolinux.com/TUTORIALS/Lin....html#ASSIGNIP
First off, I wouldn't recommend bridging, as it doesn't appear it is needed. Proper routing tables can handle this easily as it is.
Let's take a look at the routing table when you have both interfaces up, and when you have only your wlan0 up.
Code:
route -n
From what you describe, I'd guess that when you have both networks connected, you probably have a default route pointing toward the usb0 network that overrides the wlan0 default. Have you configured static IP addresses, or do you get dhcp leases? I'd imagine the wlan0 one is probably dhcp. If dhcp lease requests on both interfaces, I imagine there is a way to make a request without the gateway included, which could be configured for usb0. If you're using static on both, you should remove the default gw definition for usb0.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.