I have the following devices:
a computer (Ubuntu 12.04) which connects to the internet via wifi as the router is in another room (no wired connection possible)
a Netgear N600 (WNDR-3400v2) wired/wireless router (used here solely as a router in a wired network)
a Raspberry PI (running RaspBMC - a Debian/XBMC hybrid) via ethernet to the Ubuntu and wirelessly obtaining streaming services (TV and Radio from the Internet)
a SiliconDust HDHomeRun TV Tuner (with an ethernet port for i/o) - no wifi here
Viz.:
UBUNTU 12.04'S network with wifi running:
mark@Lexington:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 40:61:86:06:56:14
inet6 addr: fe80::4261:86ff:fe06:5614/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7558 errors:0 dropped:0 overruns:0 frame:0
TX packets:2012 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2314648 (2.3 MB) TX bytes:198129 (198.1 KB)
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:8863 errors:0 dropped:0 overruns:0 frame:0
TX packets:8863 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:838433 (838.4 KB) TX bytes:838433 (838.4 KB)
wlan0 Link encap:Ethernet HWaddr 90:f6:52:0c:2d:a4
inet addr:192.168.1.81 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: 2602:306:bdbf:4420:bc16:f0d4:791b:45d4/64 Scope:Global
inet6 addr: 2602:306:bdbf:4420:92f6:52ff:fe0c:2da4/64 Scope:Global
inet6 addr: fe80::92f6:52ff:fe0c:2da4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:363885 errors:0 dropped:0 overruns:0 frame:0
TX packets:166522 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:296419610 (296.4 MB) TX bytes:29735801 (29.7 MB)
But if the wlan0 is disconnected and eth0 connected then:
mark@Lexington:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 40:61:86:06:56:14
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::4261:86ff:fe06:5614/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7577 errors:0 dropped:0 overruns:0 frame:0
TX packets:2177 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2316352 (2.3 MB) TX bytes:215113 (215.1 KB)
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:9027 errors:0 dropped:0 overruns:0 frame:0
TX packets:9027 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:850930 (850.9 KB) TX bytes:850930 (850.9 KB)
wlan0 Link encap:Ethernet HWaddr 90:f6:52:0c:2d:a4
inet addr:192.168.1.81 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: 2602:306:bdbf:4420:bc16:f0d4:791b:45d4/64 Scope:Global
inet6 addr: 2602:306:bdbf:4420:92f6:52ff:fe0c:2da4/64 Scope:Global
inet6 addr: fe80::92f6:52ff:fe0c:2da4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:364401 errors:0 dropped:0 overruns:0 frame:0
TX packets:166625 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:296494943 (296.4 MB) TX bytes:29756235 (29.7 MB)
The Raspberry PI's "System/System Info" shows it's networking as follows:
MAC address: 80:1F:02:B6:B1:50
IP Address: 192.168.1.84
Subnet Mask 255.255.255.0
Gateway is -blank-
Primary DNS is: 192.168.1.254
Secondary DNS is: -blank-
But the PI's Programs/Raspbmc Settings/Network Configuration shows:
Wired:
Use DHCP is unselected
Use Unique DHCP Client Name is unseleced
Doing the above 2 is for setting a STATIC IP configuration
IP Address is: 192.168.1.11
Subnet Mask is: 255.255.255.0
Gateway is: 192.168.1.1
DNS Server is: 0.0.0.0 (this to prevent conflict with the PI's wifi networking configuration)
The PI's Wireless (WiFi) Network settings are:
Use DHCP is: selected
Use Unique DHCP Client Name is unseleced
IP Address is: 192.168.1.22
Subnet Mask is: 255.255.255.0
Gateway is: 192.168.1.254
The Netgear N600 wifi-router's "Connected Devices" shows as:
# IP Address Device Name MAC Address
1 192.168.1.3 HDHR-dddddddd 00:18
D:01:A7:99
2 192.168.1.4 Lexington 40:61:86:06:56:14
3 192.168.1.11 xbmc-fbf7 B8:27:EB:30:FB:F7
4 192.168.1.81 -- 40:61:86:06:56:14
5 192.168.1.84 RASPBMC B8:27:EB:30:FB:F7
Here is what I'm doing:
The computer "Lexington" can only connect to the internet via it's wifi adapter. It can but does not have to connect the internet to the PI, as the PI has it's own WiFi adapter. But the network must play nice with all.
The PI must talk to Lexington, the HDHR (TV Tuner), the xbmc-fbf7 (the Raspbmc software network, see above). The Lexington (Ubuntu 12.04) must talk to all the other devices.
So I need to understand how to configure the networking to keep the computer (Lexington) on it's wifi (which is not listed above) for connectivity to the internet.
I need to config the router to connect all the devices and not block the wifi to either Lexington or to the Raspberry PI, RASPBMC (above) or to xbmc-fbf7 (above), which some device is doing, as I cannot have Lexington on wifi and connect to the Netgear router (192.168.1.1). Once the computer can have both a wired network to the PI, and it's devices, the only part left is for Lexington to be able to see Raspbmc's web interface for TVHeadend. TVHeadend is software to tune antenna TV and allow the hardware to send the TV signal to the tv set. Whew! That's been a mouthful.