Skip to content

Instantly share code, notes, and snippets.

@tienthanh2509
Created January 12, 2021 10:26
Show Gist options
  • Save tienthanh2509/692c157e65af013852205928e5cea063 to your computer and use it in GitHub Desktop.
Save tienthanh2509/692c157e65af013852205928e5cea063 to your computer and use it in GitHub Desktop.
Enable g_ether for Raspberry Pi
# Set mac address
options g_ether host_addr=e6:ac:a4:6c:9c:99
auto usb0
allow-hotplug usb0
iface usb0 inet static
address 192.168.8.2
gateway 192.168.8.1
netmask 255.255.255.0
dns-nameservers 8.8.8.8 8.8.4.4
@tienthanh2509
Copy link
Author

On your PC set USB ethernet to IP 192.168.8.1 to access IP and share internet for PI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment