Created
August 28, 2017 13:42
-
-
Save dimkouv/8aa8e509f562b103fe20a51cffc1af1c to your computer and use it in GitHub Desktop.
Share wifi over ethenet | arch linux
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
# 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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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