一、实现内网PC1与PC4/PC5能同时通信
二、配置思路
1.配置PC和路由器接口地址
2.在R1上配置两条默认路由指向R2和R3
3.在R2和R3分别配置静态路由指向内网网段
4.验证配置效果
三、PC的配置
1.PC1配置
2.PC4配置
3.PC5配置
四、路由器的配置
1.R1配置
[R1]ipv6
R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]ip address 1.1.1.254 24
[R1-GigabitEthernet0/0/0]ipv6 enable
[R1-GigabitEthernet0/0/0]ipv6 address 1::254 64
[R1]interface g0/0/2
[R1-GigabitEthernet0/0/2]ip address 13.1.1.1 24
[R1-GigabitEthernet0/0/1]ipv6 enable
[R1-GigabitEthernet0/0/1]ipv6 address 12::1 64
[R1]ipv6 route-static :: 0 12::2
[R1]ip route-static 0.0.0.0 0 13.1.1.3
2.R2配置
[R2]ipv6
[R2-GigabitEthernet0/0/1]ipv6 enable
[R2-GigabitEthernet0/0/0]ipv6 address 12::2 64
[R2-GigabitEthernet0/0/1]int g0/0/0
[R2-GigabitEthernet0/0/0]ipv6 enable
[R2-GigabitEthernet0/0/0]ipv6 address 8::254 64
[R2]ipv6 route-static 1:: 64 12::1
3.R3配置
[R3]interface g0/0/2
[R3-GigabitEthernet0/0/2]ip address 13.1.1.3 24
[R3-GigabitEthernet0/0/2]int g0/0/0
[R3-GigabitEthernet0/0/0]ip address 8.8.8.254 24
[R3]ip route-static 1.1.1.0 24 13.1.1.1
五、验证配置效果
PC1可以ping通PC4和PC5
来源:CSDN
作者:*魔力*
链接:https://blog.csdn.net/wyyfpzy/article/details/104598626