Hi, this is my first post on here, so please bare with me.
I spent most of the day yesterday trying to change the ip address of my Pi so I could connect it to my router via a ethernet cable and update some software on it so I can program a thermal printer. After lot's of messing around I've managed to change my ip address to something similar to my router 192.168.1.55. I believe my router is 192.168.1.254. My laptop is something similar and I have that connected to the router with ethernet too.
So I know this little network I have is working because I can ping the Pi from my laptop and can ping my laptop and router from the Pi. I also have Putty working and Xming so I can control and display my Pi from the laptop, so I'm sure I've got the ip addresses working ok.
The only settings I'm unsure about are the gateway and the DNS server. When I type: netstat -nr my gate says it is 0.0.0.0 yet my laptop says this is 192.168.1.254 - the ip of the router.... also the DNS is set to the router address on my laptop. internet is working fine on the laptop.
I've tried to set a static address through: sudo nano /etc/network/interfaces but the gateway stays the same and actually the ip address stays the same unless I change it using other methods. I'm struggling to find the DNS address on the raspberry pi.
I'm using the raspbian os and have had the internet on it once briefly, but unsure what I did to get it working.
Any help would be greatly appreciated.