Mensetting Static IP Address pada ubuntu server

Monday, December 13, 2010

login sebagai root

# Stop Service Networking
/etc/init.d/networking stop

# Edit Network Interface
vi /etc/network/interface

secara default ubuntu server menggunakan dhcp client
auto eth0
iface eth0 inet dhcp

edit bagian tersebut menjadi :
auto eth0
iface eth0 inet static
address 192.168.X.X
netmask 255.255.255.0
network 192.168.X.0
broadcast 192.168.X.255
gateway 192.168.X.X

# Save dan Quit
:wq

# Edit DNS name server
vi /etc/resolv.conf

isikan name server sesuai konfigurasi network anda
nameserver 192.168.X.X

# Save dan Quit
:wq

# Start Service Networking
/etc/init.d/networking start


AddThis Social Bookmark Button