Simultaneous access ethernet and wifi
Posted: Wed Oct 24, 2018 10:47 am
Hello.. 
I have a raspberry pi 2 model B. I have configured the pi with latest OS (raspbian stretch) and enabled XRDP in order to access it via remote desktop. I have also configured static IP address to my RPI (192.168.1.10). I connect the RPI directly to my laptop via an Ethernet cable and access it via "Remote desktop connection".Following lines are there in dhcpcd.conf file
Everything is working fine till this step.
Now, I have added a Wifi USB dongle (EDIMAX: https://www.amazon.de/EDIMAX-EW-7811UN- ... B003MTTJOY) and changed the dhcpcd.conf file as follows:
I have also updated the /etc/wpa_supplicant/wpa_supplicant.conf and entered correct parameters
The problem is, I can not use both the interfaces simultaneously. My requirement is, I should be able to connect to Pi via Ethernet cable and at the same time, I should remain connected with the WiFi to access internet through browser. When I disconnect the Ethernet cable and connect my laptop to same wifi router (to which RPi is also connected) then I can access the RPi through the dynamic IP address given by Wifi router to Pi. But both the interfaces (eth0 and wlan0) are not working simultaneously. After accessing the Pi via remote desktop, it shows that, it is connected to wifi as shown in the following image..
I also inserted metric <priority> for priorities but it didn't work.
An expert advice would be really appreciated..
Thanks

I have a raspberry pi 2 model B. I have configured the pi with latest OS (raspbian stretch) and enabled XRDP in order to access it via remote desktop. I have also configured static IP address to my RPI (192.168.1.10). I connect the RPI directly to my laptop via an Ethernet cable and access it via "Remote desktop connection".Following lines are there in dhcpcd.conf file
Code: Select all
interface eth0
static ip_address=192.168.1.10/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
Now, I have added a Wifi USB dongle (EDIMAX: https://www.amazon.de/EDIMAX-EW-7811UN- ... B003MTTJOY) and changed the dhcpcd.conf file as follows:
Code: Select all
interface eth0
static ip_address=192.168.1.10/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
interface wlan0
allow-hotplug wlan0
Code: Select all
network={
ssid="MGM"
psk="xxxxxxxx"
key_mgmt=WPA-PSK
}
An expert advice would be really appreciated..
Thanks
