Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IPstatic : don't seem to have all the variable for eth0

I want to have a static ip for my debian : 192.168.249.5

This is my inferfaces file : /etc/network/interfaces

auto eth0
iface eth0 inet static
adress 192.168.249.5
netmask 255.255.255.0
gateway 192.168.152.255
dns-nameservers 192.168.249.5

When I do :

/etc/init.d/networking stop
/etc/init.d/networking start

I have : Configuring network interfaces... Don't seem to have all the variables for eth0/inet. Failed to bring up eth0.

I don't understand.

like image 654
user4032720 Avatar asked Dec 11 '25 06:12

user4032720


1 Answers

Please check out the documentation. You should probably write the "adress" as "address" for this to work. Also your gateway address is not possible. Might it be 254?

like image 86
sdrfnord Avatar answered Dec 14 '25 00:12

sdrfnord