[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Switching from dynamic IP to static IP



>  --- Tong <mlist4suntong@yahoo.com> wrote:
>> Hi,
>>
>> My IP get changed by my router from time to time,
>> and there is no way to
>> assign a fixed IP from the router side.
>>
>> So I need to switch from dhcp to static IP.
>
>> However, I found that the file
>> /etc/sysconfig/network does not exist in
>> Debian. What files should I change in Debian?
>> Thanks.
>
> /etc/network/interfaces
>
> change 'dhcp' to 'static'
>
> then add
>
> address xxx.xxx.xxx.xxx
> netmask xxx.xxx.xxx.xxx
> gateway xxx.xxx.xxx.xxx
>
> :)
>
> --
> Matt

I'm a newbie on this, and I wonder:
Does this make the IP static also when the DSL-company has a server wich
decides my IP. It seems like the dymanic IP changes every time I reboot.
-- 
System info:
  Debian Sarge GNU/Linux
  Kernel Image 2.4.27-1-386

Cheers, Vegard



Reply to: