中国教育和科研计算机网
EDU首页 |  中国教育 |   高校科技 |   教育信息化 |   CERNET
教育信息化

资讯 | 专题 会议 观点 专栏 访谈 企业 产品 CIO 技术 校园信息化 下一代互联网 IPv6视频课堂

中国教育网 > 教育信息化
您现在的位置: EDU首页 > 教育信息化 > 下一代互联网 > 技术实践
IPv6 over IPv4 Tunnel over MPLS
http://www.edu.cn   2009-03-23 中国教育和科研计算机网 作者:

字体选择:【大】 【中】 【小】

  这个方法是在《Deploy IPv6 Network》中看到的,有个问题,当2个CE都是在as 10中的话,那么因为bgp的soo特性路由是不能正常被加入bgp路由表的。在ipv4中可以通过as-override来解决,但是ipv6中根本没这个参数,暂时还不知道如何解决。

  R1
  hostname R1
  !
  ipv6 unicast-routing
  !
  interface Loopback0
  ip address 1.1.1.1 255.255.255.255
  ipv6 address FC00:1::1/128
  ipv6 enable
  !
  interface Ethernet1/2
  no ip address
  duplex full
  ipv6 address FC00:12::1/32
  ipv6 enable
  !
  router bgp 10
  no synchronization
  bgp log-neighbor-changes
  neighbor FC00:12::2 remote-as 100
  neighbor FC00:12::2 update-source Ethernet1/2
  no auto-summary
  !
  address-family ipv6
  neighbor FC00:12::2 activate
  network FC00:1::1/128
  exit-address-family

  R2
  hostname R2
  !
  ip cef
  !
  ipv6 unicast-routing
  mpls label protocol ldp
  !
  interface Loopback0
  ip address 2.2.2.2 255.255.255.255
  !
  interface Tunnel0
  no ip address
  ipv6 address FC00:24::2/32
  ipv6 enable
  tunnel source 2.2.2.2
  tunnel destination 4.4.4.4
  tunnel mode ipv6ip
  !
  interface Ethernet1/1
  no ip address
  duplex full
  ipv6 address FC00:12::2/32
  ipv6 enable
  !
  interface Ethernet1/3
  ip address 192.168.23.2 255.255.255.0
  duplex full
  mpls ip
  !
  router ospf 100
  router-id 2.2.2.2
  log-adjacency-changes
  redistribute connected subnets
  redistribute static subnets
  network 192.168.0.0 0.0.255.255 area 0
  !
  router bgp 100
  bgp router-id 2.2.2.2
  bgp log-neighbor-changes
  neighbor 4.4.4.4 remote-as 100
  neighbor 4.4.4.4 update-source Loopback0
  neighbor FC00:12::1 remote-as 10
  neighbor FC00:12::1 update-source Ethernet1/1
  neighbor FC00:24::4 remote-as 100
  neighbor FC00:24::4 update-source Tunnel0
  !
  address-family ipv4
  neighbor 4.4.4.4 activate
  neighbor 4.4.4.4 send-community both
  no neighbor FC00:12::1 activate
  no neighbor FC00:24::4 activate
  no auto-summary
  no synchronization
  exit-address-family
  !
  address-family vpnv4
  neighbor 4.4.4.4 activate
  neighbor 4.4.4.4 send-community both
  exit-address-family
  !
  address-family ipv6
  neighbor FC00:12::1 activate
  neighbor FC00:12::1 default-originate
  neighbor FC00:24::4 activate
  exit-address-family
  !
  ipv6 route ::/0 Tunnel0
  !
  mpls ldp router-id Loopback0

  来源:《中国教育网络》

 

页面功能 【打印】 【关闭】 【我有话说

MOOC风暴来袭

版权所有:中国教育和科研计算机网网络中心 CERNIC,CERNET,京ICP备15006448号-16,京网文[2017]10376-1180号

关于假冒中国教育网的声明 | 有任何问题与建议请联络:Webmaster@staff.cernet.com