10和11用ripng 1,1和2我选择用ospfv3通信
在2和10之间建立tunnel
interface Tunnel0/0/0
ipv6 enable
ipv6 address 2002:5B01:102::1/64
ripng 1 enable
tunnel-protocol ipv6-ipv4 6to4
source GigabitEthernet0/0/0
在2和10上下方缺省
ospfv3 1
router-id 2.2.2.2
default-route-advertise
2上做nat
acl number 2000
rule 5 permit source 12.1.1.1 0
interface GigabitEthernet0/0/1
nat outbound 2000
3 4 5之间BGP 64512 建立IBGP
bgp 64512
router-id 3.3.3.3
confederation id 100
peer 4::4 as-number 64512
peer 4::4 connect-interface LoopBack0
peer 5::5 as-number 64512
peer 5::5 connect-interface LoopBack0
5 6之间建立类EBGP
bgp 64512
router-id 5.5.5.5
confederation id 100
confederation peer-as 64513
peer 6::6 as-number 64513
peer 6::6 ebgp-max-hop 255
peer 6::6 connect-interface LoopBack0
6 7之间建立EBGP
bgp 64513
router-id 6.6.6.6
confederation id 100
confederation peer-as 64512
peer 2002:1D01:101:6::2 as-number 101
peer 2002:1D01:101:6::2 ebgp-max-hop 255
宣告路由 我选择重发布进入BGP(记得要重发布直连)
路径不优做本地下一跳(ipv6要在家族模式做)
ipv6-family unicast
import-route direct
import-route ospfv3 100
peer 5::5 enable
peer 5::5 next-hop-local
peer 2002:1D01:101:6::2 enable
peer 2002:1D01:101:6::2 next-hop-local
在3上下方缺省导入BGP(写缺省要注意最长匹配原则)