Skip to content

Commit

Permalink
Merge pull request #351 from Churro/ip
Browse files Browse the repository at this point in the history
Replace ifconfig and explicitly add route to 10.42.42.0/24
  • Loading branch information
kueblc authored Nov 2, 2019
2 parents 8edc251 + c70e102 commit c13abf4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/setup_ap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ setup () {
fi

echo "Configuring AP interface..."
sudo ifconfig $WLAN down
sudo ifconfig $WLAN up $GATEWAY netmask 255.255.255.0
sudo ip link set $WLAN down
sudo ip addr add $GATEWAY/24 dev $WLAN
sudo ip link set $WLAN up
sudo ip route add 10.42.42.0/24 dev $WLAN src $GATEWAY
sudo ip route add 255.255.255.255 dev $WLAN

echo "Starting DNSMASQ server..."
Expand Down

0 comments on commit c13abf4

Please sign in to comment.