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
wlan0
IP address 192.168.1.4
Broadcast 192.168.1.255
Mask 255.255.255.0
eth0
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 64.233.160.1
(IP address of goolge) says 100% packet loss
destination unreachable
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
's]
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
1.42.0.0 * 255.255.255.0 - U - 1 - 0 - 0 - eth0
192.168.1.1 * 255.255.255.255 - UH - 0 - 0 - 0 - eth
and 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
route
look on each?