LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-04-2014, 07:16 PM   #1
Mark_in_Hollywood
Member
 
Registered: Jan 2006
Location: USA
Distribution: Ubuntu - Bionic Beaver
Posts: 133

Rep: Reputation: 16
Networking from Computer to Raspberry PI, to TV Tuner and back again


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:18D: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.
 
Old 02-07-2014, 03:15 PM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,127
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
If your N600 supports being a wireless repeater you can set it up as one, then the lan connections of the will effectively be part of the wireless network and accessible to the other devices.

Otherwise you'd probably have to setup up Lexington to bridge it's eth0 and wlan0 together and turn off the dhcp server on the N600. Giving you something like

PI ---- internet wifi router ------ Lexington --- N600 --- HDHR
 
  


Reply

Tags
netgear, raspberry pi, ubuntu 12.04


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Raspberry PI B tv tuner + svhs xv_biker1 Linux - Hardware 8 11-08-2013 10:55 AM
LXer: Raspberry Jams: why Raspberry Pi is going back to school LXer Syndicated Linux News 0 10-25-2013 01:20 PM
The Raspberry Pi computer goes on general sale leslie_jones Linux - General 13 03-05-2012 06:32 PM
LXer: The Raspberry Pi Computer Is Finally Being Manufactured LXer Syndicated Linux News 0 01-11-2012 07:00 PM
Connecting 2 linux computer back to back with cross cable. michalng Linux - Networking 8 02-11-2009 08:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration