Difference between revisions of "IPv6 Konfigurasi: Red Hat Linux dan “clones”"

From OnnoWiki
Jump to navigation Jump to search
(New page: 15.1. Red Hat Linux and “clones” Since starting writing the IPv6 & Linux - HowTo it was my intention to enable a persistent IPv6 configuration which catch most of the wished cases lik...)
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
15.1. Red Hat Linux and “clones”
+
==Test dukungan IPv6 untuk script konfigurasi network==
  
Since starting writing the IPv6 & Linux - HowTo it was my intention to enable a persistent IPv6 configuration which catch most of the wished cases like host-only, router-only, dual-homed-host, router with second stub network, normal tunnels, 6to4 tunnels, and so on. Nowadays there exists a set of configuration and script files which do the job very well (never heard about real problems, but I don't know how many use the set). Because this configuration and script files are extended from time to time, they got their own homepage: initscripts-ipv6 homepage (Mirror). Because I began my IPv6 experience using a Red Hat Linux 5.0 clone, my IPv6 development systems are mostly Red Hat Linux based now, it's kind a logic that the scripts are developed for this kind of distribution (so called historic issue). Also it was very easy to extend some configuration files, create new ones and create some simple hook for calling IPv6 setup during IPv4 setup.
+
Kita dapat men-test, apakah distro Linux yang kita gunakan mendukung konfigurasi IPv6 yang presisten. Library script berikut harusnya ada:
  
Fortunately, in Red Hat Linux since 7.1 a snapshot of my IPv6 scripts is included, this was and is still further on assisted by Pekka Savola.
+
/etc/sysconfig/network-scripts/network-functions-ipv6
  
Mandrake since version 8.0 also includes an IPv6-enabled initscript package, but a minor bug still prevents usage (“ifconfig” misses “inet6” before “add”).
+
Secara automatis test:
15.1.1. Test for IPv6 support of network configuration scripts
 
  
You can test, whether your Linux distribution contain support for persistent IPv6 configuration using my set. Following script library should exist:
+
# test -f /etc/sysconfig/network-scripts/network-functions-ipv6 && echo "Main IPv6 script library exists"
  
/etc/sysconfig/network-scripts/network-functions-ipv6
+
Versi dari library menjadi penting jika kita kehilangan beberapa fitur. Kita dapat mengetahuinya dengan menjalankan peintah berikut:
  
Auto-magically test:
+
# source /etc/sysconfig/network-scripts/network-functions-ipv6 && getversion_ipv6_functions
  
# test -f /etc/sysconfig/network-scripts/network-functions-ipv6 && echo "Main
+
20011124
¬ IPv6 script library exists"
 
  
The version of the library is important if you miss some features. You can get it executing following (or easier look at the top of the file):
+
Dalam contoh, versi yang digunakan adalah is 20011124. Cek Check pada situs http://www.deepspace6.net/projects/initscripts-ipv6.html
  
# source /etc/sysconfig/network-scripts/network-functions-ipv6 &&
+
==Catatan Kecil untuk Mengaktifkan IPv6 di RHL 7.1, 7.2, 7.3, ...==
¬ getversion_ipv6_functions
 
20011124
 
  
In shown example, the used version is 20011124. Check this against latest information on initscripts-ipv6 homepage (Mirror) to see what has been changed. You will find there also a change-log.
+
Cek apakah sistem yang berjalan mempunyai IPv6 modul yang diload
15.1.2. Short hint for enabling IPv6 on current RHL 7.1, 7.2, 7.3, ...
 
  
    Check whether running system has already IPv6 module loaded
+
# modprobe -c | grep net-pf-10
 +
alias net-pf-10 off
  
# modprobe -c | grep net-pf-10
+
Jika hasilnya adalah “off”, maka kita perlu mengaktifkan IPv6 networking dengan cara mengedit /etc/sysconfig/network, dan menambahkan kalimat berikut
alias net-pf-10 off
 
  
    If result is “off”, then enable IPv6 networking by editing /etc/sysconfig/network, add following new line
+
NETWORKING_IPV6=yes
  
NETWORKING_IPV6=yes
+
Reboot atau restart networking menggunakan
  
    Reboot or restart networking using
+
# service network restart
  
# service network restart
+
Sekarang IPv6 module harusnya sudah di load
  
    Now IPv6 module should be loaded
+
# modprobe -c | grep ipv6
  
# modprobe -c | grep ipv6
+
alias net-pf-10 ipv6
alias net-pf-10 ipv6
 
  
If your system is on a link which provides router advertisement, autoconfiguration will be done automatically. For more information which settings are supported see /usr/share/doc/initscripts-$version/sysconfig.txt.
+
Jika sistem kita memberikan router advertisement, autoconfiguration dilakukan secara automatik. Informasi lebih lanjut tentang dukungan tersebut bisa dibaca di /usr/share/doc/initscripts-$version/sysconfig.txt.
 +
 
 +
 
 +
==Referensi==
 +
 
 +
* http://www.deepspace6.net/projects/initscripts-ipv6.html

Latest revision as of 10:38, 4 July 2013

Test dukungan IPv6 untuk script konfigurasi network

Kita dapat men-test, apakah distro Linux yang kita gunakan mendukung konfigurasi IPv6 yang presisten. Library script berikut harusnya ada:

/etc/sysconfig/network-scripts/network-functions-ipv6

Secara automatis test:

# test -f /etc/sysconfig/network-scripts/network-functions-ipv6 && echo "Main IPv6 script library exists"

Versi dari library menjadi penting jika kita kehilangan beberapa fitur. Kita dapat mengetahuinya dengan menjalankan peintah berikut:

# source /etc/sysconfig/network-scripts/network-functions-ipv6 && getversion_ipv6_functions 
20011124

Dalam contoh, versi yang digunakan adalah is 20011124. Cek Check pada situs http://www.deepspace6.net/projects/initscripts-ipv6.html

Catatan Kecil untuk Mengaktifkan IPv6 di RHL 7.1, 7.2, 7.3, ...

Cek apakah sistem yang berjalan mempunyai IPv6 modul yang diload

# modprobe -c | grep net-pf-10
alias net-pf-10 off

Jika hasilnya adalah “off”, maka kita perlu mengaktifkan IPv6 networking dengan cara mengedit /etc/sysconfig/network, dan menambahkan kalimat berikut

NETWORKING_IPV6=yes

Reboot atau restart networking menggunakan

# service network restart

Sekarang IPv6 module harusnya sudah di load

# modprobe -c | grep ipv6
alias net-pf-10 ipv6

Jika sistem kita memberikan router advertisement, autoconfiguration dilakukan secara automatik. Informasi lebih lanjut tentang dukungan tersebut bisa dibaca di /usr/share/doc/initscripts-$version/sysconfig.txt.


Referensi