You are on page 1of 8

LAMPIRAN A

1 Home Agent

1.1 Setting Interface


Interface merupakan kartu network yang berada pada computer. Untuk mengkonfigurasi
interface dapat dilakukan dengan cara:
Untuk up/down interface :

# ifconfig eth0 up
# ifconfig eth0 down

Konfigurasi interfaces :

# vim /etc/network/interfaces
auto eth0
iface eth0 inet6 static
address 2001:660:5503:276b::2
netmask 64
auto eth1
iface eth1 inet6 static
address 2001:660:5503:276a::1
netmask 64
#wireless-mode ad-hoc
wireless-essid homenet
up echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
up echo 0 > /proc/sys/net/ipv6/conf/all/autoconf
up echo 0 > /proc/sys/net/ipv6/conf/all/accept_ra
up echo 0 > /proc/sys/net/ipv6/conf/all/accept_redirects
up ip route add 2001:660:5503:276c::/64 via 2001:660:5503:276b::1
# /etc/init.d/networking restart

1.2 Router Advertisement configuration


Pada home agent dan foreign agent akan dijalankan daemon RADVD yang bertugas menyebarkan
router advertisement di seluruh jaringan melalui acces point. Selanjutnya setting Radvd, file di
/etc/radvd.conf:
# vim /etc/radvd.conf
interface eth1
{
AdvSendAdvert on;
AdvIntervalOpt off;
AdvHomeAgentFlag on;
MaxRtrAdvInterval 3;
MinRtrAdvInterval 1;
HomeAgentLifetime 10000;
HomeAgentPreference 20;
AdvHomeAgentInfo on;
prefix 2001:660:5503:276a::1/64
{
AdvRouterAddr on;
AdvOnLink on;
AdvAutonomous on;
AdvPreferredLifetime 10000;
AdvValidLifetime 12000;
};
};
# /etc/init.d/radvd start

1.3 Konfigurasi Mobile IPv6


Konfigurasi dari setting mobile IPv6 disimpan pada file /etc/mip6d.conf.

# vim /usr/local/etc/mip6d.conf
NodeConfig HA;
DebugLevel 10;
DoRouteOptimizationCN enabled;
Interface "ath0";
#UseMnHaIPsec disabled;
# mip6d -c /usr/local/etc/mip6d.conf
2 Foreign Agent

2.1 Setting Interface


Konfigurasi interfaces pada foreign agent, sama hal dengan home agent.
# vim /etc/network/interfaces
auto eth0
iface eth0 inet6 static
address 2001:660:5503:276b::1
netmask 64
auto ath0
iface ath0 inet6 static
address 2001:660:5503:276c::1
netmask 64
wireless-essid visitnet1
up echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
up echo 0 > /proc/sys/net/ipv6/conf/all/autoconf
up echo 0 > /proc/sys/net/ipv6/conf/all/accept_ra
up echo 0 > /proc/sys/net/ipv6/conf/all/accept_redirects
up ip route add 2001:660:5503:276a::/64 via 2001:660:5503:276b::2
# /etc/init.d/networking restart

2.2 Router Advertisement configuration


Pada foreign agent akan dijalankan daemon RADVD yang bertugas menyebarkan router
advertisement di seluruh jaringan melalui acces point. Selanjutnya setting Radvd, file di
/etc/radvd.conf:
# vim /etc/radvd.conf
interface eth1
{
AdvSendAdvert on;
AdvIntervalOpt off;
AdvHomeAgentFlag on;
MaxRtrAdvInterval 3;
MinRtrAdvInterval 1;
HomeAgentLifetime 10000;
HomeAgentPreference 20;
AdvHomeAgentInfo on;
prefix 2001:660:5503:276c::/64
{
AdvRouterAddr on;
AdvOnLink on;
AdvAutonomous on;
AdvPreferredLifetime 10000;
AdvValidLifetime 12000;
};
};
# /etc/init.d/radvd start

3 Mobile Node

3.1 Setting Interfaces


Mobile node setidak nya mempunyai 1 interface eth1.
Konfigurasi interface :
# vim /etc/network/interfaces
auto eth1
iface eth1 inet6 static
address 2001:660:5503:276a::2
netmask 64
wireless-essid homenet
up echo 0 > /proc/sys/net/ipv6/conf/all/forwarding
up echo 1 > /proc/sys/net/ipv6/conf/all/autoconf
up echo 1 > /proc/sys/net/ipv6/conf/all/accept_ra
up echo 1 > /proc/sys/net/ipv6/conf/all/accept_redirects
# /etc/init.d/networking restart
3.2 Konfigurasi Mobile IPv6
Konfigurasi dari setting mobile IPv6 disimpan pada file /etc/mip6d.conf.

