ospfv3 配置命令(ospfv3路由通告方式)

网友投稿 1624 2022-09-22


ospfv3 配置命令(ospfv3路由通告方式)

ospfv3 配置命令

ospfv3 手动设置router ID 是在进程里面进行 和ospf有区别opsfv3 宣告网段是在接口里面直接ospfv3 1 area 0 和ospf有区别修改ospfv3 里面优先级 cost 存活时间等也是在接口下 ospfv3 costdisplay ospfv3 int g0/0/1 /查看接口的ospfv3详情display ospfv3 lsdb //显示ospfv3 链路状态数据库display ospfv3 lsdb intra-prefix 0.0.0.2 /显示ospfv3 链路状态数据库 3类 0.0.0.2详情display ospfv3 peer /显示ospfv3 邻接表[R1]display ipv6 routing-table protocol ospfv3 /显示ipv6的ospfv3的路由条目

案例6:配置 OSPFv3 网络

6.1 问题

如图配置IPv6地址和OSPFv3区域

查看OSPFv3邻居和数据库LSA确保 R1 和 R3 可以互相访问

[Huawei]sysname R2[R2]ipv6 /全局启用ipv6[R2]int g0/0/1[R2-GigabitEthernet0/0/1]ipv6 enable /接口启用ipv6[R2-GigabitEthernet0/0/1]ipv6 addres 2001:12::2 64 [R2-GigabitEthernet0/0/1]int g0/0/0[R2-GigabitEthernet0/0/0]ipv6 enable [R2-GigabitEthernet0/0/0]ipv6 address 2001:23::2 64[R2-GigabitEthernet0/0/0]q[R2]ospfv3 1 /进入ospfv3 进程1[R2-ospfv3-1]router-id 2.2.2.2 /进程里面设置router-id[R2-ospfv3-1]q[R2]int g0/0/1 [R2-GigabitEthernet0/0/1]ospfv3 1 area 0 /接口网段宣告到区域0[R2-GigabitEthernet0/0/1]int g0/0/0 [R2-GigabitEthernet0/0/0]ospfv3 1 area 1[R2-GigabitEthernet0/0/0]q[R2]dis ospfv3 peer /查看邻接表

9类lsa实验检测 [R1]int LoopBack 0 [R1-LoopBack0]ipv6 enable [R1-LoopBack0]ipv6 address 2001::1 128[R1-LoopBack0]ospfv3 1 area 0[R2]dis ospfv3 lsdb [R2]dis ospfv3 lsdb intra-prefix 0.0.0.2 /显示9类lsa内部路由专门显示在这里

5 案例5:IPv6 基本配置5.1 问题如图配置IPv6地址查看并测试IPv6接口和连通性确保 PC-1 和 PC-2 互通5.2 方案搭建实验环境,如图-5所示。

图-5

5.3 步骤实现此案例需要按照如下步骤进行。

1)配置终端设备

PC-1:2001:11::1 642001:11::254PC-2:2001:22::1 642001:22::2542)配置网络设备

undo terminal monitor system-view [Huawei]sysname R1[R1]ipv6[R1]interface GigabitEthernet 0/0/0[R1-GigabitEthernet0/0/0]ipv6 enable [R1-GigabitEthernet0/0/0]ipv6 address 2001:12::1 64[R1-GigabitEthernet0/0/0]quit[R1]interface GigabitEthernet 0/0/2[R1-GigabitEthernet0/0/2]ipv6 enable [R1-GigabitEthernet0/0/2]ipv6 address 2001:11::254 64[R1-GigabitEthernet0/0/2]quitundo terminal monitor system-view [Huawei]sysname R2[R2]ipv6[R2]interface GigabitEthernet 0/0/01[R2-GigabitEthernet0/0/1]ipv6 enable [R2-GigabitEthernet0/0/1]ipv6 address 2001:12::2 64[R2-GigabitEthernet0/0/1]quit[R2]interface GigabitEthernet 0/0/0[R2-GigabitEthernet0/0/0]ipv6 enable [R2-GigabitEthernet0/0/0]ipv6 address 2001:23::2 64[R2-GigabitEthernet0/0/0]quitundo terminal monitor system-view [Huawei]sysname R3[R3]ipv6[R3]interface GigabitEthernet 0/0/0[R3-GigabitEthernet0/0/0]ipv6 enable [R3-GigabitEthernet0/0/0]ipv6 address 2001:23::3 64[R3-GigabitEthernet0/0/0]quit[R3]interface GigabitEthernet 0/0/2[R3-GigabitEthernet0/0/2]ipv6 enable [R3-GigabitEthernet0/0/2]ipv6 address 2001:22::254 64[R3-GigabitEthernet0/0/2]quit3)配置IPv6路由条目

[R1]ipv6 route-static :: 0 2001:12::2[R3]ipv6 route-static :: 0 2001:23::2[R2] ipv6 route-static 2001:11:: 64 2001:12::1[R2] ipv6 route-static 2001:22:: 64 2001:23::34)测试 PC-1 与 PC2 的连通性

