13.1 ICMPv6及Path-MTU
1.R1配置IPV6地址
[R1]ipv6
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ipv6 enable
[R1-GigabitEthernet0/0/0]ipv6 address 2001:12::1 64
2.R2配置IPV6地址
[R2]ipv6
[R2]interface GigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]ipv6 enable
[R2-GigabitEthernet0/0/0]ipv6 address 2001:12::2 64
[R2]interface GigabitEthernet 0/0/1
[R2-GigabitEthernet0/0/1]ipv6 enable
[R2-GigabitEthernet0/0/1]ipv6 address 2001:23::2 64
3.R3配置IPV6地址
[R3]ipv6
[R3]interface GigabitEthernet 0/0/1
[R3-GigabitEthernet0/0/1]ipv6 enable
[R3-GigabitEthernet0/0/1]ipv6 address 2001:23::3 64
4.R1配置OSPFv3
[R1]ospfv3
[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
5.R2配置OSPFv3
[R2]ospfv3
[R2-ospfv3-1]router-id 2.2.2.2
[R2]interface GigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]ospfv3 1 area 0
[R2]interface GigabitEthernet 0/0/1
[R2-GigabitEthernet0/0/1]ospfv3 1 area 1
6.R3配置OSPFv3
[R3]ospfv3
[R3-ospfv3-1]router-id 3.3.3.3
[R3]interface GigabitEthernet 0/0/1
[R3-GigabitEthernet0/0/1]ospfv3 1 area 1
7.查看路由表
<R1>display ipv6 routing-table protocol ospfv3
Public Routing Table : OSPFv3
Summary Count : 2
OSPFv3 Routing Table's Status : < Active >
Summary Count : 1
Destination : 2001:23:: PrefixLength : 64
NextHop : FE80::2E0:FCFF:FECD:20BC Preference : 10
Cost : 2 Protocol : OSPFv3
RelayNextHop : :: TunnelID : 0x0
Interface : GigabitEthernet0/0/0 Flags : D
OSPFv3 Routing Table's Status : < Inactive >
Summary Count : 1
Destination : 2001:12:: PrefixLength : 64
NextHop : :: Preference : 10
Cost : 1 Protocol : OSPFv3
RelayNextHop : :: TunnelID : 0x0
Interface : GigabitEthernet0/0/0 Flags :
8.连通性测试
<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
9.查看ICMPv6报文信息和回显应答报文
10.查看OSPFv3报文
11.修改R1的G0/0/0口的MTU值为1400(ping包不分片情况下数据单元长度为1452字节)
<R1>ping ipv6 -s 1452 2001:23::3
PING 2001:23::3 : 1452 data bytes, press CTRL_C to break
Reply from 2001:23::3
bytes=1452 Sequence=1 hop limit=63 time = 30 ms
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ospfv3 mtu-ignore
[R1-GigabitEthernet0/0/0]ipv6 mtu 1400
[R1-GigabitEthernet0/0/0]ping ipv6 -s 1452 2001:23::2
PING 2001:23::2 : 1452 data bytes, press CTRL_C to break
Reply from 2001:23::2
bytes=1452 Sequence=1 hop limit=64 time = 30 ms
1 2
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容