I need to share the wifi internet of my ubuntu laptop to my linux mint desktop , I have a cross over cable. ( Connecting desktop to router is not an option)
I am able to ping my laptop from my desktop but unable to connect to internet.
I have first used network network manager settings in laptop to and change your IPv4 settings to shared to other computers
ifconfig in laptop says
IP address 192.168.1.4 Broadcast 192.168.1.255 Mask 255.255.255.0
IP address 10.42.0.1 Broadcast 10.42.0.255 Mask 255.255.255.0
NOW to the desktop where i need the internet, we tried both Automatic (DHCP) and manual settings under Wired Connection. Though able to ping the laptop not able to get the internet,
ping google.com says unknown host.
ping 220.127.116.11 (IP address of goolge) says
100% packet loss
In manual I gave IP
10.42.0.16 , tried gateways
10.42.0.1 once, tried gateway
192.168.1.1 ( which was shown in
netstat -nr) tried gateway
192.168.1.4 and still able to ping 10.42.0.1 but no Internet connection
How can i remedy this. DNS entries are in router so shouldn't be a problem.
[Comments got hard to read, edited to add
route on Desktop:
Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.1.1 0.0.0.0 UG - 0 - 0 - 0 - eth0 18.104.22.168 * 255.255.255.0 - U - 1 - 0 - 0 - eth0 192.168.1.1 * 255.255.255.255 - UH - 0 - 0 - 0 - eth
route on Laptop:
Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.1.1 0.0.0.0 - UG - 0 - 0 - 0 - wlan0 10.42.0.0 * 255.255.255.0 - U - 1 - 0 - 0 - eth0 192.168.1.0 * 255.255.255.0 - U - 9 - 0 - 0 - wlan0