I'm trying to share my wireless connection (wlp1s0b1
) on my Ubuntu 16.04 headless laptop to my Windows 10 PC via ethernet (enp0s9
).
This is a diagram of my network:
Router (198.168.0.1)---(wifi)---> Laptop(192.168.0.169) ---(eth)---> PC(192.168.127.2)
I have been researching for a while now on the methods to do so. I followed this tutorial here. I have a WiFi connection to my router after following this quick guide and my result is an IP address assigned to my Windows 10 PC (192.168.127.2, good so far) as well as the netmask and gateway (as described in the guide, 192.168.127.1 & 255.255.255.0 respectively).
Now, I am unable to ping between either computer at the known IP addresses. Neither does the Windows 10 PC have any external connection recognized.
Relevant outputs (Laptop):
ifconfig
enp0s9 Link encap:Ethernet HWaddr 70:cd:60:44:47:ba
inet addr: 192.168.127.1 Bcast 192.168.127.255 Mask:255.255.255.0
wlp1s0b1 Link encap:Ethernet Hwaddr 10:9a:dd:b7:ba:b7
inet addr: 192.168.0.169 Bcast:192.168.0.255 Mask:255.255.255.0
route -n
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 600 0 0 wlp1s0b1
192.168.0.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp1s0b1
192.168.127.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s9
192.168.200.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s9
UFW is disabled:
UFW status
Status: inactive
Then the relevant entries from the /etc/network/interfaces
file:
auto enp0s9
allow-hotplug enp0s9
iface enp0s9 inet static
address 192.168.200.0
netmask 255.255.255.0
broadcast 192.168.200.255
gateway 192.168.0.1
iface enp0s9 inet6 auto
Then the nmcli output:
nmcli connection
NAME UUID TYPE DEVICE
mynetworkname UUID 802-11-wireless wlps0b1
In addition, running isc-dhcp-server
as described in the first tutorial/guide.
So what am I missing? I suspect it has something to do with my gateway assignment, but I just can't place it or figure out what else to check research.
All I'm trying to do is implement the "share to other computers" setting available in the GUI.
I have already read the following questions. My question pertains to this being debugged. This question is similar, but mine is for headless. This question is also similar, but still GUI.
How can I do this?
Edit: I am running a headless server addition, I have no GUI options.