I have attempted this earlier when following a couple guides, seemingly I am an idiot and kill all networking when restarting the network service on the Pi and make it inaccessible via SSH so I re-install and try again. (Headless install) But at the risk of feeling ashamed of my ignorance of networking and for the sake of letting some vpsB gurus assist me: I beg for help.
For starters, I have WiFi access to the internet. On my workstation PC I connect to the internet via WiFi, and bridge that connection via ethernet to a 5 port switch that I have. Connected to that switch is my xBox, my RaspberryPi(s) and my DVR to a surveillance system. These items all access the internet through the switch that they are wired to. If my workstation is powered down, they have no internet access. Because my workstation is much more power hungry and loud than a simple Raspberry Pi... I'd like to relieve it of it's duty of providing internet access to other wired devices and let my Raspberry Pi do that. I understand that the Pi has limited throughput, but it's still greater than my local connection speed so the limit is not a concern.
I hope that my intentions are clear on what I am trying to accomplish so there is no confusion moving forward.
I am following the instructions here: https://wiki.debian.org/BridgeNetworkConnections#Manual_bridge_setup
On my Raspberry Pi:
After I VNC into the Pi and connect to Wifi manually (No idea how to do it via SSH, VNC is good enough for me and easier), this is my network config:
root@rpi2:~# ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:82:d4:cd
inet addr:10.42.0.69 Bcast:10.42.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1025 errors:0 dropped:0 overruns:0 frame:0
TX packets:1006 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:66704 (65.1 KiB) TX bytes:310579 (303.2 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1104 (1.0 KiB) TX bytes:1104 (1.0 KiB)
wlan0 Link encap:Ethernet HWaddr 00:1b:2f:70:55:9d
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:986 (986.0 B) TX bytes:3600 (3.5 KiB)
That kills Wifi for some reason, so reconnect to wifi again via VNC and run ifconfig again:
root@rpi2:~# ifconfig
br0 Link encap:Ethernet HWaddr b8:27:eb:82:d4:cd
inet addr:10.42.0.69 Bcast:10.42.0.255 Mask:255.255.255.0
inet6 addr: fe80::ba27:ebff:fe82:d4cd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1572 errors:0 dropped:0 overruns:0 frame:0
TX packets:1842 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:94696 (92.4 KiB) TX bytes:392636 (383.4 KiB)
eth0 Link encap:Ethernet HWaddr b8:27:eb:82:d4:cd
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2769 errors:0 dropped:0 overruns:0 frame:0
TX packets:3090 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:173392 (169.3 KiB) TX bytes:812627 (793.5 KiB)
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:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1104 (1.0 KiB) TX bytes:1104 (1.0 KiB)
wlan0 Link encap:Ethernet HWaddr 00:1b:2f:70:55:9d
inet addr:192.168.1.145 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::21b:2fff:fe70:559d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:138 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7662 (7.4 KiB) TX bytes:6300 (6.1 KiB)
Ok, so now we see the bridge, see the wireless is running/active, and eth0.
Rasperry Pi: /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
# Bridge setup
iface br0 inet dhcp
bridge_ports eth0
Okay, so the bridge is setup and is 'running', however I can't figure out how the hell to get it to actually work as I intend it to. I turn of or disconnect my workstation wireless, everything on the switch that has online access no longer will. It's not being provided by the Pi as I want it to be.
Other random info that may help:
Local Network: Starts at 10.42.0.1 (Computer, Raspberry Pis, xBox and DVR)
Wireless Network: Starts at 192.168.1.1 (I don't have access to alter anything on this end)
My workstation that is currently providing internet access to the switch is 10.42.0.1 on my local network. I can ssh into my pi at 10.42.0.69, my other pi at 10.42.0.16, etc. These IPs were just seemingly auto-assigned and not provided by myself. But that's how my local network is and I've not fussed with changing it as I haven't seen the need to.
So, what seemingly obvious thing am I missing that is preventing this from working how I want?
Thanks!
For starters, I have WiFi access to the internet. On my workstation PC I connect to the internet via WiFi, and bridge that connection via ethernet to a 5 port switch that I have. Connected to that switch is my xBox, my RaspberryPi(s) and my DVR to a surveillance system. These items all access the internet through the switch that they are wired to. If my workstation is powered down, they have no internet access. Because my workstation is much more power hungry and loud than a simple Raspberry Pi... I'd like to relieve it of it's duty of providing internet access to other wired devices and let my Raspberry Pi do that. I understand that the Pi has limited throughput, but it's still greater than my local connection speed so the limit is not a concern.
I hope that my intentions are clear on what I am trying to accomplish so there is no confusion moving forward.
I am following the instructions here: https://wiki.debian.org/BridgeNetworkConnections#Manual_bridge_setup
On my Raspberry Pi:
After I VNC into the Pi and connect to Wifi manually (No idea how to do it via SSH, VNC is good enough for me and easier), this is my network config:
root@rpi2:~# ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:82:d4:cd
inet addr:10.42.0.69 Bcast:10.42.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1025 errors:0 dropped:0 overruns:0 frame:0
TX packets:1006 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:66704 (65.1 KiB) TX bytes:310579 (303.2 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1104 (1.0 KiB) TX bytes:1104 (1.0 KiB)
wlan0 Link encap:Ethernet HWaddr 00:1b:2f:70:55:9d
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:986 (986.0 B) TX bytes:3600 (3.5 KiB)
Code:
root@rpi2:~# ifup br0
Waiting for br0 to get ready (MAXWAIT is 32 seconds).
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/br0/b8:27:eb:82:d4:cd
Sending on LPF/br0/b8:27:eb:82:d4:cd
Sending on Socket/fallback
DHCPREQUEST on br0 to 255.255.255.255 port 67
DHCPACK from 10.42.0.1
bound to 10.42.0.69 -- renewal in 1793 seconds.
root@rpi2:~# ifconfig
br0 Link encap:Ethernet HWaddr b8:27:eb:82:d4:cd
inet addr:10.42.0.69 Bcast:10.42.0.255 Mask:255.255.255.0
inet6 addr: fe80::ba27:ebff:fe82:d4cd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1572 errors:0 dropped:0 overruns:0 frame:0
TX packets:1842 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:94696 (92.4 KiB) TX bytes:392636 (383.4 KiB)
eth0 Link encap:Ethernet HWaddr b8:27:eb:82:d4:cd
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2769 errors:0 dropped:0 overruns:0 frame:0
TX packets:3090 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:173392 (169.3 KiB) TX bytes:812627 (793.5 KiB)
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:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1104 (1.0 KiB) TX bytes:1104 (1.0 KiB)
wlan0 Link encap:Ethernet HWaddr 00:1b:2f:70:55:9d
inet addr:192.168.1.145 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::21b:2fff:fe70:559d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:138 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7662 (7.4 KiB) TX bytes:6300 (6.1 KiB)
Ok, so now we see the bridge, see the wireless is running/active, and eth0.
Rasperry Pi: /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
# Bridge setup
iface br0 inet dhcp
bridge_ports eth0
Okay, so the bridge is setup and is 'running', however I can't figure out how the hell to get it to actually work as I intend it to. I turn of or disconnect my workstation wireless, everything on the switch that has online access no longer will. It's not being provided by the Pi as I want it to be.
Other random info that may help:
Local Network: Starts at 10.42.0.1 (Computer, Raspberry Pis, xBox and DVR)
Wireless Network: Starts at 192.168.1.1 (I don't have access to alter anything on this end)
My workstation that is currently providing internet access to the switch is 10.42.0.1 on my local network. I can ssh into my pi at 10.42.0.69, my other pi at 10.42.0.16, etc. These IPs were just seemingly auto-assigned and not provided by myself. But that's how my local network is and I've not fussed with changing it as I haven't seen the need to.
So, what seemingly obvious thing am I missing that is preventing this from working how I want?
Thanks!