IPv6 automatic 6to4 Tunneling

# IPv6 automatic 6to4 Tunneling
# TOPOLOGY
# R1 is IPv4 only backbone, R2, R3 and R4 are all connected to R1 over Frame-Relay circuits

# Reference
1. IPv6 over IPv4 Tunneling, http://packetlife.net/blog/2010/mar/15/6to4-ipv6-tunneling/
2. IPv4 to IPv6 Conversion, https://www.ultratools.com/tools/ipv4toipv6

 

1. Configure IPv4 backbone for full connectivity;
# R1
configure terminal
interface Serial1/0
encapsulation frame-relay
no arp frame-relay
no frame-relay inverse-arp
no shutdown
end
show frame-relay pvc | in DLCI

configure terminal
interface Loopback0
ip address 172.28.0.1 255.255.255.255
interface Serial1/0.102 point-to-point
ip address 172.28.1.1 255.255.255.252
ip ospf network point-to-point
frame-relay interface-dlci 201
interface Serial1/0.103 point-to-point
ip address 172.28.1.5 255.255.255.252
ip ospf network point-to-point
frame-relay interface-dlci 301
interface Serial1/0.104 point-to-point
ip address 172.28.1.9 255.255.255.252
ip ospf network point-to-point
frame-relay interface-dlci 401
end

configure terminal
router ospf 100
router-id 172.28.0.1
log-adjacency-changes detail
network 172.28.0.1 0.0.0.0 area 0
network 172.28.1.1 0.0.0.0 area 0
network 172.28.1.5 0.0.0.0 area 0
network 172.28.1.9 0.0.0.0 area 0
end

# R2
configure terminal
interface Loopback0
ip address 172.28.0.2 255.255.255.255
interface Serial1/0.201 point-to-point
ip address 172.28.1.2 255.255.255.252
ip ospf network point-to-point
frame-relay interface-dlci 102
end

configure terminal
router ospf 100
router-id 172.28.0.2
log-adjacency-changes detail
network 172.28.0.2 0.0.0.0 area 0
network 172.28.1.2 0.0.0.0 area 0
end

# R3
configure terminal
interface Loopback0
ip address 172.28.0.3 255.255.255.255
interface Serial1/0.301 point-to-point
ip address 172.28.1.6 255.255.255.252
ip ospf network point-to-point
frame-relay interface-dlci 103
end

configure terminal
router ospf 100
router-id 172.28.0.3
log-adjacency-changes detail
network 172.28.0.3 0.0.0.0 area 0
network 172.28.1.6 0.0.0.0 area 0
end

# R4
configure terminal
interface Loopback0
ip address 172.28.0.4 255.255.255.255
interface Serial1/0.401 point-to-point
ip address 172.28.1.10 255.255.255.252
ip ospf network point-to-point
frame-relay interface-dlci 104
end

configure terminal
router ospf 100
router-id 172.28.0.4
log-adjacency-changes detail
network 172.28.0.4 0.0.0.0 area 0
network 172.28.1.10 0.0.0.0 area 0
end

 

2. Configure automatic IPv6 6to4 tunnel on R2, R3 and R4
# R2
configure terminal
ipv6 unicast-routing
ipv6 cef
interface Tunnel0
no shutdown
ipv6 address 2002:ac1c:0102::1/64
tunnel source 172.28.1.2
tunnel mode ipv6ip 6to4
ipv6 route 2002::/16 Tunnel0
interface Loopback1
ipv6 address 2002:ac1c:0102:1000::1/128
interface FastEthernet0/0
no shutdown
ipv6 address 2001:DB8:172:2802::1/64
end

# R3
configure terminal
ipv6 unicast-routing
ipv6 cef
interface Tunnel0
no shutdown
ipv6 address 2002:ac1c:0106::1/64
tunnel source 172.28.1.6
tunnel mode ipv6ip 6to4
ipv6 route 2002::/16 Tunnel0
interface Loopback1
ipv6 address 2002:ac1c:0106:1000::1/128
interface FastEthernet0/0
no shutdown
ipv6 address 2001:DB8:172:2803::1/64
end

# R4
configure terminal
ipv6 unicast-routing
ipv6 cef
interface Tunnel0
no shutdown
ipv6 address 2002:ac1c:010a::1/64
tunnel source 172.28.1.10
tunnel mode ipv6ip 6to4
ipv6 route 2002::/16 Tunnel0
interface Loopback1
ipv6 address 2002:ac1c:010a:1000::1/128
interface FastEthernet0/0
no shutdown
ipv6 address 2001:DB8:172:2804::1/64
end

 

3. Configure IPv6 BGP peers between Loopback1 interfaces on R2, R3 and R4, and advertise FastEther0/0 IPv6 network
# R2
configure terminal
router bgp 65401
bgp router-id 172.28.1.2
bgp log-neighbor-changes
neighbor 2002:ac1c:0106:1000::1 remote-as 65401
neighbor 2002:ac1c:0106:1000::1 update-source Loopback1
neighbor 2002:ac1c:010a:1000::1 remote-as 65401
neighbor 2002:ac1c:010a:1000::1 update-source Loopback1
address-family ipv4
no neighbor 2002:ac1c:0106:1000::1 activate
no neighbor 2002:ac1c:010a:1000::1 activate
exit-address-family
address-family ipv6
network 2001:DB8:172:2802::1/64
neighbor 2002:ac1c:0106:1000::1 activate
neighbor 2002:ac1c:010a:1000::1 activate
exit-address-family
end
# R3
configure terminal
router bgp 65401
bgp router-id 172.28.1.6
bgp log-neighbor-changes
neighbor 2002:ac1c:0102:1000::1 remote-as 65401
neighbor 2002:ac1c:0102:1000::1 update-source Loopback1
neighbor 2002:ac1c:010a:1000::1 remote-as 65401
neighbor 2002:ac1c:010a:1000::1 update-source Loopback1
address-family ipv4
no neighbor 2002:ac1c:0102:1000::1 activate
no neighbor 2002:ac1c:010a:1000::1 activate
exit-address-family
address-family ipv6
network 2001:DB8:172:2803::1/64
neighbor 2002:ac1c:0102:1000::1 activate
neighbor 2002:ac1c:010a:1000::1 activate
exit-address-family
end
# R4
configure terminal
router bgp 65401
bgp router-id 172.28.1.10
bgp log-neighbor-changes
neighbor 2002:ac1c:0102:1000::1 remote-as 65401
neighbor 2002:ac1c:0102:1000::1 update-source Loopback1
neighbor 2002:ac1c:0106:1000::1 remote-as 65401
neighbor 2002:ac1c:0106:1000::1 update-source Loopback1
address-family ipv4
no neighbor 2002:ac1c:0102:1000::1 activate
no neighbor 2002:ac1c:0106:1000::1 activate
exit-address-family
address-family ipv6
network 2001:DB8:172:2804::1/64
neighbor 2002:ac1c:0102:1000::1 activate
neighbor 2002:ac1c:0106:1000::1 activate
exit-address-family
end

 

Advertisements
This entry was posted in Routing and Switching and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s