Sie sind auf Seite 1von 6

PERANCANGAN JARINGAN MOBILE IPV6

AR HA & AR
Visitnet 1 Home Net
et
fec0:106:1100::/64 fec0:106:2700::/64

eth0
ath0 eth0 ath0

fec0:106:2300::/64

AR
Visitnet 2
et
fec0:106:2700::/64

eth0
Mobile
Node ath0

Konfigurasi :
1. Home Agent
HA : selain sebagai Home Agent juga sebagai Router. mempunyai 2 interface eth0 dan
ath0
# vim /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet6 static
address fec0:106:2300::1
netmask 64
auto ath0
iface ath0 inet6 static
address fec0:106:2700::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 fec0:106:1100::/64 via fec0:106:2300::2
up ip route add fec0:106:1000::/64 via fec0:106:2300::3
up ip route add ::/0 via fec0:106:2700::1

# /etc/init.d/networking restart

# vim /etc/radvd.conf
interface ath0
{
AdvSendAdvert on;
MaxRtrAdvInterval 3;
MinRtrAdvInterval 1;
AdvIntervalOpt off;
AdvHomeAgentFlag on;
HomeAgentLifetime 10000;
HomeAgentPreference 20;
AdvHomeAgentInfo on;
prefix fec0:106:2700::1/64
{
AdvRouterAddr on;
AdvOnLink on;
AdvAutonomous on;
AdvPreferredLifetime 10000;
AdvValidLifetime 12000;
};
};
2. Foreign Agent 1
FA 1 : mempunyai 2 interface eth0 dan ath0
# vim /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet6 static
address fec0:106:2300::2
netmask 64
auto ath0
iface ath0 inet6 static
address fec0:106:1100::1
netmask 64
wireless-mode ad-hoc
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 fec0:106:2700::/64 via fec0:106:2300::1
up ip route add fec0:106:1000::/64 via fec0:106:2300::3

# /etc/init.d/networking restart

# vim /etc/radvd.conf
interface eth1
{
AdvSendAdvert on;
AdvIntervalOpt on;
MinRtrAdvInterval 3;
MaxRtrAdvInterval 10;
AdvHomeAgentFlag off;
prefix fec0:106:1100::/64
{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};
};
3. Foreign Agent 2
FA 2 : mempunyai 2 interface eth0 dan ath0
# vim /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet6 static
address fec0:106:2300::3
netmask 64
auto ath0
iface ath0 inet6 static
address fec0:106:1000::1
netmask 64
wireless-mode ad-hoc
wireless-essid visitnet2
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 fec0:106:2700::/64 via fec0:106:2300::1
up ip route add fec0:106:1100::/64 via fec0:106:2300::2

# /etc/init.d/networking restart

# vim /etc/radvd.conf
interface eth1
{
AdvSendAdvert on;
AdvIntervalOpt on;

MinRtrAdvInterval 3;
MaxRtrAdvInterval 10;
AdvHomeAgentFlag off;

prefix fec0:106:1000::/64
{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};
};
4. Mobile Node
MN : mempunyai 1 interface ath0 :
# vim /etc/network/interfaces
auto lo
iface lo inet loopback
auto ath0
iface ath0 inet6 static
address fec0:106:2700::2
netmask 64
wireless-essid homenet
wireless-mode ad-hoc
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

Das könnte Ihnen auch gefallen