Created
August 12, 2016 08:18
-
-
Save hanafiah/f37ae80d73e35112188d70737fff4108 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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