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

Re: Switching from dynamic IP to static IP



On Wed, 2005-02-16 at 11:57 -0500, Tong 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. 

edit /etc/network/interfaces

change

auto eth0
iface eth0 inet dhcp

to

auto eth0
iface eth0 inet static
        address 192.168.0.100
        network 192.168.0.0
        netmask 255.255.255.0
        gateway 192.168.0.1
        broadcast 192.168.0.255




Reply to: