Re: How to have both wired and wireless connection at the same time?
Yes it does, and no it doesn't, and yet it does
Originally Posted by theozzlives
NM versions from NM 0.7 and onwards allow for multiple connections being active at the same time.
The problem comes with this: DHCP servers nearly always assign a default gateway to be used with that connection.
Now what should NM do when both the WiFi card and the wired NIC learn IP address, subnet mask and default gateway? Which default route should get the preference, i.e., which one should make it into the routing table?
What the NM people have come up with is this: based on the speed of a connection, the give preference to the default route of the fastest connection. This normally results in the following order: wired - wireless - mobile broadband-(modem)
If that is not what suits your needs, you can for example make sure that your LAN's DHCP server does not advertise a default gateway - and on your local NM, the default gateway learnt via DHCP-on-WiFi will get preference.
Alternatively, you could give your wired NIC a static configuration, but whithout default gateway; so you'll get a routing table entry for the wired subnet, but the WiFi-learnt default route stays in the table.
All of this discussion is moot, by the way, if WiFi and wired network are the same subnet and have addresses from the same address range of the DHCP server in question (as it would be the case with the common broadband home router). Then the answer to the OP's question should be: why bother? Why split local traffic from internet-traffic when everything will cross the same broadband router box, anyway?
The story so far: In the beginning the Universe was created.This has made a lot of people very angry and has been widely regarded as a bad move. Douglas Adams, The Restaurant at the End of the Universe