Cisco OSPFV3单区域

R1:

ipv6 unicast-routing   

#全局模式下开启ipv6的路由功能。

ipv6 router ospf 1

 router-id 1.1.1.1

#开启ipv6 ospf 进程1标识route-id

interface Ethernet0/0

 no ip address

 ipv6 address 2012::1/64

 ipv6 ospf 1 area 0

#进入接口宣告OSPF。

R2:

ipv6 unicast-routing   

#全局模式下开启ipv6的路由功能。

ipv6 router ospf 1

 router-id 2.2.2.2

#开启ipv6 ospf 进程1标识route-id

interface Ethernet0/0

 no ip address

 ipv6 address 2012::2/64

 ipv6 ospf 1 area 0

interface Ethernet0/1

 no ip address

 ipv6 address 2013::1/64

 ipv6 ospf 1 area 0

#进入接口宣告ospf。

R3:

ipv6 unicast-routing   

#全局模式下开启ipv6的路由功能。

ipv6 router ospf 1

 router-id 3.3.3.3

#开启ipv6 ospf 进程1标识route-id

interface Ethernet0/0

 no ip address

 ipv6 address 2013::2/64

 ipv6 ospf 1 area 0

#进入接口宣告ospf。

查看一下邻居关系:

R2#show ipv6 ospf neighbor

            OSPFv3 Router with ID (2.2.2.2) (Process ID 1)

Neighbor ID     Pri   State           Dead Time   Interface ID    Interface

3.3.3.3           1   FULL/DR         00:00:31    3               Ethernet0/1

1.1.1.1           1   FULL/BDR        00:00:34    3               Ethernet0/0

R1上查看ipv6路由表:

 #可以发现已经学习到路由了。

 #可以访问了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

所遇皆遗

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

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

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

打赏作者

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

抵扣说明:

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

余额充值