Re: Switching from dynamic IP to static IP
On Wed, 16 Feb 2005 11:57:05 -0500
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.
>
> I've done that in RH before. Basically, I only need to change the
> following two files:
>
> /etc/sysconfig/network:
>
> NETWORKING=yes
> HOSTNAME=xpt
> GATEWAY=192.168.0.1
>
>
> /etc/sysconfig/network-scripts/ifcfg-eth0:
>
> DEVICE=eth0
> BOOTPROTO=static
> IPADDR=192.168.0.100
> NETMASK=255.255.255.0
> GATEWAY=192.168.0.1
> ONBOOT=yes
>
> However, I found that the file /etc/sysconfig/network does not exist
> in Debian. What files should I change in Debian? Thanks.
Just one in Debian: /etc/network/interfaces (assuming your nic is not
pcmcia).
HTH,
Jacob
Reply to: