IPv6路由协议实验配置(ospfv3、isis-ipv6、bgp4+)

目录

OSPFv3实验配置

建立OSPFv3邻居

AR1修改DR优先级

AR1引入直连路由

配置Stub区域

ISIS IPv6实验配置

建立ISIS邻居

修改AR1的DIS优先级

在AR1上配置路由泄露

BGP4+实验配置

AR1与AR2、AR3建立IBGP邻居关系

AR2与AR4建立EBGP邻居关系

配置AR1为反射器


OSPFv3实验配置

 

基础配置

AR1

ipv6

int g0/0/1

 ipv6 enable

 ipv6 add 2000:14::1 64

int g0/0/0

 ipv6 enable

 ipv6 add 2000:123::1 64

interface LoopBack0

 ipv6 enable

 ipv6 address 2001::1/128

AR2

ipv6

int g0/0/0

 ipv6 enable

 ipv6 add 2000:123::2 64

AR3

ipv6

int g0/0/0

 ipv6 enable

 ipv6 add 2000:123::3 64

AR4

ipv6

int g0/0/0

 ipv6 enable

 ipv6 add 2000:14::4 64

int g0/0/1

 ipv6 enable

 ipv6 add 2000:45::4 64

AR5

ipv6

int g0/0/0

 ipv6 enable

 ipv6 add 2000:45::5 64

建立OSPFv3邻居

AR1

ospfv3 1

 router-id 1.1.1.1

 area 0

 area 1

int g0/0/0

 ospfv3 1 area 1

int g0/0/1

 ospfv3 1 area 0

AR2

ospfv3 1

 router-id 2.2.2.2

 area 1

int g0/0/0

 ospfv3 1 area 1

AR3

ospfv3 1

 router-id 3.3.3.3

 area 1

int g0/0/0

 ospfv3 1 area 1

AR4

ospfv3 1

 router-id 4.4.4.4

 area 0

 area 2

int g0/0/0

 ospfv3 1 area 0

int g0/0/1

 ospfv3 1 area 2

AR5

ospfv3 1

 router-id 5.5.5.5

 area 2

  stub

int g0/0/0

 ospfv3 1 area 2

AR1修改DR优先级

int g0/0/0

 ospfv3 dr-priority 100

AR1引入直连路由

ospfv3 1

 import-route direct type 2

配置Stub区域

AR4

ospfv3 1

 area 2

  stub no-summary

AR5

ospfv3 1

 area 2

  stub


ISIS IPv6实验配置

 

基础配置同OSPFv3

建立ISIS邻居

AR1

isis 1

 is-level level-1-2

 network-entity 49.0001.0000.0001.00

 ipv6 enable

int g0/0/0

 isis ipv6 enable 1

int g0/0/1

 isis ipv6 enable 1

AR2

isis 1

 is-level level-1

 network-entity 49.0001.0000.0002.00

 ipv6 enable

int g0/0/0

 isis ipv6 enable 1

AR3

isis 1

 is-level level-1

 network-entity 49.0001.0000.0003.00

 ipv6 enable

int g0/0/0

 isis ipv6 enable 1

AR4

isis 1

 is-level level-2

 network-entity 49.0002.0000.0004.00

 ipv6 enable

int g0/0/0

 isis ipv6 enable 1

int g0/0/1

 isis ipv6 enable 1

AR5

isis 1

 is-level level-2

 network-entity 49.0003.0000.0005.00

 ipv6 enable

int g0/0/0

 isis ipv6 enable 1

修改AR1的DIS优先级

int g0/0/1

  isis dis-priority 100

在AR1上配置路由泄露

将Level-2路由引入到Level-1中,使得全网互通

isis 1

 import-route isis level-2 into level-1


BGP4+实验配置

基础配置

AR1

ipv6

int g0/0/1

 ipv6 enable

 ipv6 add 2000:13::1 64

int g0/0/0

 ipv6 enable

 ipv6 add 2000:12::1 64

int loop 0

 ipv6 enable

 ipv6 add 2001::1 128

AR2

ipv6

int g0/0/0

 ipv6 enable

 ipv6 add 2000:12::2 64

int g0/0/1

 ipv6 enable

 ipv6 add 2000:24::2 64

int loop 0

 ipv6 enable

 ipv6 add 2002::2 128

AR3

ipv6

int g0/0/0

 ipv6 enable

 ipv6 add 2000:13::1 64

int loop 0

 ipv6 enable

 ipv6 add 2003::3 128

AR4

ipv6

int g0/0/0

 ipv6 enable

 ipv6 add 2000:24::4 64

int loop 0

 ipv6 enable

 ipv6 add 2004::4 128

AR1与AR2、AR3建立IBGP邻居关系

通过环回口建立IBGP邻居关系(底层IGP互通)

AR1

bgp 100

 router-id 1.1.1.1

 peer 2002::2 as 100

 peer 2002::2 connect-interface LoopBack 0    配置更新源为环回口0

 peer 2003::3 as 100

 peer 2003::3 connect-interface LoopBack 0

 ipv6-family unicast

  peer 2002::2 enable

  peer 2003::3 enable

AR2

bgp 100

 router-id 2.2.2.2

 peer 2001::1 as 100

 peer 2001::1 connect-interface LoopBack 0

 ipv6-family unicast

  peer 2001::1 enable

  peer 2001::1 next-hop-local

从EBGP学习到的路由传递给IBGP邻居时将下一跳更改为本地更新源

AR3

bgp 100

 router-id 3.3.3.3

 peer 2001::1 as 100

 peer 2001::1 connect-interface LoopBack 0

 ipv6-family unicast

  peer 2001::1 enable

dis bgp ipv6 peer  查看BGP4+邻居关系

AR2与AR4建立EBGP邻居关系

AR2

bgp 100

 peer 2000:24::4 as 200

 ipv6-family unicast

  peer 2000:24::4 enable

AR4

bgp 200

 router-id 4.4.4.4

 peer 2000:24::2 as 100

 ipv6-family unicast

  peer 2000:24::2 enable

配置AR1为反射器

客户端为AR2和AR3

bgp 100

 ipv6-family unicast

  reflector cluster-id 1.1.1.1

  peer 2002::2 reflect-client

  peer 2003::3 reflect-client

  • 2
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

静下心来敲木鱼

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值