华为IPV6-静态路由

一、通信拓扑如下
华为IPV6-静态路由_第1张图片
二、PC1与PC2配置

1.PC1配置
华为IPV6-静态路由_第2张图片
2.PC2配置
华为IPV6-静态路由_第3张图片
三、路由器配置

1.R1配置
[R1]ipv6
[R1]interface g0/0/1
[R1-GigabitEthernet0/0/1]ipv6 enable
[R1-GigabitEthernet0/0/1]ipv6 address 1::254 64
[R1-GigabitEthernet0/0/1]int g0/0/0
[R1-GigabitEthernet0/0/0]ipv6 enable
[R1-GigabitEthernet0/0/0]ipv6 address 12::1 64

2.R2配置
[R2]ipv6
[R2]int
[R2]interface g0/0/0
[R2-GigabitEthernet0/0/0]ipv6 enable
[R2-GigabitEthernet0/0/0]ipv6 address 12::2 64
[R2]interface g0/0/1
[R2-GigabitEthernet0/0/1]ipv6 enable
[R2-GigabitEthernet0/0/1]ipv6 address 23::2 64

3.R3配置
[R3]ipv6
[R3]interface g0/0/1
[R3-GigabitEthernet0/0/1]ipv6 enable
[R3-GigabitEthernet0/0/1]ipv6 address 23::3 64
[R3-GigabitEthernet0/0/1]int g0/0/0
[R3-GigabitEthernet0/0/0]ipv6 enable
[R3-GigabitEthernet0/0/0]ipv6 address 3::254 64

4.R1缺省路由配置(默认路由)
[R1]ipv6 route-static :: 0 12::2 //不管去往任何网段任何地址下一跳都是转发给12::2

5.R2静态路由配置
[R2]ipv6 route-static 1:: 64 12::1
[R2]ipv6 route-static 3:: 64 23::3

6.R3缺省路由配置(默认路由)
[R3]ipv6 route-static :: 0 23::2

四、验证通信效果

PC1ping通PC2
华为IPV6-静态路由_第4张图片

你可能感兴趣的:(华为IPV6-静态路由)