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

ใส่ความเห็น

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out / เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out / เปลี่ยนแปลง )

Google+ photo

You are commenting using your Google+ account. Log Out / เปลี่ยนแปลง )

Connecting to %s

%d bloggers like this: