Posted by3 years ago
![Using Using](/uploads/1/2/3/7/123711898/579482921.jpg)
Archived
I'm trying to connect my Raspberry Pi over ethernet to my closed local network router as well as connect to an Internet facing router using Wi-Fi. I followed this guide on stackexchange:
With two exceptions:
I didn't make my wlan0 configuration static
I left out the 'iface default inet dhcp' line at the bottom of /etc/network/interfaces because it resulted in no network connection whatsoever.
Where I'm at now:
I've got two IP addresses on the Pi, and both are valid. I've confirmed this by making connections to the closed network ip address and running 'iwconfig' and receiving positive results. Despite being valid IP addresses, the Pi does not seem to have a network connection. If I 'ping 8.8.8.8', I get the following:
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Net Unreachable
From 192.168.1.1 icmp_seq=2 Destination Net Unreachable
From 192.168.1.1 icmp_seq=3 Destination Net Unreachable
For Star Wars: The Force Unleashed II on the PlayStation 3, a GameFAQs. Saber Crystal - After running through 3 fires with 2 Stormtroopers. ![Force unleashed 2 news Force unleashed 2 news](http://www.cheatcc.com/imagesps3/starwarstheforceunleashed2_8a.jpg)
![Force unleashed 2 news Force unleashed 2 news](http://www.cheatcc.com/imagesps3/starwarstheforceunleashed2_8a.jpg)
The result of which is 100% packet loss. I've tried running 'ping -I <networkGateway> 8.8.8.8' but that seems to hang with no indication progress until I interrupt the command and see 100% packet loss still.
For completeness, heres my /etc/network/interfaces file:
It seems that the eth0 connection is taking priority over the wlan0 connection due to the 'From 192.168.1.1' at the start of the ping command, but I don't see where that might have been specified.
Any ideas?
Realtek high definition audio driver. Edit:
Worth noting this output on boot:
Edit2:
Issuing 'ping -I wlan0 8.8.8.8' works! But loading a webpage in the browser doesn't. Is there a way to set wlan0 as the default connection route?
10 comments
Hi no expert at all I'm afraid..
I've a Win 7 Ultimate 64 bit laptop and a Win 10 64 bit laptop and trying to get both working together using broadband and WiFi at the same time but without success. Win 10 is working ok being about 3 feet away from the router in my small study and plugged in with a yellow cable, whilst Win 7 is in the bedroom about 15 feet away from the router but keeps saying unable to connect to the server.
My ISP is the Post Office who say that there's no problem their end and that it should work fine possibly being a fault with Win 7 itself, which can't be possible as I'd previously tried both laptops in the study with both working perfectly.
I've tried resetting the router several times and disconnecting the yellow cable hoping that WiFi can work on both again with no success.
Unfortunately as I'm no good at any of this I wondered if anyone could help..
Thanks
I am on an intranet that is not connected to the Internet and a Wi-Fi router with connection to the Internet. When I am connected to the wireless network, I can browse the Internet, but I cannot browse my LAN with my Ethernet cable connected.
![Wifi Wifi](/uploads/1/2/3/7/123711898/450886381.png)
![Using Using](/uploads/1/2/3/7/123711898/317531645.jpg)
How can I browse the Internet via my Wi-Fi router and at the same time browse my local LAN web application via my connected Ethernet cable?
Kaz Wolfe26.7k1313 gold badges8484 silver badges139139 bronze badges
omadegboomadegbo
3 Answers
You sure can. You didn't specify it, but I'm assuming you get the IP address automatically (via DHCP) both on wireless and wired connection.
Wired Ethernet is faster than wireless, so if there are two ways to get somewhere, wired will takes precedence over Wi-Fi by default. With that said, when you connect to both links, both DHCP servers by default will advertise themselves as the default gateway for all of the traffic.
So now your computer thinks it has two ways to connect to the Internet, and since wired is preferred it'll send traffic for the Internet via Ethernet. If that's the case, you would see two gateways for default networks 0.0.0.0 in your routing table,
route -n
, one with your wireless router as a gateway and one for the wired.But the Metric for the Ethernet gateway would be lower than wireless, so your PC will send the packets there. Now that your Ethernet router gets them, it doesn't know what to do with them, so it just drops them. The order where you connected first shouldn't matter.
As far as fixing (this assumes the DHCP case), the correct way would be to tell the LAN router to stop advertising itself as the default gateway. You need to log in to the router and look through settings. If you have no control over the router, you can remove it from your end with:
Peter Mortensen1,02822 gold badges1111 silver badges1717 bronze badges
meccoollmeccooll1,00822 gold badges1313 silver badges2323 bronze badges
I still do not have enough information for giving you an answer in which I am 100% confident, but here are a few hypothesis.
- When connected on the cabled LAN, you are on a different subnet than when using the Wireless LAN. The routing between these 2 LAN is not configured, and thus when requesting an IP range that is not in the current active LAN, the packet are sent to the 'default' interface, usually the gateway/router.
- You have both Wireless and wired connection active, but the wired one is activated after the wireless and whatever network management tool you are using is just replacing the route table entries with the last activated connection. Thus, when you activate the wired connection, the previous routing table is 'cancelled/removed'. You may need to adjust the routing manually in your network management tool.
28.9k1313 gold badges6767 silver badges115115 bronze badges
HuygensHuygens3,85855 gold badges2525 silver badges3939 bronze badges
Ubuntu's Network Manager now comes with a cool feature to isolate an interface for local resources only. This feature allows you to specify an interface (like a VPN or a LAN connection) as local-only and not to be used for outbound internet connections.
From your WiFi menu, go to Edit Connections and then select the ethernet connection you would like to edit. Then, go to the IPv4 Settings tab, and click on the Routes button. Check the box labeled Use this connection only for resources on its network:
Do the same to the IPv6 Settings tab if necessary. Then, finally, disconnect and reconnect the altered interface.
Now, Ubuntu will intelligently not route internet-bound traffic through this interface.
Alternatively, you can do the same thing from the command-line.
cd
over to /etc/NetworkManager/system-connections
and find the interface you want to target.Open it with
sudo nano <your targeted interface>
and add the following text below the [ipv4]
and [ipv6]
headers:Your finished file should look something like:
Note that with the command-line method, you will need to disconnect and re-connect to the network to allow these settings to take place.
Kaz WolfeKaz WolfeCan I Use Ethernet And Wifi Simultaneously
26.7k1313 gold badges8484 silver badges139139 bronze badges
protected by Community♦Aug 27 '14 at 14:19
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Would you like to answer one of these unanswered questions instead?