=====Raspberry Pi Switch===== [[https://pimylifeup.com/raspberry-pi-wifi-bridge/|Easy Raspberry Pi WiFi Bridge]]\\ {{ :raspberrypi:raspberry_pi_switch.rtf |}}\\ sudo raspi-config sudo cat /etc/wpa_supplicant/wpa_supplicant.conf ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=US network={ ssid="name_of_SSID" psk="Insert Password Here" } sudo cat /etc/dhcpcd.conf # Add to end of file: # Set a static IP for Ethernet 0 interface eth0 static ip_address=192.168.34.254/24 static routers=192.168.99.99 static domain_name_servers=192.168.99.1 metric 300 # Set interface wlan 0 as the higher priority interface over Ethernet 0 interface wlan0 metric 200 sudo cat /etc/dnsmasq.conf interface=eth0 listen-address=192.168.34.254 bind-interfaces server=192.168.99.1 domain-needed bogus-priv dhcp-range=192.168.34.2,192.168.34.99,12h On the UniFi Dream Machine Pro: - Settings-->Networks - Create a New Network - Name: Lab - Purpose: Corporate - VLAN: 34 - Gateway/IP Subnet: 192.168.34.254/24 # This is the IP of the Pi's Ethernet 0 interface. - Domain name: tst.local - DHCP Mode: None - Save sudo nano /boot/config.txt # Enable audio (loads snd_bcm2835) ##dtparam=audio=on dtparam=audio=off # Disable Bluetooth dtoverlay=pi3-disable-bt # Disable WiFi #dtoveraly=pi3-disable-wifi ====Sample code==== interface=eth0 # Use interface eth0 listen-address=172.24.1.1 # Explicitly specify the address to listen on bind-interfaces # Bind to the interface to make sure we aren't sending things elsewhere server=8.8.8.8 # Forward DNS requests to Google DNS domain-needed # Don't forward short names bogus-priv # Never forward addresses in the non-routed address spaces. dhcp-range=172.24.1.50,172.24.1.150,12h # Assign IP addresses between 172.24.1.50 and 172.24.1.150 with a 12 hour lease time