06-14-2011 05:31 AM - edited 03-04-2019 12:42 PM
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?
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
!
06-14-2011 11:55 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide