I have an Ethernet cable which I use to connect to the internet on a desktop Windows machine.
These are the IP settings I gave the Windows machine:
IP adr. 172.18.14.19
subnet mask 255.255.0.0
preferred DNS 172.18.10.99
alternate DNS 172.31.0.5
Now I am connecting the same Ethernet cable to the Raspberry Pi 3.
I have used:
sudo ifconfig eth0 172.18.14.19 netmask 255.255.0.0 up
sudo route add default gw 172.18.0.1 eth0
in the terminal.
Then I am not able to use the internet. With the same cable I am able to access the internet on desktop. Why is this not the case for the Pi 3?
How do I proceed?