Cisco IPv6: Dynamic Tunnel IPv6

From OnnoWiki
Revision as of 15:36, 28 December 2023 by Onnowpurbo (talk | contribs) (Created page with "R1, enable configure terminal interface Ethernet 1/0 no shutdown ip address 12.12.12.1 255.255.255.0 exit interface Ethernet 1/1 no shutdown ip address 13.13.13.1...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

R1,

enable 
configure terminal
interface Ethernet 1/0
no shutdown
ip address 12.12.12.1 255.255.255.0
exit

interface Ethernet 1/1
no shutdown	
ip address 13.13.13.1 255.255.255.0 
exit

router ospf 1
network 12.12.12.0 0.0.0.255 area 0 
network 13.13.13.0 0.0.0.255 area 0
exit

R2,

enable 
configure terminal
interface Ethernet 1/0
no shutdown 
ip address 12.12.12.2 255.255.255.0
exit

interface Ethernet 1/1
no shutdown
ipv6 address 2001:1:2:3::1/64
exit

router ospf 1
network 12.12.12.0 0.0.0.255 area 0
exit

R3,

enable 
configure terminal
interface Ethernet 1/0 
no shutdown 
ip address 13.13.13.3 255.255.255.0
exit

interface Ethernet 1/1
no shutdown
ipv6 address 2001:4:5:6::1/64 
exit

router ospf 1
network 13.13.13.0 0.0.0.255 area 0
exit 

Selanjutnya kita konfigurasikan 6to4 tunnel pada R2 dan R3

R2,

interface tunnel 0 
ipv6 address 2002:0c0c:0c02::2/64 
tunnel source Ethernet 1/0 
tunnel mode ipv6ip 6to4 
exit

R3,

interface tunnel0
ipv6 address 2002:0d0d:0d03::3/64 
tunnel source Ethernet 1/0
tunnel mode ipv6ip 6to4 
exit


Set routing

R2,

ipv6 unicast-routing
ipv6 route 2002::/16 tunnel 0
ipv6 route 2001:4:5:6::/64 2002:0d0d:0d03::3

R3

ipv6 unicast-routing
ipv6 route 2002::/16 tunnel 0
ipv6 route 2001:1:2:3::/64 2002:0c0c:0c02::2

Cek

R2

do show interface tunnel 0
do show ipv6 route
do ping 2001:4:5:6::1

R3

do show interface tunnel 0
do show ipv6 route
do ping 2001:1:2:3::1