ASR-901 显示静态路由但不显示 MAC 地址表并且 ping 不响应

网络工程 思科 路由 路由器 cisco-asr
2021-07-06 21:54:44

我的问题是我在 Cisco ASR-901 中声明了一条静态路由,并在执行show ip route以下操作时显示

SOYUNCORESWITCH(config)#do sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
      ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
   a - application route
   + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is 192.168.3.254 to network 0.0.0.0

S*    0.0.0.0/0 [1/0] via 192.168.3.254
                [1/0] via 192.168.3.1
      172.26.0.0/16 is variably subnetted, 2 subnets, 2 masks
C        172.26.248.96/27 is directly connected, Vlan60
L        172.26.248.114/32 is directly connected, Vlan60
      192.168.3.0/24 is variably subnetted, 3 subnets, 2 masks
C        192.168.3.0/24 is directly connected, FastEthernet0/0
S        192.168.3.66/32 [1/0] via 192.168.3.64
L        192.168.3.99/32 is directly connected, FastEthernet0/0
      192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.10.8/29 is directly connected, Vlan100
L        192.168.10.12/32 is directly connected, Vlan100
SOYUNCORESWITCH(config)#

但是,当我尝试 ping 192.168.3.66 时,它没有响应:

SOYUNCORESWITCH#ping 192.168.3.66
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.3.66, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
SOYUNCORESWITCH#

我检查了另一端的路线,没问题,所以有什么遗漏吗?还是做得不好?

PD:这是路由器的当前配置:

SOYUNCORESWITCH#sh run 构建配置...

Current configuration : 3534 bytes
!
! Last configuration change at 21:05:11 UTC Sun Apr 17 2011 by r03py
! NVRAM config last updated at 20:20:41 UTC Sun Apr 17 2011 by r03py
!
version 15.6
service timestamps debug datetime msec
service timestamps log datetime msec
!
hostname SOYUNCORESWITCH
!
boot-start-marker
boot-end-marker
!
!
enable secret 5 $1$f743$eVtDaxgWmCvSPcOoi4qKB0
!
no aaa new-model
ethernet lmi global
ip cef
!
no ipv6 cef
!
multilink bundle-name authenticated
l3-over-l2 flush buffers
asr901-storm-control-bpdu 1000
!
spanning-tree mode pvst
spanning-tree extend system-id
license udi pid A901-6CZ-FS-A sn CAT2043U1RN
license boot level AdvancedMetroIPAccess
<removed>    !
cdp run
!
interface Loopback0
 no ip address
!
interface GigabitEthernet0/0
 description ver_asr_901_pg_358
 mtu 1500
 no ip address
 negotiation auto
 cdp enable
 service instance 60 ethernet
  description ##### CONEXION A RED MPLS  #####
  encapsulation dot1q 60
  rewrite ingress tag pop 1 symmetric
  bridge-domain 60
 !
!
interface GigabitEthernet0/1
 description #####  CONEXION CON WAN TECO  #####
 mtu 1500
 no ip address
 negotiation auto
 service instance 100 ethernet
  encapsulation untagged
  bridge-domain 100
 !
!
interface GigabitEthernet0/2
 no ip address
 negotiation auto
!
interface GigabitEthernet0/3
 mtu 1500
 no ip address
 negotiation auto
 cdp enable
!
interface GigabitEthernet0/4
 no ip address
 media-type auto-select
 negotiation auto
!
interface GigabitEthernet0/5
 no ip address
 media-type auto-select
 negotiation auto
!
interface GigabitEthernet0/6
 no ip address
 media-type auto-select
 negotiation auto
!
interface GigabitEthernet0/7
 no ip address
 media-type auto-select
 negotiation auto
!
interface GigabitEthernet0/8
 no ip address
 negotiation auto
 qos-config scheduling-mode min-bw-guarantee
!
interface GigabitEthernet0/9
 no ip address
 negotiation auto
 qos-config scheduling-mode min-bw-guarantee
!
interface GigabitEthernet0/10
 no ip address
 negotiation auto
 qos-config scheduling-mode min-bw-guarantee
!
interface GigabitEthernet0/11
 no ip address
 negotiation auto
 qos-config scheduling-mode min-bw-guarantee
!
interface TenGigabitEthernet0/0
 no ip address
 qos-config scheduling-mode min-bw-guarantee
!
interface TenGigabitEthernet0/1
 no ip address
 qos-config scheduling-mode min-bw-guarantee
!
interface FastEthernet0/0
 ip address 192.168.3.99 255.255.255.0
!
interface Vlan1
 no ip address
 shutdown
!
interface Vlan60
 ip address 172.26.248.114 255.255.255.224
!
interface Vlan100
 ip address 192.168.10.12 255.255.255.248
!
interface Vlan777
 ip address 172.17.17.66 255.255.255.252
!
router ospf 100
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
ip route static adjust-time 3
ip route 0.0.0.0 0.0.0.0 192.168.3.254
ip route 0.0.0.0 0.0.0.0 192.168.3.1
ip route 172.17.17.64 255.255.255.252 GigabitEthernet0/3
ip route 172.17.17.64 255.255.255.252 72.17.17.66 permanent
ip route 192.168.3.66 255.255.255.255 192.168.3.64
ip route 192.198.3.64 255.255.255.252 GigabitEthernet0/3
ip ospf name-lookup
!
no service-routing capabilities-manager
!
control-plane
!
environment monitor
!
line con 0
line vty 0 4
 exec-timeout 15 0
<removed>
 private
 logging synchronous
 login local
 transport input telnet
line vty 5 15
 login local
 transport input telnet
!
exception crashinfo buffersize 128
!
end
2个回答

这个命令有问题:

ip route 192.198.3.64 255.255.255.252 GigabitEthernet0/3

该接口没有 IP 配置:

interface GigabitEthernet0/3
 mtu 1500
 no ip address
 negotiation auto
 cdp enable
!

FastEthernet0/0接口已经具有192.198.3.0/24包含192.198.3.64/30您尝试在该GigabitEthernet0/3接口上使用网络网络的 IP 地址

这是行不通的。您不能在两个不同的第 3 层接口上拥有相同或重叠的网络。如果你想GigabitEthernet0/3成为一个交换机接口,那么你需要用一个 VLAN 来设置它,并为那个 VLAN 定义一个 SVI(它默认为你已经关闭的 VLAN 1),但你不能为 SVI 分配地址在 上重叠网络FastEthernet0/0

看起来您试图混淆第 2 层和第 3 层。

我在配置上发现了一个错别字。
ip route 172.17.17.64 255.255.255.252 72.17.17.66 permanent

这是正确的IP吗? 172.17.17.66

permanent不是推荐值。它无法检测到网关已关闭。

ip route 0.0.0.0 0.0.0.0 192.168.3.254
ip route 0.0.0.0 0.0.0.0 192.168.3.1
配置了多个 ip 路由目的地。行政距离的价值不是必须的吗?