Skip to content

Instantly share code, notes, and snippets.

@hanafiah
Created August 12, 2016 08:18
Show Gist options
  • Save hanafiah/f37ae80d73e35112188d70737fff4108 to your computer and use it in GitHub Desktop.
Save hanafiah/f37ae80d73e35112188d70737fff4108 to your computer and use it in GitHub Desktop.
pi@raspberrypi:~ $ sudo nano /etc/network/interfaces
#--------------------------
iface wlan0 inet static
address 192.168.8.200
netmask 255.255.255.0
network 192.168.8.1
post-up echo 1 /proc/sys/net/ipv4/ip_forward
#--------------------------
pi@raspberrypi:~ $ sudo nano /etc/sysctl.conf
#--------------------------
# Uncomment the next line to enable packet forwarding for IPv4
net.ipv4.ip_forward=1
#--------------------------
pi@raspberrypi:~ $ sudo /etc/init.d/networking restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment