首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ipv6静态路由不工作

ipv6静态路由不工作
EN

Server Fault用户
提问于 2015-04-10 23:59:12
回答 1查看 204关注 0票数 0

想知道ipv6静态路由默认路由无效,只能平直接连接的接口,但是sh run命令将我创建的静态路由提供给其他网络,但是在sh run输出中,我看到了我为获得全局单播地址而创建的自动配置静态路由,在下一行我看到了我为到达远程网络而创建的静态路由,有什么想法吗?我看不出远程网络有任何成功的ping。

我给出了更多的信息,routerA,routerB,routerC,通过以太网连接的三个路由器。中间路由器B手动配置它的ipv6地址,另外两条路由通过ipv6地址自动配置命令接收全局单播地址

这是路由器A的"Sh run“输出

代码语言:javascript
复制
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption 
!

hostname Router
!

! 
!

!
!

ipv6 unicast-routing
!

!
!

!
!

!
!

!
! 

!
spanning-tree mode pvst
!

!
!

!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
ipv6 address autoconfig
ipv6 enable
!

interface FastEthernet0/1
no ip address 
duplex auto
speed auto
shutdown
!

interface Vlan1
no ip address
shutdown
!

ip classless
!

ipv6 route 2001:DB6:3C4D:1::/64 FastEthernet0/0 FE80::200:CFF:FE4A:AC01
ipv6 route 2001:DB6:3C4D:2::/64 FastEthernet0/0

路由器C的SH运行输出

代码语言:javascript
复制
Building configuration...

Current configuration : 660 bytes
!

version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!

hostname Router
!

!
!

!
!

ipv6 unicast-routing
!  

!
!

!
!

!
!

!
!

!
spanning-tree mode pvst
!

!
!

!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
ipv6 address autoconfig
ipv6 enable
!

interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown  
!

interface Vlan1
no ip address
shutdown
!

ip classless
!

ipv6 route 2001:DB6:3C4D:2::/64 FastEthernet0/0 FE80::200:CFF:FE4A:AC02
ipv6 route 2001:DB6:3C4D:1::/64 FastEthernet0/0
!

!
!

!
!

!
line con 0
!

line aux 0
!

line vty 0 4
login
!

!
!

end

路由器A路由表

代码语言:javascript
复制
Router#sh ipv6 route 
IPv6 Routing Table - 4 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP  
U - Per-user Static route, M - MIPv6
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary   
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
D - EIGRP, EX - EIGRP external
C 2001:DB6:3C4D:1::/64 [0/0]
via ::, FastEthernet0/0
L   2001:DB6:3C4D:1:260:5CFF:FEA8:3A01/128 [0/0]
via ::, FastEthernet0/0
S 2001:DB6:3C4D:2::/64 [1/0]
via ::, FastEthernet0/0
L FF00::/8 [0/0] 
via ::, Null0
Router#

路由器C路由表

代码语言:javascript
复制
Router#sh ipv6 route 
IPv6 Routing Table - 4 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP 
U - Per-user Static route, M - MIPv6
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2   
D - EIGRP, EX - EIGRP external
S 2001:DB6:3C4D:1::/64 [1/0] 
via ::, FastEthernet0/0
C 2001:DB6:3C4D:2::/64 [0/0]
via ::, FastEthernet0/0
L 2001:DB6:3C4D:2:290:CFF:FE49:7601/128 [0/0]
via ::, FastEthernet0/0
L FF00::/8 [0/0]
via ::, Null0

有静态路线是定义的,为什么它没有敲击!

中间路由器B配置

代码语言:javascript
复制
Router#sh run
Building configuration..

Current configuration : 590 bytes
!

version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption 
!

hostname Router
!

!
!

!
!

ipv6 unicast-routing
!

!
!

!
!

!
!

!
!

!
spanning-tree mode pvst
!

!
!

!
interface FastEthernet0/0
no  ip address
duplex auto
speed auto
ipv6 address 2001:DB6:3C4D:1::1/64  
ipv6 enable
!   

interface FastEthernet0/1
no ip address
duplex auto
speed auto
ipv6 address 2001:DB6:3C4D:2::1/64
ipv6 enable   
! 

interface Vlan1
no ip address
shutdown
!

ip classless
!

!
!

!
!

!
!

line con 0
!  

line aux 0
!

line vty 0 4
login
!

!
!

end

为什么路由器A和C不跳?

谢谢您的支持,我为直接连接的接口禁用了一条静态路由,但它仍然只是直接连接的邻居,当我尝试从路由器C到路由器b时,甚至不点击路由器B的远程出口接口到路由器A,这里我提供了配置更改后路由器C的sh run输出

代码语言:javascript
复制
Building configuration...

Current configuration : 588 bytes
! 
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
! 
ipv6 unicast-routing 
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
ipv6 address autoconfig
ipv6 enable
!
interface FastEthernet0/1
 no ip address
duplex auto
speed auto
shutdown
!
interface Vlan1
 no ip address
shutdown  
!
ip classless
!
ipv6 route 2001:DB6:3C4D:1::/64 FastEthernet0/0
!
!

C上的路由表

代码语言:javascript
复制
Router#sh ipv6 route 
IPv6 Routing Table - 4 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
   U - Per-user Static route, M - MIPv6
   I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
   O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
   ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
   D - EIGRP, EX - EIGRP external
S   2001:DB6:3C4D:1::/64 [1/0]
 via ::, FastEthernet0/0
C   2001:DB6:3C4D:2::/64 [0/0]
 via ::, FastEthernet0/0
L   2001:DB6:3C4D:2:290:CFF:FE49:7601/128 [0/0]
 via ::, FastEthernet0/0
L   FF00::/8 [0/0]
 via ::, Null0
EN

回答 1

Server Fault用户

发布于 2015-04-11 12:15:01

如果我正确地解释了配置,您就不会告诉路由器A或路由器C,它们应该使用路由器B到达相应的其他网络(via 2001:DB6:3C4D:1::1,resp )。via 2001:DB6:3C4D:2::1而不是via ::)。实际上,您在各自的本地链接上配置了A和C两个网络2001:DB6:3C4D:1::/642001:DB6:3C4D:2::/64

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/681957

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档