ipv6实验

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(写缺省要注意最长匹配原则)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值