Can't set static IP

Hello,
I have a BBBK Rev B with Debian 7.6 booting from a SD card. I’m trying to set up a static IP.
I have added the following lines in the /etc/network/interfaces file :

auto eth0
iface eth0 inet static
address 192.168.1.99
netmask 255.255.255.0
network 192.168.0.0
gateway 192.168.1.1
broadcast 192.168.1.255

This has no effect and it still use DHCP.

What is wrong ?

Thanks in adavance for any help.
Pascal

Hi,
auto eth0
iface eth0 inet static
address 192.168.0.52
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 8.8.8.8 127.0.0.1

Works for me using debian. I went so far as to paste your config into my interface. Should have been a mess for me. ifconfig said eht0 was 192.168.1.99 but I could not telnet even if I set the gatway to my 192.168.0.1

I'm using BeagleBoard.org BeagleBone Debian Image 2014-05-14
Try pasting mine, check your gatway with route -n
Best, Dan.

Hi
just a thought but try a lower IP address…

I know on my modem/router it comes with a configured range valid between 0 to 50. I’m not sure why it does that.

Most home use routers come per-configured with DHCP addresses being in the range of *.02 to *.100, or less. The idea is to keep DHCP address in one small sub range while static ip’s are above this.

BTW has this issue been posted before ? Or did someone drag up an old post ?

auto eth0
iface eth0 inet static
address 192.168.1.99
netmask 255.255.255.0
network 192.168.0.0 <— wrong network based on the rest of the configuration

gateway 192.168.1.1
broadcast 192.168.1.255

network 192.168.0.0 should be network 192.168.1.0 OR the rest of the configuration is wrong.

Thank you all for your help.

I’ve tried what you suggested but, unfortunately, without any success.
I’m wondering if the root cause of my problem isn’t that I run Debian from the SDCARD (not loaded in eMMC).
I have a similar issue with fstab. I’ve added a mount command to a network share and it is not taken into account at boot time. If I run the “mount -a” manually it works.
So, it seems that any change I make in the /etc folder is not used at boot time. I don’t understand why …

It takes a long time (sometimes a minute or more) for the BBB's
network connection to start up after booting. Are you possiblly seing
a consequence of this where the mount of the remote file systems at
boot time fails because the network isn't available?

Hello,
I’ve fixed my problem with an upgrade to Debian 7.6 (image 2014-10-08)
Many thanks to all for your time trying to help me :slight_smile: