Steps to share ethernet
Steps on machine from where you want to share Network
- Open Network Manager and Create “Wired Ethernet” connection.
- Under “Wired” select “Restrict to device” as “enp0s31f6”
- Under “IPv4” select “Method” Manual and choose “Address” as “192.168.1.1” and “Netmask” as “255.255.255.0”
- sudo ip link set enp0s13f0u3u1 down
- sudo ip link set enp0s13f0u3u1 up
Steps for target machine
- sudo ip addr add 192.168.1.150/24 dev enp0s20f0u1
- sudo ip link set enp0s20f0u1 down
- sudo ip link set enp0s20f0u1 up