我刚接触过网络,目前正在学习静态路由中的IPv6。我在copper中建立了这样一个环境:用串行介质连接两个路由器,每个路由器在GigabitEthernet接口中用铜直通介质连接交换机,用FastEthernet接口连接每个交换机和每台计算机。以下是路由器的命令:
R1配置
R1(config) # interface GigabitEthernet 0/0
R1(config-if ) # ipv6 address 2001:DB8:ACAD:A::/64 eui-64
R1(config- if ) # no shutdown
R1(config-if ) # exit
R1(config) # interface Serial 0/1/0
R1(config) # ipv6 address FC00::1/64
R1(config- if ) # no shutdown
R1(config-if ) # exit
R1(config) #ipv6 ipv6 unicast-routing
R1(config) # ipv6 route 2001:DB8:ACAD:B::/64 Serial0/1/0
R1(config-if ) # exitR2配置
R2(config) # interface GigabitEthernet 0/0
R2(config-if ) # ipv6 address 2001:DB8:ACAD:B::/64 eui-64
R2(config- if ) # no shutdown
R2(config-if ) # exit
R2(config) # interface Serial 0/1/0
R2(config) # ipv6 address FC00::2/64
R2(config- if ) # no shutdown
R2(config-if ) # exit
R2(config) #ipv6 ipv6 unicast-routing
R2(config) # ipv6 route 2001:DB8:ACAD:A::/64 Serial0/1/0
R2(config-if ) # exitPc1: IPV6地址是:2001:Db8:ACAD:a:F /64,默认网关是:2001:Db8:ACAD:A:1./2001:Db8:ACAD:B:1,IPV6地址:2001:Db8:Db8:ACAD:B::F。当我试图平平什么都没有发生,though.What,我做错了吗?
发布于 2020-06-10 04:21:56
将路由设置为地址,而不是接口。简单地将数据包放在串行接口上是行不通的。(这不是一座桥)
发布于 2020-06-19 23:25:40
你说:
Pc1:...默认网关是: 2001:DB8:ACAD:A::1。
但是你的路由器没有那个地址。请检查此示例:
R1#show running-config | section interface Serial3/0
interface Serial3/0
no ip address
ipv6 address 2001:DB8:ACAD:A::/64 eui-64
R1#show ipv6 interface Serial3/0 | section Global
Global unicast address(es):
2001:DB8:ACAD:A:C802:DCFF:FE4A:8, subnet is 2001:DB8:ACAD:A::/64 [EUI]观察路由器如何没有您期望的2001:DB8:ACAD:A::1地址。相反,它使用SLAAC来定义自己的IPv6地址。这是因为您指定了eui-64关键字。
因此,PC1中的网关地址与路由器中的地址不匹配。您可以更改PC1中的网关地址,也可以手动分配路由器中的地址。
如果您希望手动设置IPv6地址,而不是使用SLAAC,请按照对Serial : just ipv6 address 2001:DB8:ACAD:A::1/64所做的方式定义它。
您应该使用no ipv6 address 2001:DB8:ACAD:A::/64 eui-64删除另一个,因为它不会被自动删除。
https://networkengineering.stackexchange.com/questions/68374
复制相似问题