Hi!
I have worked with the 8.6 Linux Debian distribution on a device called BeagleBone Black (also called BBB), in which I need to set up a fixed IP. I already managed to set up, but
when the BBB is restarted, the IP goes back to the old number.
I am doing this:
1- Connect the BBB physically to the router;
2 - I verified by the router which dynamic IP the BBB got and then access as root user via SSH in a terminal (like Putty);
3- I edit the file "/etc/network/interfaces" and enter the information I need, like this:
Code:
#Interface Eth0
auto eth0
iface eth0 inet static
network 192.168.0.0
address 192.168.0.15
netmask 255.255.255.0
gateway 192.168.0.1
broadcast 192.168.0.255
dns-server 192.168.0.1
4- I edit the file "/etc/resolv.conf" and change the "nameserver" to "nameserver 192.168.0.1" (this is the IP of my router)
5- After this I reboot the network: /etc/init.d/networking restart
So far so good! I can access the BBB through the new IP 192.168.0.15 (this is the IP that I chose).
THE PROBLEMS ARE:
When the BBB is turned OFF and ON again, this occurs:
A) The BBB again picks up a dynamic IP from the router;
B) The file "/etc/resolv.conf" returns to its original configuration, which is "nameserver 127.0.0.1".
The file "/etc/network/interfaces" remains with the information I put in, but it's as if it has no effect.
I have already verified a lot of information about the same problems, but maybe because of my lack of knowledge I was unable to solve the problem, although I have tried several alternatives.
I need this IP to stay fixed. I need to turn OFF the BBB, disconnect from the router and connect via CROSS cable to my laptop.
Does anyone have an idea how to solve it?