Difference between revisions of "Teknik Mengkonfigurasi IP address"

From OnnoWiki
Jump to navigation Jump to search
Line 13: Line 13:
 
  netmask 255.255.255.0
 
  netmask 255.255.255.0
 
  gateway 192.168.0.1
 
  gateway 192.168.0.1
 +
 +
 +
==IPv6==
 +
 +
### Start IPV6 static configuration
 +
iface eth0 inet6 static
 +
pre-up modprobe ipv6
 +
address 2607:f0d0:2001:000a:0000:0000:0000:0010
 +
netmask 64
 +
gateway 2607:f0d0:2001:000a:0000:0000:0000:0001
 +
### END IPV6 configuration
  
  

Revision as of 11:20, 31 October 2014

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


IPv6

### Start IPV6 static configuration
iface eth0 inet6 static
pre-up modprobe ipv6
address 2607:f0d0:2001:000a:0000:0000:0000:0010
netmask 64
gateway 2607:f0d0:2001:000a:0000:0000:0000:0001
### END IPV6 configuration


Pranala Menarik