Comment 87 for bug 5364

Artist (painterii) wrote :

Example for set a static IP:

1. edit (as root) /etc/NetworkManager/nm-system-settings.conf:
---------------------------------
  [ifupdown]
  managed=true
---------------------------------

2. edit (as root) /etc/network/interfaces
---------------------------------
auto lo
iface lo inet loopback

auto eth0

iface eth0 inet static
address 192.168.18.111 #(your IP instead)
netmask 255.255.255.0
gateway 192.168.18.1 #(your gateway instead)
mtu 1400 #(option)
----------------------------------

3. edit(as root) /etc/resolv.conf
-----------------------------------
# Generated by NetworkManager
domain login
search login
nameserver 202.96.64.68 202.96.69.38 192.168.18.1 #(the name server your area)
-----------------------------------

Why do so, read /usr/share/doc/network-manager/README.Debian, please.