user4032720
user4032720

Reputation: 91

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.

Upvotes: 3

Views: 8854

Answers (1)

sdrfnord
sdrfnord

Reputation: 41

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?

Upvotes: 4

Related Questions