Last active
April 5, 2017 05:06
-
-
Save peter-moran/d46217e19cc797b8916c0444a4be0e8a to your computer and use it in GitHub Desktop.
Erle Copter as a router w/ shared wifi and ethernet network
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/dnsmasq.conf | |
expand-hosts | |
domain=local | |
# Define range of IP's to be assigned | |
dhcp-range=10.0.0.2,10.0.0.10,24h | |
# Define router IP | |
dhcp-option=option:router,10.0.0.1 | |
# Define static IP's according to MAC address | |
# TK1 | |
dhcp-host=00:04:4b:2c:1c:af,10.0.0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/network/interfaces | |
# Please note that this file is written to be used with dhcpcd. | |
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'. | |
auto lo | |
iface lo inet loopback | |
#Fake NIC -- needed for mavros nodes to run | |
auto eth0:0 | |
iface eth0:0 inet static | |
address 192.168.7.1 | |
netmask 255.255.255.0 | |
iface eth0 inet manual | |
auto wlan1 | |
iface wlan1 inet manual | |
auto br0 | |
iface br0 inet static | |
address 10.0.0.1 | |
network 10.0.0.0 | |
netmask 255.255.255.0 | |
broadcast 10.0.0.255 | |
bridge_ports eth0 wlan1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment