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

Switching from dynamic IP to static IP



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.

tong





Reply to: