路由器上没有流量

网络工程 路由器
2021-07-16 14:23:38

我在过去 10-15 天内面临这个问题。我的一个位置是通过 MPLS(路由器 IP 10.34.7.2)连接的(请参见图像进行设置)。用户抱怨连接缓慢或没有连接。在检查网关路由器时,接口显示没有流量。

router#sh int e0
Ethernet0 is up, line protocol is up
  Hardware is PQUICC Ethernet, address is 000e.841e.1317 (bia 000e.841e.1317)
  Internet address is 10.34.7.1/16
  MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Full-duplex, 10Mb/s
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input 00:00:00, output 00:00:00, output hang never
  Last clearing of "show interface" counters 22:58:10
  Input queue: 1/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  30 second input rate 1000 bits/sec, 1 packets/sec
  30 second output rate 1000 bits/sec, 1 packets/sec
     123988 packets input, 19333333 bytes, 0 no buffer
     Received 78771 broadcasts, 0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 input packets with dribble condition detected
     67690 packets output, 13952579 bytes, 0 underruns
     18 output errors, 1967 collisions, 1 interface resets
     0 babbles, 0 late collision, 336 deferred
     18 lost carrier, 0 no carrier
     0 output buffer failures, 0 output buffers swapped out
Router#
interface Ethernet0 
ip address 10.34.7.1 255.255.0.0 
load-interval 30 
no cdp enable 
! 
interface Serial0 
no ip address 
shutdown 
fair-queue 
no cdp enable 
! ip classless 
ip route 0.0.0.0 0.0.0.0 10.34.7.2 
ip route 10.0.0.0 255.0.0.0 10.34.7.2 
ip route 142.147.0.0 255.255.0.0 10.34.7.2 
ip route 172.16.15.0 255.255.255.224 10.34.7.2

请帮我解决这个问题。我试过重装路由器。还有开关。当我从路由器 ping 到已定义大小的 HO 时。我在接口上获得流量。

位置连接

3个回答

您没有在不同的子网上定义默认网关。所以根据你的图片,如果计算机配置了10.34.10/16范围,那么他们的网关应该在这个范围内(例如10.34.10.1)。你不能只输入你想要的任何数字,并期望计算机自己找到自己的方式。这就像你问我如何飞到莫斯科,我告诉你先飞到伦敦,而你也不知道如何飞到伦敦。

如果没有其他正确的选择被配置,一些网络协议允许计算机发现它自己的网关。这很可能是流量发现它到达 MPLS 路由器时发生的情况。他们可能广播了一条路径离开他们的子网,而 MPLS 路由器是唯一响应的东西。

我的建议是放置一个范围为 10.34.10.x/16 的辅助 IP 地址,然后将您的默认网关设置为该地址。如果您不能简单地将该接口完全重新寻址到 10.34.10.x,那当然是可以的。

您可以在接口下添加 ip flow ingress/ip flow egress(在您的情况下为 Ethernet0)。这将启用通过该链接的流量的NETFLOW 缓存。不用担心没有风险。

之后,您可以执行 show ip cache-flow,您将看到通过该接口的所有数据包。其余的设备很可能有更具体的路由,并且根本不使用默认网关。

我赞同退一步的想法,并重新评估您希望在流程中发挥哪些功能。总结如果数据包在较高级别达到 0.1 会发生什么。将其分解为大块的功能。你需要这个吗?还有其他应该在 .1 上工作的东西,但不是吗?您是否有安全业务需求,促使您进一步进行边缘分离?如果这是一大堆不,那么我会认真考虑将您的流量直接发送到 .2 路由器。它已经与您的所有客户编号。

为什么你真的通过 .1 发送流量?我认为这就是你现在着陆的地方。

希望这可以帮助!

-m