CeilBleu

we are in the same roof as learntera.com

setting IP kubuntu

with one comment

berikut ini langkah2 untuk setting IP address pada sistem ubuntu melalui command line.
sebagian besar konfigurasi ethernet pada ubuntu tersimpan pada sebuah file “/etc/network/interfaces”.
jika tidak terdapat device ethernet pada komputer anda maka hanya loopback interface yang akan muncul pada file tersebut, dan akan terlihat seperti berikut:

#—[start]—#

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0

#—[end]—#

sedangkan jika komputer anda mempnyuai sebuah device ethernet, eth0, dan diinginkan konfigurasi IP dari DHCP server, dan diinginkan start up secara automatic saat boot, hanya dua baris perintah yang dibutuhkan:

#—[start]—#

auto eth0
iface eth0 inet dhcp

#—[end]—#

baris pertama menspesifikan bahwa device eth0 harus aktif secara otomatis saat anda boot.
baris kedua berarti bahwa interface(“iface”) eth0 dikonfigurasi untuk alamat IPv4 (ganti “inet” dengan “inet6″ untuk konfigurasi IPv6) dan alokasi IP secara automatic didapat dari DHCP server.
sedangkan untuk meng-konfigurasi device ethernet dengan static IP address dapat dilakukan seperti berikut ini:
(masukan pada “/etc/network/interfaces”)

#—[start]—#

iface eth1 inet static
address 10.14.133.209
netmask 255.255.255.0

#—[end]—#

semoga bermanfaat.

— HAPPY BIRTHDAY INDONESIA —— HAPPY BIRTHDAY INDONESIA —

12:00 pM 8/17/2007

HhAN

Written by hhan

August 17, 2007 at 12:00 pm

Posted in O.S.

One Response

Subscribe to comments with RSS.


Leave a Reply

You must be logged in to post a comment.