Why do I cant update my gateway ip? I have rebooted many times and nothing...
I have this configuration
# The loopback network interface auto lo eth0 iface lo inet loopback # The primary network interface iface eth0 inet static address 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255 network 192.168.1.0 gateway 192.168.1.254 dns-nameservers 192.168.1.254
Have this route
pi@raspberrypi ~ $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Routing table should update to 192.168.1.254, right?
I had an ip configuration on cmdline.txt (located on boot folder), i just had to remove it and everything started to work good. The reason i still had that configuration was because i forgot to remove it, i dont have any SD card reader, so i had to add some ip on boot load.
Sry and thanks everyone :)