IPv6 Prefix Delegation
R1 Configuration
ipv6 unicast-routing
ipv6 dhcp pool test
!
ipv6 dhcp pool isp
prefix-delegation pool cus
!
interface FastEthernet1/0
ipv6 address FE80::1 link-local
ipv6 address 2001:DB8:12::1/64
ipv6 dhcp server isp
!
ipv6 local pool cus 2001:DB8:2::/49 56
R2 Configuration
ipv6 unicast-routing
!
interface FastEthernet1/0
ipv6 address autoconfig default
ipv6 enable
ipv6 dhcp client pd from-isp
!
interface FastEthernet1/1
ipv6 address from-isp ::1/64
ipv6 enable
R3 Configuration
ipv6 unicast-routing
!
interface FastEthernet1/0
no ip address
speed auto
duplex auto
ipv6 address autoconfig default
ipv6 enable
R1#show ipv6 route
S 2001:DB8:2::/56 [1/0]
via FE80::C801:BFF:FE4C:1C, FastEthernet1/0
C 2001:DB8:12::/64 [0/0]
via FastEthernet1/0, directly connected
L 2001:DB8:12::1/128 [0/0]
via FastEthernet1/0, receive
L FF00::/8 [0/0]
via Null0, receive
R2#show ipv6 dhcp interface
FastEthernet1/0 is in client mode
State is OPEN
Renew will be sent in 3d11h
List of known servers:
Reachable via address: FE80::1
DUID: 00030001CA000B4C0000
Preference: 0
Configuration parameters:
IA PD: IA ID 0x00030001, T1 302400, T2 483840
Prefix: 2001:DB8:2::/56
preferred lifetime 604800, valid lifetime 2592000
expires at Sep 10 2013 03:33 PM (2590703 seconds)
Prefix name: from-isp
Rapid-Commit: disabled
R3#show ipv6 route
S ::/0 [2/0]
via FE80::C801:BFF:FE4C:1D, FastEthernet1/0
C 2001:DB8:2::/64 [0/0]
via FastEthernet1/0, directly connected
L 2001:DB8:2:0:C802:4FF:FED4:1C/128 [0/0]
via FastEthernet1/0, receive
L FF00::/8 [0/0]
via Null0, receive
R3#ping 2001:db8:12::1
Sending 5, 100-byte ICMP Echos to 2001:DB8:12::1, timeout is 2 seconds:
!!!!!
Showing posts with label IPv6. Show all posts
Showing posts with label IPv6. Show all posts
Sunday, 11 August 2013
Thursday, 21 February 2013
6VPE_Inter-AS-6VPE
Task
To get the full connectivity between site 1,2 and 3.
Configuration
R1
vrf definition one
rd 12:12
!
address-family ipv6
route-target import 3:3
route-target import 12:12
route-target export 12:12
exit-address-family
!
ipv6 unicast-routing
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface FastEthernet1/0
ip address 192.168.12.1 255.255.255.0
speed auto
duplex auto
mpls ip
!
interface FastEthernet1/1
vrf forwarding one
no ip address
speed auto
duplex auto
ipv6 address 2001:1:4::1/64
!
router ospf 1
log-adjacency-changes
network 1.1.1.1 0.0.0.0 area 0
network 192.168.12.1 0.0.0.0 area 0
!
router bgp 12
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 2.2.2.2 remote-as 12
neighbor 2.2.2.2 update-source Loopback0
!
address-family ipv4
no synchronization
no auto-summary
exit-address-family
!
address-family vpnv6
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community both
exit-address-family
!
address-family ipv6 vrf one
no synchronization
neighbor 2001:1:4::4 remote-as 4
neighbor 2001:1:4::4 activate
exit-address-family
!
mpls ldp router-id Loopback0 force
R2
vrf definition one
rd 12:12
!
address-family ipv6
route-target export 12:12
route-target import 12:12
route-target import 3:3
exit-address-family
!
ipv6 unicast-routing
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface FastEthernet1/0
ip address 192.168.12.2 255.255.255.0
speed auto
duplex auto
mpls ip
!
interface FastEthernet1/1
ip address 192.168.23.2 255.255.255.0
speed auto
duplex auto
mpls bgp forwarding
!
interface FastEthernet2/0
vrf forwarding one
no ip address
duplex full
ipv6 address 2001:2:5::2/64
!
router ospf 1
log-adjacency-changes
network 2.2.2.2 0.0.0.0 area 0
network 192.168.12.2 0.0.0.0 area 0
!
router bgp 12
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 1.1.1.1 remote-as 12
neighbor 1.1.1.1 update-source Loopback0
neighbor 192.168.23.3 remote-as 3
!
address-family ipv4
no synchronization
no auto-summary
exit-address-family
!
address-family vpnv6
neighbor 1.1.1.1 activate
neighbor 1.1.1.1 send-community both
neighbor 1.1.1.1 next-hop-self
neighbor 192.168.23.3 activate
neighbor 192.168.23.3 send-community both
exit-address-family
!
address-family ipv6 vrf one
redistribute static
no synchronization
exit-address-family
!
ipv6 route vrf one 2001::5/128 2001:2:5::5
!
mpls ldp router-id Loopback0 force
R3
vrf definition one
rd 3:3
!
address-family ipv6
route-target export 3:3
route-target import 3:3
route-target import 12:12
exit-address-family
!
ipv6 unicast-routing
!
interface FastEthernet1/0
ip address 192.168.23.3 255.255.255.0
speed auto
duplex auto
mpls bgp forwarding
!
interface FastEthernet1/1
vrf forwarding one
no ip address
speed auto
duplex auto
ipv6 address 2001:3:6::3/64
!
router bgp 3
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 192.168.23.2 remote-as 12
!
address-family ipv4
no synchronization
no auto-summary
exit-address-family
!
address-family vpnv6
neighbor 192.168.23.2 activate
neighbor 192.168.23.2 send-community both
exit-address-family
!
address-family ipv6 vrf one
redistribute static
no synchronization
exit-address-family
!
ipv6 route vrf one 2001::6/128 2001:3:6::6
R4
ipv6 unicast-routing
!
interface Loopback0
no ip address
ipv6 address 2001::4/128
!
interface FastEthernet1/0
no ip address
speed auto
duplex auto
ipv6 address 2001:1:4::4/64
!
router bgp 4
bgp router-id 4.4.4.4
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 2001:1:4::1 remote-as 12
!
address-family ipv4
no synchronization
no auto-summary
exit-address-family
!
address-family ipv6
no synchronization
network 2001::4/128
neighbor 2001:1:4::1 activate
exit-address-family
R5
ipv6 unicast-routing
!
interface Loopback0
no ip address
ipv6 address 2001::5/128
!
interface FastEthernet1/0
no ip address
speed auto
duplex auto
ipv6 address 2001:2:5::5/64
!
ipv6 route ::/0 2001:2:5::2
R6
ipv6 unicast-routing
!
interface Loopback0
no ip address
ipv6 address 2001::6/128
!
interface FastEthernet1/0
no ip address
speed auto
duplex auto
ipv6 address 2001:3:6::6/64
!
ipv6 route ::/0 2001:3:6::3
Verification
R4#ping 2001::5 source loopback 0
Packet sent with a source address of 2001::4
!!!!!
R4#ping 2001::6 source loopback 0
Packet sent with a source address of 2001::4
!!!!!
GNS FILE : http://www.4shared.com/rar/Kg5avCct/6VPE_Inter-AS-6VPE.html
Thursday, 14 February 2013
IPv6 6VPE
Configuration
R1
vrf definition one
rd 1:1
!
address-family ipv4
route-target export 1:1
route-target import 1:1
exit-address-family
!
address-family ipv6
route-target export 1:1
route-target import 1:1
exit-address-family
ipv6 unicast-routing
ipv6 cef
!
mpls ldp neighbor 2.2.2.2 password cisco
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface FastEthernet1/0
ip address 192.168.12.1 255.255.255.0
speed auto
duplex auto
mpls ip
!
interface FastEthernet1/1
vrf forwarding one
ip address 192.168.14.1 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:0:1:4::1/64
!
router ospf 1
log-adjacency-changes
network 1.1.1.1 0.0.0.0 area 0
network 192.168.12.1 0.0.0.0 area 0
!
router bgp 13
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 3.3.3.3 remote-as 13
neighbor 3.3.3.3 update-source Loopback0
!
address-family ipv4
no synchronization
no auto-summary
exit-address-family
!
address-family vpnv4
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community extended
exit-address-family
!
address-family vpnv6
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community extended
exit-address-family
!
address-family ipv4 vrf one
no synchronization
neighbor 192.168.14.4 remote-as 45
neighbor 192.168.14.4 activate
neighbor 192.168.14.4 as-override
exit-address-family
!
address-family ipv6 vrf one
no synchronization
neighbor 2001:0:1:4::4 remote-as 45
neighbor 2001:0:1:4::4 activate
neighbor 2001:0:1:4::4 as-override
exit-address-family
R2
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface FastEthernet1/0
ip address 192.168.12.2 255.255.255.0
speed auto
duplex auto
mpls ip
!
interface FastEthernet1/1
ip address 192.168.23.2 255.255.255.0
speed auto
duplex auto
mpls ip
!
router ospf 1
log-adjacency-changes
network 2.2.2.2 0.0.0.0 area 0
network 192.168.12.2 0.0.0.0 area 0
network 192.168.23.2 0.0.0.0 area 0
R3
vrf definition one
rd 3:3
!
address-family ipv4
route-target export 1:1
route-target import 1:1
exit-address-family
!
address-family ipv6
route-target export 1:1
route-target import 1:1
exit-address-family
!
ipv6 unicast-routing
ipv6 cef
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface FastEthernet1/0
ip address 192.168.23.3 255.255.255.0
speed auto
duplex auto
mpls ip
!
interface FastEthernet1/1
vrf forwarding one
ip address 192.168.35.3 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:0:3:5::3/64
!
router ospf 1
log-adjacency-changes
network 3.3.3.3 0.0.0.0 area 0
network 192.168.23.3 0.0.0.0 area 0
!
router bgp 13
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 1.1.1.1 remote-as 13
neighbor 1.1.1.1 update-source Loopback0
!
address-family ipv4
no synchronization
no auto-summary
exit-address-family
!
address-family vpnv4
neighbor 1.1.1.1 activate
neighbor 1.1.1.1 send-community extended
exit-address-family
!
address-family vpnv6
neighbor 1.1.1.1 activate
neighbor 1.1.1.1 send-community extended
exit-address-family
!
address-family ipv4 vrf one
no synchronization
neighbor 192.168.35.5 remote-as 45
neighbor 192.168.35.5 activate
neighbor 192.168.35.5 as-override
exit-address-family
!
address-family ipv6 vrf one
no synchronization
neighbor 2001:0:3:5::5 remote-as 45
neighbor 2001:0:3:5::5 activate
neighbor 2001:0:3:5::5 as-override
exit-address-family
R4
interface Loopback0
ip address 4.4.4.4 255.255.255.255
ipv6 address 2001:0:0:4::4/128
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface FastEthernet1/0
ip address 192.168.14.4 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:0:1:4::4/64
!
interface FastEthernet1/1
no ip address
shutdown
speed auto
duplex auto
!
router bgp 45
bgp log-neighbor-changes
neighbor 2001:0:1:4::1 remote-as 13
neighbor 192.168.14.1 remote-as 13
!
address-family ipv4
no synchronization
network 4.4.4.4 mask 255.255.255.255
no neighbor 2001:0:1:4::1 activate
neighbor 192.168.14.1 activate
no auto-summary
exit-address-family
!
address-family ipv6
no synchronization
network 2001:0:0:4::4/128
neighbor 2001:0:1:4::1 activate
exit-address-family
R5
interface Loopback0
ip address 5.5.5.5 255.255.255.255
ipv6 address 2001:0:0:5::5/128
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface FastEthernet1/0
ip address 192.168.35.5 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:0:3:5::5/64
!
interface FastEthernet1/1
no ip address
shutdown
speed auto
duplex auto
!
router bgp 45
bgp log-neighbor-changes
neighbor 2001:0:3:5::3 remote-as 13
neighbor 192.168.35.3 remote-as 13
!
address-family ipv4
no synchronization
network 5.5.5.5 mask 255.255.255.255
no neighbor 2001:0:3:5::3 activate
neighbor 192.168.35.3 activate
no auto-summary
exit-address-family
!
address-family ipv6
no synchronization
network 2001:0:0:5::5/128
neighbor 2001:0:3:5::3 activate
exit-address-family
GNS File : http://www.4shared.com/rar/wjwJGD4L/ipv6_6vpe.html
Wednesday, 13 February 2013
IPv6 6PE
Configuration
R1
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet1/0
ip address 192.168.12.1 255.255.255.0
ip router isis
speed auto
duplex auto
mpls ip
!
interface FastEthernet1/1
ip address 192.168.14.1 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:0:1:4::1/64
!
router isis
net 49.0000.0000.0001.00
metric-style wide transition
passive-interface Loopback0
!
router bgp 13
bgp log-neighbor-changes
neighbor 3.3.3.3 remote-as 13
neighbor 3.3.3.3 update-source Loopback0
neighbor 2001:0:1:4::4 remote-as 4
neighbor 192.168.14.4 remote-as 4
!
address-family ipv4
no synchronization
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 next-hop-self
no neighbor 2001:0:1:4::4 activate
neighbor 192.168.14.4 activate
no auto-summary
exit-address-family
!
address-family ipv6
no synchronization
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-label
neighbor 2001:0:1:4::4 activate
exit-address-family
R2
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet1/0
ip address 192.168.12.2 255.255.255.0
ip router isis
speed auto
duplex auto
mpls ip
!
interface FastEthernet1/1
ip address 192.168.23.2 255.255.255.0
ip router isis
speed auto
duplex auto
mpls ip
!
router isis
net 49.0000.0000.0002.00
metric-style wide transition
passive-interface Loopback0
!
mpls ldp router-id Loopback0 force
R3
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet1/0
ip address 192.168.23.3 255.255.255.0
ip router isis
speed auto
duplex auto
mpls ip
!
interface FastEthernet1/1
ip address 192.168.35.3 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:0:3:5::3/64
!
router isis
net 49.0000.0000.0003.00
metric-style wide transition
passive-interface Loopback0
!
router bgp 13
bgp log-neighbor-changes
neighbor 1.1.1.1 remote-as 13
neighbor 1.1.1.1 update-source Loopback0
neighbor 2001:0:3:5::5 remote-as 5
neighbor 192.168.35.5 remote-as 5
!
address-family ipv4
no synchronization
neighbor 1.1.1.1 activate
neighbor 1.1.1.1 next-hop-self
no neighbor 2001:0:3:5::5 activate
neighbor 192.168.35.5 activate
no auto-summary
exit-address-family
!
address-family ipv6
no synchronization
neighbor 1.1.1.1 activate
neighbor 1.1.1.1 send-label
neighbor 2001:0:3:5::5 activate
exit-address-family
!
mpls ldp router-id Loopback0 force
R4
interface Loopback0
ip address 4.4.4.4 255.255.255.255
ipv6 address 2001:0:0:1::1/128
!
interface FastEthernet1/0
ip address 192.168.14.4 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:0:1:4::4/64
!
router bgp 4
bgp log-neighbor-changes
neighbor 2001:0:1:4::1 remote-as 13
neighbor 192.168.14.1 remote-as 13
!
address-family ipv4
no synchronization
network 4.4.4.4 mask 255.255.255.255
no neighbor 2001:0:1:4::1 activate
neighbor 192.168.14.1 activate
no auto-summary
exit-address-family
!
address-family ipv6
no synchronization
network 2001:0:0:1::1/128
neighbor 2001:0:1:4::1 activate
exit-address-family
R5
interface Loopback0
ip address 5.5.5.5 255.255.255.255
ipv6 address 2001:0:0:5::5/128
!
interface FastEthernet1/0
ip address 192.168.35.5 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:0:3:5::5/64
!
router bgp 5
bgp log-neighbor-changes
neighbor 2001:0:3:5::3 remote-as 13
neighbor 192.168.35.3 remote-as 13
!
address-family ipv4
no synchronization
network 5.5.5.5 mask 255.255.255.255
no neighbor 2001:0:3:5::3 activate
neighbor 192.168.35.3 activate
no auto-summary
exit-address-family
!
address-family ipv6
no synchronization
network 2001:0:0:5::5/128
neighbor 2001:0:3:5::3 activate
exit-address-family
GNS File : http://www.4shared.com/rar/OOiHBwX0/IPv6_6PE.html
Monday, 1 October 2012
IPv6 Tunnels
Automatic 6to4 Tunnel
Tunnel format
2002(16 bits) + IPv4 address(32 bits) + Subnet(16 bits) + Interface ID(64 bits)
First 16 bits of 6to4 tunnel always starts with 2002.
Tunnel is point-to-multipoint in nature.
IPv4 address bits are written in HEX value here, for example, 1.1.1.1 = 0101:0101
When routed a packet through the tunnel, router looks at the IPv4 bits portion and forwards to the appropriate destination router.
R1 Config
interface Loopback0
ip address 1.1.1.1 255.255.255.255
ipv6 address 2002:101:101:1::1/64
!
interface Tunnel0
ipv6 address 2002:101:101::1/64
tunnel source Loopback0
tunnel mode ipv6ip 6to4
!
interface FastEthernet0/0
ip address 192.168.12.1 255.255.255.0
!
router ospf 1
log-adjacency-changes
network 1.1.1.1 0.0.0.0 area 0
network 192.168.12.1 0.0.0.0 area 0
!
ipv6 route 2002::/16 Tunnel0
R2 Config
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 192.168.12.2 255.255.255.0
!
interface FastEthernet0/1
ip address 192.168.23.2 255.255.255.0
!
router ospf 1
log-adjacency-changes
network 2.2.2.2 0.0.0.0 area 0
network 192.168.12.2 0.0.0.0 area 0
network 192.168.23.2 0.0.0.0 area 0
R3 Config
interface Loopback0
ip address 3.3.3.3 255.255.255.255
ipv6 address 2002:303:303:3::3/64
!
interface Tunnel0
ipv6 address 2002:303:303::3/64
tunnel source Loopback0
tunnel mode ipv6ip 6to4
!
interface FastEthernet0/0
ip address 192.168.23.3 255.255.255.0
!
router ospf 1
log-adjacency-changes
network 3.3.3.3 0.0.0.0 area 0
network 192.168.23.3 0.0.0.0 area 0
!
ipv6 route 2002::/16 Tunnel0
Verification
R1#show ipv6 route
S 2002::/16 [1/0]
via ::, Tunnel0
C 2002:101:101::/64 [0/0]
via ::, Tunnel0
L 2002:101:101::1/128 [0/0]
via ::, Tunnel0
C 2002:101:101:1::/64 [0/0]
via ::, Loopback0
L 2002:101:101:1::1/128 [0/0]
via ::, Loopback0
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0
R1#ping 2002:0303:0303:3::3 source loopback 0
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/43/60 ms
-----------------------------------------------------------------------------------------------------
ISATAP Tunnel
Tunnel format
Prefix ID(64 bits) + 0000(16 bits) + 5EFE + IPv4 address(32 bits)
R1 Config
interface Loopback1
ipv6 address 2001:1::1/64
!
interface Tunnel1
no ip address
no ip redirects
ipv6 address 2001:13::/64 eui-64
tunnel source Loopback0
tunnel mode ipv6ip isatap
!
ipv6 route 2001:3::/64 2001:13::5EFE:303:303
R3 Config
interface Loopback1
ipv6 address 2001:3::3/64
!
interface Tunnel1
no ip address
no ip redirects
ipv6 address 2001:13::/64 eui-64
tunnel source Loopback0
tunnel mode ipv6ip isatap
!
ipv6 route 2001:1::/64 2001:13::5EFE:101:101
Verification
R1#show ipv6 interface brief | in Tunnel1
Tunnel1 [up/up]
FE80::5EFE:101:101
2001:13::5EFE:101:101
R3#show ipv6 interface brief | in Tunnel1
Tunnel1 [up/up]
FE80::5EFE:303:303
2001:13::5EFE:303:303
R1#show ipv6 route | in 2001:3
S 2001:3::/64 [1/0]
via 2001:13::5EFE:303:303
R1#ping 2001:3::3 source loopback 1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/36/48 ms
Wednesday, 26 September 2012
IPv6 routing with RIPng, OSPFv3 and BGP(all routers configuration)
R1 Config
ipv6 unicast-routing
!
interface FastEthernet0/0
ipv6 address 2001:12::1/64
ipv6 ospf 1 area 0
!
interface FastEthernet0/1
ipv6 address 2001:13::1/64
ipv6 ospf 1 area 13
!
ipv6 route 2001:1::1/128 Null0
!
ipv6 router ospf 1
router-id 1.1.1.1
log-adjacency-changes
summary-prefix 2001:1::/64
redistribute static
R2 Config
ipv6 unicast-routing
!
interface Loopback0
ipv6 address 2001:2::2/128
ipv6 ospf 1 area 0
!
interface FastEthernet0/0
ipv6 address 2001:12::2/64
ipv6 ospf 1 area 0
!
interface FastEthernet0/1
ipv6 address 2001:24::2/64
ipv6 ospf 1 area 24
!
ipv6 router ospf 1
router-id 2.2.2.2
log-adjacency-changes
area 24 range 2001:4::/64
R3 Config
ipv6 unicast-routing
!
interface Loopback0
ipv6 address 2001:3::3/128
ipv6 ospf 1 area 13
!
interface FastEthernet0/0
ipv6 address 2001:13::3/64
ipv6 ospf 1 area 13
!
interface FastEthernet0/1
ipv6 address 2001:35::3/64
ipv6 rip 35 enable
!
ipv6 router ospf 1
router-id 3.3.3.3
log-adjacency-changes
redistribute rip 35 tag 120 include-connected
!
ipv6 router rip 35
distribute-list prefix-list R4-NETWORK out
redistribute ospf 1 metric 1 route-map TO-RIP
!
ipv6 prefix-list R4-NETWORK seq 5 deny 2001:4::/64
ipv6 prefix-list R4-NETWORK seq 10 permit ::/0 le 128
!
route-map TO-RIP permit 10
match tag 6
!
route-map TO-RIP deny 20
match route-type external
!
route-map TO-RIP permit 100
R4 Config
ipv6 unicast-routing
!
interface Loopback0
ipv6 address 2001:4::4/128
ipv6 ospf 1 area 24
!
interface FastEthernet0/0
ipv6 address 2001:24::4/64
ipv6 ospf 1 area 24
!
interface FastEthernet0/1
ipv6 address 2001:46::4/64
!
router bgp 1
no synchronization
bgp router-id 4.4.4.4
bgp log-neighbor-changes
neighbor 2001:46::6 remote-as 6
no neighbor 2001:46::6 activate
no auto-summary
!
address-family ipv6
neighbor 2001:46::6 activate
redistribute ospf 1 match external 1 external 2 route-map TO-BGP
no synchronization
exit-address-family
!
ipv6 router ospf 1
router-id 4.4.4.4
log-adjacency-changes
redistribute bgp 1 route-map FROM-BGP
!
ipv6 prefix-list FROM-BGP seq 5 permit 2001:6::/57
!
route-map TO-BGP permit 10
match tag 120
!
route-map FROM-BGP permit 10
match ipv6 address prefix-list FROM-BGP
set tag 6
R5 Config
ipv6 unicast-routing
!
interface Loopback0
ipv6 address 2001:5::5/128
ipv6 rip 35 enable
!
interface FastEthernet0/0
ipv6 address 2001:35::5/64
ipv6 rip 35 enable
!
ipv6 router rip 35
R6 Config
ipv6 unicast-routing
!
interface Loopback0
ipv6 address 2001:6:0:6::6/64
!
interface Loopback1
ipv6 address 2001:6:0:60::6/58
!
interface FastEthernet0/0
ipv6 address 2001:46::6/64
!
router bgp 6
no synchronization
bgp router-id 6.6.6.6
bgp log-neighbor-changes
neighbor 2001:46::4 remote-as 1
no neighbor 2001:46::4 activate
no auto-summary
!
address-family ipv6
neighbor 2001:46::4 activate
network 2001:6:0:6::/64
network 2001:6:0:60::/58
aggregate-address 2001:6::/57 summary-only
exit-address-family
Tuesday, 25 September 2012
IPv6 Routing with OSPFv3(Summarization and virtual-link)
In this lab, R4 will announce 2001:4::4/128 prefix into area 24.
When the advertisment reach ABR(R2) of area 24, R2 will summarize it into /64.
Likewise, R1 is also redistributing 2001:1::1/128 route into OSPF domain, since R1 is the ASBR itself, we can summarize it on R1. In this case, we will summarize it into /64.
R3 is not connecting to backbone area, R3 is announcing 2001::3/128 into area 3. The advertisement cannot reach to the rest of the OSPF domain.
In order to reach every other routers, R3 needs to be connected to backbone area which is area 0, so we will build virtual link between R1 and R3 to extend the backbone area to R3.
R1 Config
ipv6 unicast-routing
!
interface FastEthernet0/0
ipv6 address 2001:12::1/64
ipv6 ospf 1 area 0
!
interface FastEthernet0/1
ipv6 address 2001:13::1/64
ipv6 ospf 1 area 13
!
ipv6 route 2001:1::1/128 Null0
ipv6 router ospf 1
router-id 1.1.1.1
log-adjacency-changes
area 13 virtual-link 3.3.3.3
summary-prefix 2001:1::/64
redistribute static
R2 Config
ipv6 unicast-routing
!
interface FastEthernet0/0
ipv6 address 2001:12::2/64
ipv6 ospf 1 area 0
!
interface FastEthernet0/1
ipv6 address 2001:24::2/64
ipv6 ospf 1 area 24
!
ipv6 router ospf 1
router-id 2.2.2.2
log-adjacency-changes
area 24 range 2001:4::/64
R3 Config
ipv6 unicast-routing
!
interface Loopback0
ipv6 address 2001::3/128
ipv6 ospf 1 area 3
!
interface FastEthernet0/0
ipv6 address 2001:13::3/64
ipv6 ospf 1 area 13
!
ipv6 router ospf 1
router-id 3.3.3.3
log-adjacency-changes
area 13 virtual-link 1.1.1.1
redistribute static
R4 Config
ipv6 unicast-routing
!
interface Loopback0
ipv6 address 2001:4::4/128
ipv6 ospf 1 area 24
!
interface FastEthernet0/0
ipv6 address 2001:24::4/64
ipv6 ospf 1 area 24
!
ipv6 router ospf 1
router-id 4.4.4.4
Verification
R1#show ipv6 route ospf
IPv6 Routing Table - 11 entries
O 2001::3/128 [110/10]
via FE80::C602:11FF:FE5C:0, FastEthernet0/1
O 2001:1::/64 [110/0]
via ::, Null0
OI 2001:4::/64 [110/20]
via FE80::C601:1EFF:FE74:0, FastEthernet0/0
OI 2001:24::/64 [110/20]
via FE80::C601:1EFF:FE74:0, FastEthernet0/0
R2#show ipv6 route ospf
OI 2001::3/128 [110/20]
via FE80::C600:1EFF:FE74:0, FastEthernet0/0
OE2 2001:1::/64 [110/20]
via FE80::C600:1EFF:FE74:0, FastEthernet0/0
O 2001:4::/64 [110/0]
via ::, Null0
O 2001:4::4/128 [110/10]
via FE80::C603:11FF:FE5C:0, FastEthernet0/1
OI 2001:12::1/128 [110/10]
via FE80::C600:1EFF:FE74:0, FastEthernet0/0
OI 2001:13::/64 [110/20]
via FE80::C600:1EFF:FE74:0, FastEthernet0/0
R3#show ipv6 route ospf
OE2 2001:1::/64 [110/20]
via FE80::C600:1EFF:FE74:1, FastEthernet0/0
OI 2001:4::/64 [110/30]
via FE80::C600:1EFF:FE74:1, FastEthernet0/0
O 2001:12::/64 [110/20]
via FE80::C600:1EFF:FE74:1, FastEthernet0/0
O 2001:12::1/128 [110/10]
via FE80::C600:1EFF:FE74:1, FastEthernet0/0
OI 2001:24::/64 [110/30]
via FE80::C600:1EFF:FE74:1, FastEthernet0/0
R4#show ipv6 route ospf
OI 2001::3/128 [110/30]
via FE80::C601:1EFF:FE74:1, FastEthernet0/0
OE2 2001:1::/64 [110/20]
via FE80::C601:1EFF:FE74:1, FastEthernet0/0
OI 2001:12::/64 [110/20]
via FE80::C601:1EFF:FE74:1, FastEthernet0/0
OI 2001:12::1/128 [110/20]
via FE80::C601:1EFF:FE74:1, FastEthernet0/0
OI 2001:13::/64 [110/30]
via FE80::C601:1EFF:FE74:1, FastEthernet0/0
Subscribe to:
Posts (Atom)





