Skip to content

Instantly share code, notes, and snippets.

@dimkouv
Created August 28, 2017 13:42
Show Gist options
  • Save dimkouv/8aa8e509f562b103fe20a51cffc1af1c to your computer and use it in GitHub Desktop.
Save dimkouv/8aa8e509f562b103fe20a51cffc1af1c to your computer and use it in GitHub Desktop.
Share wifi over ethenet | arch linux
# PC2 <---eth cable--- PC1 <-- ((( wifi )))
# connect as root on PC1
su
# install networkmanager
pacman -S networkmanager
# enable networkmanager and start it
systemctl start NetworkManager
systemctl enable NetworkManager
# connect the two devices using ethernet
# open networkmanager to connect to the wifi you want to share
nmtui
# install dnsmasq so you can share wifi
pacman -S dnsmasq
# create a new shared ethernet connection
nmtui # > add new connection > ethernet > shared
# try adding the ip address manually on PC2 if you face problems.
@pmdevita
Copy link

For me I had to do nmuti > edit a connection > wired connection > edit > IPv4 > shared. I also set IPv6 to ignore although IDK if that's necessary

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