# vim /usr/local/etc/mip6d.conf
NodeConfig MN;
DebugLevel 10;
DoRouteOptimizationCN enabled;
Interface "eth1";
UseMnHaIPsec disabled;
DoRouteOptimizationMN enabled;
UseCnBuAck enabled;
MnHomeLink "eth1" {
HomeAgentAddress 2001:660:5503:276a::1;
HomeAddress 2001:660:5503:276a::2/64;
}
# mip6d -c /usr/local/etc/mip6d.conf

4 Server Multimedia

4.1 Setting Interfaces


Konfigurasi interfaces nya:
# vim /etc/network/interfaces
auto eth0
iface eth0 inet6 static
address 2001:660:5503:276b::3
netmask 64
up echo 0 > /proc/sys/net/ipv6/conf/all/forwarding
up echo 1 > /proc/sys/net/ipv6/conf/all/autoconf
up echo 1 > /proc/sys/net/ipv6/conf/all/accept_ra
up echo 1 > /proc/sys/net/ipv6/conf/all/accept_redirects
up ip route add 2001:660:5503:276a::/64 via 2001:660:5503:276b::2
up ip route add 2001:660:5503:276c::/64 via 2001:660:5503:276b::1
# /etc/init.d/networking restart
4.2 Konfigurasi WebServer
Konfigurasi dalam Webserver pada computer menggunakan aplikasi Apache2 sebagai
Webserver dan Bind9 sebagai DNS server, langkah pertama terlebih dulu kita instal aplikasi
tersebut,

# apt-get install apache2


# apt-get install bind9

Kemudian melakukan konfigurasi apache2, terhadap file /etc/apache2/site-available/default,


website kita berada dalam DocumentRoot pada path /home/webserver/web/,
# vim /etc/apache2/site-available/default
<VirtualHost [2001:660:5503:276b::3]:80>
DocumentRoot /home/webserver/web/
ServerName webserver.mobileip.com
</VirtualHost>

Setelah konfigurasi pada Apache2 selesai, selanjutnya tinggal melakukan konfigurasi pada
Bind9, sehingga nanti webserver streaming nya bias dibuka melalui domain alamat, file-file yang
akan dikonfigurasi adalah named.conf.default-zones, dan db.ipv6 yang merupakan copyan dari
db.local.

# vim /etc/bind/named.conf.default-zones
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "ipv6.tugasakhir.com" {
type master;
file "/etc/bind/db.ipv6";
allow-transfer {none;};
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};

Kemudian file db.ipv6 yang merupakan zona forwaders untuk domain nama tersebut sehingga
memangil site nya tidak lagi menggunakan ip tapi memforward langsung pada domain yang
dibuat,

; BIND data file for local loopback interface


$TTL 604800
@ IN SOA ipv6.tugasakhir.com. root.ipv6.tugasakhir.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
IN NS ipv6.tugasakhir.com.
IN MX 10 ipv6.tugasakhir.com.
AAAA 2001:660:5503:276b::3
secure IN CNAME www
private IN CNAME www
5 Correspondent Node

5.1 Konfigurasi interface


Konfigurasi interface nya;
# /etc/network/interfaces
auto eth0
iface eth0 inet6 static
address 2001:660:5503:276b::4
netmask 64
up echo 0 > /proc/sys/net/ipv6/conf/all/forwarding
up echo 1 > /proc/sys/net/ipv6/conf/all/autoconf
up echo 1 > /proc/sys/net/ipv6/conf/all/accept_ra
up echo 1 > /proc/sys/net/ipv6/conf/all/accept_redirects
up ip route add 2001:660:5503:276a::/64 via 2001:660:5503:276b::2
up ip route add 2001:660:5503:276c::/64 via 2001:660:5503:276b::1
# /etc/init.d/networking restart

5.2 Konfigurasi Mobile IPv6


Konfigurasi mip6d ;
# vim /usr/local/etc/mip6d.conf
NodeConfig CN;
DebugLevel 10;
DoRouteOptimizationCN enabled;
# mip6d -c /usr/local/etc/mip6d.conf

You might also like