PC-1>ping 2001:22::1Ping 2001:22::1: 32 data bytes, Press Ctrl_C to breakFrom 2001:22::1: bytes=32 seq=1 hop limit=254 time<1 msFrom 2001:22::1: bytes=32 seq=2 hop limit=254 time=15 msFrom 2001:22::1: bytes=32 seq=3 hop limit=254 time=16 msFrom 2001:22::1: bytes=32 seq=4 hop limit=254 time=15 msFrom 2001:22::1: bytes=32 seq=5 hop limit=254 time=16 ms--- 2001:22::1 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 0/12/16 msPC-2>ping 2001:11::1Ping 2001:11::1: 32 data bytes, Press Ctrl_C to breakFrom 2001:11::1: bytes=32 seq=1 hop limit=254 time=16 msFrom 2001:11::1: bytes=32 seq=2 hop limit=254 time=16 msFrom 2001:11::1: bytes=32 seq=3 hop limit=254 time=15 msFrom 2001:11::1: bytes=32 seq=4 hop limit=254 time=16 msFrom 2001:11::1: bytes=32 seq=5 hop limit=254 time=15 ms--- 2001:11::1 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 15/15/16 ms6 案例6:配置 OSPFv3 网络6.1 问题如图配置IPv6地址和OSPFv3区域查看OSPFv3邻居和数据库LSA确保 R1 和 R3 可以互相访问6.2 方案搭建实验环境,如图-6所示。

图-6

6.3 步骤实现此案例需要按照如下步骤进行。

1)配置R1 地址,并启用 OSPFv3

undo terminal monitor system-view [Huawei]sysname R1[R1]ipv6[R1]interface GigabitEthernet 0/0/0[R1-GigabitEthernet0/0/0]ipv6 enable [R1-GigabitEthernet0/0/0]ipv6 address 2001:12::1 64[R1-GigabitEthernet0/0/0]quit[R1]ospfv3 1[R1-ospfv3-1]router-id 1.1.1.1[R1-ospfv3-1]quit[R1]interface GigabitEthernet 0/0/0[R1-GigabitEthernet0/0/0]ospfv3 1 area 0[R1-GigabitEthernet0/0/0]quit2)配置R2 地址,并启用 OSPFv3

undo terminal monitor system-view [Huawei]sysname R2[R2]ipv6[R2]interface GigabitEthernet 0/0/0[R2-GigabitEthernet0/0/0]ipv6 enable [R2-GigabitEthernet0/0/0]ipv6 address 2001:23::2 64[R2-GigabitEthernet0/0/0]quit[R2]interface GigabitEthernet 0/0/1[R2-GigabitEthernet0/0/1]ipv6 enable [R2-GigabitEthernet0/0/1]ipv6 address 2001:12::2 64[R2-GigabitEthernet0/0/1]quit[R2]ospfv3 1[R2-ospfv3-1]router-id 2.2.2.2[R2-ospfv3-1]quit[R2]interface GigabitEthernet 0/0/1[R2-GigabitEthernet0/0/1]ospfv3 1 area 0[R2-GigabitEthernet0/0/1]quit[R2]interface GigabitEthernet 0/0/0[R2-GigabitEthernet0/0/0]ospfv3 1 area 1[R2-GigabitEthernet0/0/0]quit3)配置R3 地址,并启用 OSPFv3

undo terminal monitor system-view [Huawei]sysname R3[R3]ipv6[R3]interface GigabitEthernet 0/0/1[R3-GigabitEthernet0/0/1]ipv6 enable [R3-GigabitEthernet0/0/1]ipv6 address 2001:23::3 64[R3-GigabitEthernet0/0/1]quit[R3]ospfv3 1[R3-ospfv3-1]router-id 3.3.3.3[R3-ospfv3-1]quit[R3]interface GigabitEthernet 0/0/1[R3-GigabitEthernet0/0/1]ospfv3 1 area 1[R3-GigabitEthernet0/0/1]quit4)验证PC-1与PC-2之间的互通性

[R1]ping ipv6 2001:23::3PING 2001:23::3 : 56 data bytes, press CTRL_C to breakReply from 2001:23::3 bytes=56 Sequence=1 hop limit=63 time = 30 msReply from 2001:23::3 bytes=56 Sequence=2 hop limit=63 time = 30 msReply from 2001:23::3 bytes=56 Sequence=3 hop limit=63 time = 40 msReply from 2001:23::3 bytes=56 Sequence=4 hop limit=63 time = 30 msReply from 2001:23::3 bytes=56 Sequence=5 hop limit=63 time = 30 ms--- 2001:23::3 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 30/32/40 ms


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:java开发AOP面向切面编程入门
下一篇:华为网络设备SSH密码配置,必要条件
相关文章

 发表评论

暂时没有评论,来抢沙发吧~