Konfigurasi IP di UBUNTU

Untuk mengkonfigurasi IP pada linux server Ubuntu, ikuti langkah sebagai berikut :
Edit file /etc/network/interface
$ sudo vi /etc/network/interfaces
Lalu tambahkan baris berikut :
auto eth0
iface eth0 inet static
address 200.100.11.2
netmask 255.255.255.192
network 200.100.11.0
broadcast 200. 100. 11.63
gateway 200.100.11.1
auto eth1
iface eth1 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255

Setelah itu restart network, dengan mengetikan perintah
$ sudo /etc/init.d/networking restart

Leave a Reply

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 / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s