Difference between revisions of "Teknik Mengkonfigurasi IP address"

From OnnoWiki
Jump to navigation Jump to search
(New page: Edit file /etc/network/interfaces # vi /etc/network/interfaces Contoh isi IP Dynamic iface eth0 inet dhcp IP Static iface eth0 inet static address 192.168.0.2 netmask 255.255.255...)
 
Line 5: Line 5:
 
Contoh isi
 
Contoh isi
  
 
+
'''IP Dynamic'''
IP Dynamic
 
 
  iface eth0 inet dhcp
 
  iface eth0 inet dhcp
  
IP Static
+
'''IP Static'''
 
  iface eth0 inet static
 
  iface eth0 inet static
 
  address 192.168.0.2
 
  address 192.168.0.2
 
  netmask 255.255.255.0
 
  netmask 255.255.255.0
 
  gateway 192.168.0.1
 
  gateway 192.168.0.1

Revision as of 10:28, 2 April 2008

Edit file /etc/network/interfaces

# vi /etc/network/interfaces

Contoh isi

IP Dynamic

iface eth0 inet dhcp

IP Static

iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1