Autor: Simon Hobson Data: Para: dng Assunto: Re: [DNG] Refracta have a static IP
Arnt Karlsen <arnt@???> wrote:
>> So I made my /etc/network/interfaces look like the following, which
>> follows the guidelines of "man interfaces":
>>
>> =======================================
>> auto lo
>> iface lo inet loopback
>>
>> allow-hotplug eth0
>> iface eth0 inet static
>> address 192.168.0.199
>
> ..could this be as simple as:
> address 192.168.0.199/24 #??? It shouldn't be.
>
>> gateway 192.168.0.1
>> =======================================
No, in /etc/network/interfaces it needs a net mask line like this :
> auto eth0
> iface eth0 inet static
> address 192.168.nnn.nnn
> netmask 255.255.255.0
> gateway 192.168.nnn.nnn
I usually use auto, but I believe for a "server" type setup then the effect is the same as allow-hotplug.