MrKernel Network

April 26, 2008

Cisco IOS BGP dual stack IPv4/IPv6 configuration

Filed under: Cisco, IPv6 — justin.berg @ 3:24 pm

I have two internet connections coming into my place, and I thought it would be fun to extend my VPN to my friends place to two tunnels with BGP. Our setup looks something like this:

R1

interface Loopback0
 ip address 172.30.123.254 255.255.255.255
 ip ospf 1 area 0.0.0.0
 ipv6 address 2001:FFFF::FFFF/128
 ipv6 ospf 1 area 0.0.0.0
!
interface Tunnel2
 description Tunnel to Friend
 ip address 192.168.254.2 255.255.255.252
 ipv6 address 2001:FFFE::2/126
 ipv6 enable
 tunnel source GigabitEthernet0/0
 tunnel destination x.x.x.x
!
router ospf 1
 log-adjacency-changes detail
 area 0.0.0.0 authentication message-digest
 default-information originate always
!
interface GigabitEthernet0/1
 ip address 10.10.0.254 255.255.255.0
 ip nat inside
 no ip virtual-reassembly
 ip ospf message-digest-key 1 md5 ****
 ip ospf 1 area 0.0.0.0
 ipv6 address 2001::FFFF/64
 ipv6 enable
 ipv6 ospf 1 area 0.0.0.0
!
router bgp 65500
 template peer-policy IBGP
  next-hop-self
 exit-peer-policy
 !
 template peer-session IBGP
  remote-as 65500
  update-source Loopback0
  fall-over
 exit-peer-session
 !
 template peer-session friend
  remote-as 65501
  update-source Tunnel2
 exit-peer-session
 !
 bgp router-id 172.30.123.254
 no bgp default ipv4-unicast
 bgp log-neighbor-changes
 neighbor 2001:FFFE::1 inherit peer-session joel
 neighbor 2001:FFFF::FFFE inherit peer-session IBGP
 neighbor 172.30.123.252 inherit peer-session IBGP
 neighbor 192.168.254.1 inherit peer-session friend
 !
 address-family ipv4
  redistribute ospf 1
  neighbor 172.30.123.252 activate
  neighbor 172.30.123.252 inherit peer-policy IBGP
  neighbor 192.168.254.1 activate
  no auto-summary
  no synchronization
 exit-address-family
 !
 address-family ipv6
  neighbor 2001:FFFE::1 activate
  neighbor 2001:FFFF::FFFE activate
  neighbor 2001:FFFF::FFFE inherit peer-policy IBGP
  redistribute ospf 1
  no synchronization
 exit-address-family
!
ipv6 router ospf 1
 log-adjacency-changes detail
 default-information originate always

R2

interface Loopback0
 ip address 172.30.123.252 255.255.255.255
 ip ospf 1 area 0.0.0.0
 ipv6 address 2001:FFFF::FFFE/128
 ipv6 enable
 ipv6 ospf 1 area 0.0.0.0
!
interface Tunnel2
 description Tunnel to friend
 ip address 192.168.254.6 255.255.255.252
 ipv6 address 2001:4830:165C:FFFE::6/126
 ipv6 enable
 tunnel source ATM0/0/0.33
 tunnel destination x.x.x.x
!
!
interface GigabitEthernet0/1
 ip address 10.10.0.252 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 ip ospf message-digest-key 1 md5 ****
 ip ospf 1 area 0.0.0.0
 ipv6 address 2001::FFFD/64
 ipv6 enable
 ipv6 ospf 1 area 0.0.0.0
!
!
router ospf 1
 log-adjacency-changes detail
 area 0.0.0.0 authentication message-digest
 default-information originate always metric 9000
!
router bgp 65500
 template peer-policy IBGP
  next-hop-self
 exit-peer-policy
 !
 template peer-session IBGP
  remote-as 65500
  update-source Loopback0
  fall-over
 exit-peer-session
 !
 template peer-session friend
  remote-as 65501
  update-source Tunnel2
 exit-peer-session
 !
 bgp router-id 172.30.123.252
 no bgp default ipv4-unicast
 bgp log-neighbor-changes
 neighbor 2001::5 inherit peer-session joel
 neighbor 2001::FFFF inherit peer-session IBGP
 neighbor 172.30.123.254 inherit peer-session IBGP
 neighbor 192.168.254.5 inherit peer-session friend
 !
 address-family ipv4
  redistribute ospf 1
  neighbor 172.30.123.254 activate
  neighbor 172.30.123.254 inherit peer-policy IBGP
  neighbor 192.168.254.5 activate
  no auto-summary
  no synchronization
 exit-address-family
 !
 address-family ipv6
  neighbor 2001::5 activate
  neighbor 2001::FFFF activate
  neighbor 2001::FFFF inherit peer-policy IBGP
  redistribute ospf 1
  no synchronization
 exit-address-family
!
ipv6 router ospf 1
 log-adjacency-changes detail

Thats my current setup for MP-BGP and IPv4/IPv6.

 

Â

2 Comments »


  1. Medicamentspot.com. Canadian Health&Care.Best quality drugs.Special Internet Prices.No prescription online pharmacy. Low price pills. Buy pills online

    Buy:Maxaman.Viagra Professional.Cialis Super Active+.Soma.Viagra Super Active+.Viagra Super Force.Levitra.Propecia.Super Active ED Pack.Cialis.Tramadol.Zithromax.VPXL.Cialis Soft Tabs.Cialis Professional.Viagra Soft Tabs.Viagra….

    Trackback by MARC — July 21, 2010 @ 2:33 am

  2. harbor http://wfurnitureays5yzx.AACEHARDWARE.INFO/tag/Media+Degree+harbor+Digital/ : Degree…

    harbor…

    Trackback by Digital — August 29, 2010 @ 8:33 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress