How to setting IP Debian

ทำการแก้ไข file /etc/network/interfaces

vi /etc/network/interfaces

DHCP Setting

#The primary network interface

auto eth0

iface eth0 inet dhcp

Static Setting

#The primary network interface

auto eth0

iface eth0 inet static

address 192.168.200.3
netmask 255.255.255.0
gateway 192.168.200.254
network 192.168.200.0
broadcast 192.168.200.255

Restart network service

/etc/init.d/networking restart