Difference between revisions of "IPv6: BIRD1: Static Routing Sederhana"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 18: | Line 18: | ||
R1: | R1: | ||
+ | ifconfig eth1 192.168.122.100 netmask 255.255.255.0 | ||
ifconfig eth1 2001:192:168:122::100/64 | ifconfig eth1 2001:192:168:122::100/64 | ||
+ | ifconfig eth1 172.16.1.1 netmask 255.255.255.0 | ||
ifconfig eth2 2001:172:16:1::1/64 | ifconfig eth2 2001:172:16:1::1/64 | ||
+ | ifconfig eth1 192.168.1.1 netmask 255.255.255.0 | ||
ifconfig eth3 2001:192:168:1::1/64 | ifconfig eth3 2001:192:168:1::1/64 | ||
R2: | R2: | ||
+ | ifconfig eth1 172.16.1.2 netmask 255.255.255.0 | ||
ifconfig eth1 2001:172:16:1::2/64 | ifconfig eth1 2001:172:16:1::2/64 | ||
+ | ifconfig eth1 192.168.2.1 netmask 255.255.255.0 | ||
ifconfig eth2 2001:192:168:2::1/64 | ifconfig eth2 2001:192:168:2::1/64 | ||
Revision as of 08:24, 20 January 2019
Topologi
R1 e1 --> CLOUD nat0 e2 --> R2 e1 e3 --> LAN 192.168.1.1/24
R2 e1 --> R1 e2 e2 --> LAN 192.168.2.1/24
Konfigurasi Shell
R1:
ifconfig eth1 192.168.122.100 netmask 255.255.255.0 ifconfig eth1 2001:192:168:122::100/64 ifconfig eth1 172.16.1.1 netmask 255.255.255.0 ifconfig eth2 2001:172:16:1::1/64 ifconfig eth1 192.168.1.1 netmask 255.255.255.0 ifconfig eth3 2001:192:168:1::1/64
R2:
ifconfig eth1 172.16.1.2 netmask 255.255.255.0 ifconfig eth1 2001:172:16:1::2/64 ifconfig eth1 192.168.2.1 netmask 255.255.255.0 ifconfig eth2 2001:192:168:2::1/64
Routing
R1:
# vi /usr/local/etc/bird6.conf # BIRD appliance di GNS3 vi /etc/bird.conf # BIRD di OpenWRT
edit
router id 172.16.1.1; protocol kernel { import all; export all; learn; scan time 20; } protocol device { import all; export all; scan time 10; # Scan interfaces every 10 seconds } protocol static { route 2001:192:168:2::/64 via 2001:172:16:1::2; }
Restart BIRD
# BIRD di OpenWRT killall zebra killall bgpd killall watchquagga killall ospfd killall ospf6d killall ripd killall ripngd killall bird4 killall bird6 bird6
R2:
# vi /usr/local/etc/bird6.conf # BIRD appliance di GNS3 vi /etc/bird.conf
edit
router id 172.16.1.2; protocol kernel { import all; export all; learn; scan time 20; } protocol device { import all; export all; scan time 10; # Scan interfaces every 10 seconds } protocol static { route 2001:192:168:1::/64 via 2001:172:16:1::1; }
Restart BIRD
# BIRD di OpenWRT killall zebra killall bgpd killall watchquagga killall ospfd killall ospf6d killall ripd killall ripngd killall bird4 killall bird6 bird6
Cek
jalankan di shell
birdc4
ketik
show interfaces show static
Test
R1:
ping 2001:172:16:1::2 ping 2001:192:168:2::1
R2:
ping 2001:172:16:1::1 ping 2001:192:168:1::1
Setting Client
LAN 1 Client:
ip 2001:192:168:1::100/64 2001:192:168:1::1
LAN 2 Client:
ip 2001:192:168:2::100/64 2001:192:168:2::1
Referensi
Pranala Menarik