2014-04-24, 13:10
Hello!
My system setup:
Raspberry pi model B
OpenElec 3.2.4 official
wifi usb dongle on powered usb hub (for internet connection) (I use static IP)
usb IR (microsoft) reciever on powered usb hub
Microsoft remote controle
HDMI connected to LG TV
ethernet connected to IPTV port of my ISPs modem (for IPTV) (I use static IP)
router Linksys WRT160NL (original firmware)
My problem:
If I disable (in GUI) wired connection eth0 (used for IPTV), I have internet access and LAN.
If I enable wired connection eth0 (used for IPTV), only LAN works ((I can ssh to raspberry), but internet does not. IPTV works.
As I understand, raspberry pi defaults to eth0 interface for internet connection when both interfaces (eth0 and wlan0) are used.
Is it possible to make wlan0 default internet interface, even when eth0 is active?
If that is possible, what do I have to do?
Thank you for your answers.
Andy
P.s.
Here are my listings for ifconfig and netstat -r:
OpenELEC (official) Version: 3.2.4
OpenELEC:~ # ifconfig
eth0 Link encap:Ethernet HWaddr B8:27:EB:57:01:EA
inet addr:10.247.247.100 Bcast:10.247.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:32693408 errors:0 dropped:37270 overruns:0 frame:0
TX packets:17136 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:920432431 (877.7 MiB) TX bytes:2528695 (2.4 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:12598798 errors:0 dropped:0 overruns:0 frame:0
TX packets:12598798 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:41964886059 (39.0 GiB) TX bytes:41964886059 (39.0 GiB)
wlan0 Link encap:Ethernet HWaddr 64:70:02:29:71:12
inet addr:192.168.1.50 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:610173 errors:0 dropped:616589 overruns:0 frame:0
TX packets:320568 errors:0 dropped:3 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:695478245 (663.2 MiB) TX bytes:89282378 (85.1 MiB)
OpenELEC:~ # netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default 10.247.247.100 0.0.0.0 UG 0 0 0 eth0
8.8.8.8 192.168.1.1 255.255.255.255 UGH 0 0 0 wlan0
10.247.0.0 * 255.255.0.0 U 0 0 0 eth0
10.247.247.100 * 255.255.255.255 UH 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0
192.168.1.1 * 255.255.255.255 UH 0 0 0 wlan0
ping www.google.com returns no data
Andy
My system setup:
Raspberry pi model B
OpenElec 3.2.4 official
wifi usb dongle on powered usb hub (for internet connection) (I use static IP)
usb IR (microsoft) reciever on powered usb hub
Microsoft remote controle
HDMI connected to LG TV
ethernet connected to IPTV port of my ISPs modem (for IPTV) (I use static IP)
router Linksys WRT160NL (original firmware)
My problem:
If I disable (in GUI) wired connection eth0 (used for IPTV), I have internet access and LAN.
If I enable wired connection eth0 (used for IPTV), only LAN works ((I can ssh to raspberry), but internet does not. IPTV works.
As I understand, raspberry pi defaults to eth0 interface for internet connection when both interfaces (eth0 and wlan0) are used.
Is it possible to make wlan0 default internet interface, even when eth0 is active?
If that is possible, what do I have to do?
Thank you for your answers.
Andy
P.s.
Here are my listings for ifconfig and netstat -r:
OpenELEC (official) Version: 3.2.4
OpenELEC:~ # ifconfig
eth0 Link encap:Ethernet HWaddr B8:27:EB:57:01:EA
inet addr:10.247.247.100 Bcast:10.247.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:32693408 errors:0 dropped:37270 overruns:0 frame:0
TX packets:17136 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:920432431 (877.7 MiB) TX bytes:2528695 (2.4 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:12598798 errors:0 dropped:0 overruns:0 frame:0
TX packets:12598798 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:41964886059 (39.0 GiB) TX bytes:41964886059 (39.0 GiB)
wlan0 Link encap:Ethernet HWaddr 64:70:02:29:71:12
inet addr:192.168.1.50 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:610173 errors:0 dropped:616589 overruns:0 frame:0
TX packets:320568 errors:0 dropped:3 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:695478245 (663.2 MiB) TX bytes:89282378 (85.1 MiB)
OpenELEC:~ # netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default 10.247.247.100 0.0.0.0 UG 0 0 0 eth0
8.8.8.8 192.168.1.1 255.255.255.255 UGH 0 0 0 wlan0
10.247.0.0 * 255.255.0.0 U 0 0 0 eth0
10.247.247.100 * 255.255.255.255 UH 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0
192.168.1.1 * 255.255.255.255 UH 0 0 0 wlan0
ping www.google.com returns no data
Andy