ospfv3 配置命令掌握ospfv3的工作过程hello DD LSR LSU LSACK 掌握ospfv3各种类型的lsa熟悉ospfv3与ospfv2的差异点ospfv3 手动设置router
.
ospfv3 配置命令
掌握ospfv3的工作过程
hello DD LSR LSU LSACK
掌握ospfv3各种类型的lsa
熟悉ospfv3与ospfv2的差异点
ospfv3 手动设置router ID 是在进程里面进行 和ospf有区别
opsfv3 宣告网段是在接口里面直接ospfv3 1 area 0 和ospf有区别
修改ospfv3 里面优先级 cost 存活时间等也是在接口下 ospfv3 cost
display 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
64
2001:11::254
PC-2:
2001:22::1
64
2001:22::254
2)配置网络设备
<Huawei>undo terminal monitor
<Huawei>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]quit
<Huawei>undo terminal monitor
<Huawei>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]quit
<Huawei>undo terminal monitor
<Huawei>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]quit
3)配置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::3
4)测试 PC-1 与 PC2 的连通性
PC-1>ping 2001:22::1
Ping 2001:22::1: 32 data bytes, Press Ctrl_C to break
From 2001:22::1: bytes=32 seq=1 hop limit=254 time<1 ms
From 2001:22::1: bytes=32 seq=2 hop limit=254 time=15 ms
From 2001:22::1: bytes=32 seq=3 hop limit=254 time=16 ms
From 2001:22::1: bytes=32 seq=4 hop limit=254 time=15 ms
From 2001:22::1: bytes=32 seq=5 hop limit=254 time=16 ms
--- 2001:22::1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 0/12/16 ms
PC-2>ping 2001:11::1
Ping 2001:11::1: 32 data bytes, Press Ctrl_C to break
From 2001:11::1: bytes=32 seq=1 hop limit=254 time=16 ms
From 2001:11::1: bytes=32 seq=2 hop limit=254 time=16 ms
From 2001:11::1: bytes=32 seq=3 hop limit=254 time=15 ms
From 2001:11::1: bytes=32 seq=4 hop limit=254 time=16 ms
From 2001:11::1: bytes=32 seq=5 hop limit=254 time=15 ms
--- 2001:11::1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 15/15/16 ms
6 案例6:配置 OSPFv3 网络
6.1 问题
如图配置IPv6地址和OSPFv3区域
查看OSPFv3邻居和数据库LSA
确保 R1 和 R3 可以互相访问
6.2 方案
搭建实验环境,如图-6所示。
图-6
6.3 步骤
实现此案例需要按照如下步骤进行。
1)配置R1 地址,并启用 OSPFv3
<Huawei>undo terminal monitor
<Huawei>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]quit
2)配置R2 地址,并启用 OSPFv3
<Huawei>undo terminal monitor
<Huawei>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]quit
3)配置R3 地址,并启用 OSPFv3
<Huawei>undo terminal monitor
<Huawei>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]quit
4)验证PC-1与PC-2之间的互通性
[R1]ping ipv6 2001:23::3
PING 2001:23::3 : 56 data bytes, press CTRL_C to break
Reply from 2001:23::3
bytes=56 Sequence=1 hop limit=63 time = 30 ms
Reply from 2001:23::3
bytes=56 Sequence=2 hop limit=63 time = 30 ms
Reply from 2001:23::3
bytes=56 Sequence=3 hop limit=63 time = 40 ms
Reply from 2001:23::3
bytes=56 Sequence=4 hop limit=63 time = 30 ms
Reply from 2001:23::3
bytes=56 Sequence=5 hop limit=63 time = 30 ms
--- 2001:23::3 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/32/40 ms