cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1220
Views
0
Helpful
1
Replies

IPv6: OSPFv3 and BGP

paaljakobsen
Level 1
Level 1

I am labbing my IPv6 network:

My network addressed with 2001:DB8::/32 prefix. I have done a splitting so that the 2001:DB8::/33 belongs to site 1 and 2001:DB8:8000::/33 belongs to Site 2.

I have a host on site 2 with IPv6 address 2001:DB8:8000:600::100/64 which is reachable within our AS but no from anywhere else on the internet.

If I want that host to be reachable from rest of the internet i have two options:

1) on Router1 : --> ipv6 router ospf 65512 --> restribute bgp 65512

2) on Router2 : set default-gw to Router 1 --> ipv6 router ::/0 <router 1 ip address>

In my head, none of these options seems to be any good. Any tips?

ospf-bgp.jpg

Router 1

!

interface Loopback0

description OSPF/BGP Loopback interface

ipv6 address 2001:DB8::1/128

!

interface GigabitEthernet0

ipv6 address 2A00:1E18:8100:1::2/64

ipv6 enable

ipv6 ospf 1 area 0

no cdp enable

!

router bgp 65512

no synchronization

bgp router-id 1.1.1.1

bgp log-neighbor-changes

neighbor 2001:7F8::x remote-as 6939

neighbor 2001:7F8::x description Transit-HurricanE

neighbor 2001:978::x remote-as 174

neighbor 2001:978::x description Transit-Cogent

no auto-summary

!

address-family ipv6

  neighbor 2001:7F8::x activate

  neighbor 2001:7F8::x soft-reconfiguration inbound

  neighbor 2001:7F8::x prefix-list announceAS-IPv6 out

  neighbor 2001:978::x activate

  neighbor 2001:978::x soft-reconfiguration inbound

  neighbor 2001:978::x prefix-list announceAS-IPv6 out

  network 2001:DB8::/32

exit-address-family

!

ipv6 router ospf 65512

log-adjacency-changes

area 1 range 2001:DB8::/33

redistribute static

redistribute bgp 8896

!

ipv6 prefix-list announceAS-IPv6 seq 5 permit 2001:DB8::/32

!

ipv6 route 2001:DB8::/32 Null0

ipv6 route 2001:DB8:8000::1/128 2001:DB8:8100:1::1

Router 2

!

interface Loopback0

description OSPF/BGP Loopback interface

ipv6 address 2001:DB8:8000:1/128

!

interface GigabitEthernet0

ipv6 address 2A00:1E18:8100:1::1/64

ipv6 enable

ipv6 ospf 1 area 0

no cdp enable

!

ipv6 route 2001:DB8::1/128 2001:DB8:8100:1::2

ipv6 route 2001:DB8:8000::/33 Null0

ipv6 router ospf 1

log-adjacency-changes

area 0 range 2A00:1E18:8000::/33

redistribute connected

redistribute static

!

1 Reply 1

milan.kulik
Level 10
Level 10

Hi,

if only 2 routers involved, why don't you like option 2)?

In a case of more routers, why don't you

3) configure an IPV6 default route pointing to Null on Router1

and advertise it to your OSPF3 cloud (of course not to BGP)?

HTH,

Milan

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card