设为首页收藏本站language 语言切换
楼主: 7100988
收起左侧

[求助] cisco C3550 三层vlan间无法路由

[复制链接]
 楼主| 发表于 2016-12-30 15:41:56 | 显示全部楼层
smallszg 发表于 2016-12-30 14:58
你PC2 连得 f0/1 ?    PC1 呢?   怎么没有另外一个口学习到的mac ?    PC两边互相  ping 一下  

然后 ...

debbug  吗?
16# 2016-12-30 15:41:56 回复 收起回复
回复

使用道具 举报

发表于 2016-12-30 15:47:11 | 显示全部楼层
PC1连接的f0/2 ?
两个PC互ping 下。  在SW   debug  ip icmp 看下  有没有信息,有的话 发一下  。
然后在SW 抓一下   show  arp    show   mac-address-table
17# 2016-12-30 15:47:11 回复 收起回复
回复

使用道具 举报

发表于 2016-12-30 15:48:00 | 显示全部楼层
我在真机上做过了 ,是通的  

Cisco IOS Software, C3550 Software (C3550-IPSERVICESK9-M), Version 12.2(35)SE3, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Fri 16-Mar-07 00:43 by antonino
Image text-base: 0x00003000, data-base: 0x00E86000
18# 2016-12-30 15:48:00 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-12-30 16:02:43 | 显示全部楼层
smallszg 发表于 2016-12-30 15:47
PC1连接的f0/2 ?
两个PC互ping 下。  在SW   debug  ip icmp 看下  有没有信息,有的话 发一下  。
然后 ...

在SW   debug  ip icmp   pc1和pc2 互ping 没有信息
C3550#sh arp
Protocol  Address          Age (min)  Hardware Addr   Type   Interface
Internet  10.10.1.1               0   0040.0512.724f  ARPA   Vlan10
Internet  10.10.2.1               5   0016.d3c8.0477  ARPA   Vlan20
Internet  10.10.10.254            -   0013.1ac8.d500  ARPA   Vlan1
Internet  10.10.2.254             -   0013.1ac8.d500  ARPA   Vlan20
Internet  10.10.1.254             -   0013.1ac8.d500  ARPA   Vlan10

C3550#show   mac-address-table
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----
All    0013.1ac8.d500    STATIC      CPU
All    0013.1ac8.d501    STATIC      CPU
All    0013.1ac8.d502    STATIC      CPU
All    0013.1ac8.d503    STATIC      CPU
All    0013.1ac8.d504    STATIC      CPU
All    0013.1ac8.d505    STATIC      CPU
All    0013.1ac8.d506    STATIC      CPU
All    0013.1ac8.d507    STATIC      CPU
All    0013.1ac8.d508    STATIC      CPU
All    0013.1ac8.d509    STATIC      CPU
All    0013.1ac8.d50a    STATIC      CPU
All    0013.1ac8.d50b    STATIC      CPU
All    0013.1ac8.d50c    STATIC      CPU
All    0013.1ac8.d50d    STATIC      CPU
All    0013.1ac8.d50e    STATIC      CPU
All    0013.1ac8.d50f    STATIC      CPU
All    0013.1ac8.d510    STATIC      CPU
All    0013.1ac8.d511    STATIC      CPU
All    0013.1ac8.d512    STATIC      CPU
All    0013.1ac8.d513    STATIC      CPU
All    0013.1ac8.d514    STATIC      CPU
All    0013.1ac8.d515    STATIC      CPU
All    0013.1ac8.d516    STATIC      CPU
All    0013.1ac8.d517    STATIC      CPU
All    0013.1ac8.d518    STATIC      CPU
All    0013.1ac8.d519    STATIC      CPU
All    0013.1ac8.d51a    STATIC      CPU
All    0013.1ac8.d51b    STATIC      CPU
All    0013.1ac8.d51c    STATIC      CPU
All    0013.1ac8.d51d    STATIC      CPU
All    0013.1ac8.d51e    STATIC      CPU
All    0013.1ac8.d51f    STATIC      CPU
All    0013.1ac8.d520    STATIC      CPU
All    0013.1ac8.d521    STATIC      CPU
All    0013.1ac8.d522    STATIC      CPU
All    0013.1ac8.d523    STATIC      CPU
All    0013.1ac8.d524    STATIC      CPU
All    0013.1ac8.d525    STATIC      CPU
All    0013.1ac8.d526    STATIC      CPU
All    0013.1ac8.d527    STATIC      CPU
All    0013.1ac8.d528    STATIC      CPU
All    0013.1ac8.d529    STATIC      CPU
All    0013.1ac8.d52a    STATIC      CPU
All    0013.1ac8.d52b    STATIC      CPU
All    0013.1ac8.d52c    STATIC      CPU
All    0013.1ac8.d52d    STATIC      CPU
All    0013.1ac8.d52e    STATIC      CPU
All    0013.1ac8.d52f    STATIC      CPU
All    0013.1ac8.d530    STATIC      CPU
All    0013.1ac8.d531    STATIC      CPU
All    0013.1ac8.d532    STATIC      CPU
All    0100.0c00.0000    STATIC      CPU
All    0100.0ccc.cccc    STATIC      CPU
All    0100.0ccc.cccd    STATIC      CPU
All    0180.c200.0000    STATIC      CPU
All    0180.c200.0001    STATIC      CPU
All    0180.c200.0002    STATIC      CPU
All    0180.c200.0003    STATIC      CPU
All    0180.c200.0004    STATIC      CPU
All    0180.c200.0005    STATIC      CPU
All    0180.c200.0006    STATIC      CPU
All    0180.c200.0007    STATIC      CPU
All    0180.c200.0008    STATIC      CPU
All    0180.c200.0009    STATIC      CPU
All    0180.c200.000a    STATIC      CPU
All    0180.c200.000b    STATIC      CPU
All    0180.c200.000c    STATIC      CPU
All    0180.c200.000d    STATIC      CPU
All    0180.c200.000e    STATIC      CPU
All    0180.c200.000f    STATIC      CPU
All    0180.c200.0010    STATIC      CPU
  10    0009.43d1.7541    DYNAMIC     Fa0/3
  10    0040.0512.724f    DYNAMIC     Fa0/1
  20    0009.43d1.7541    DYNAMIC     Fa0/3
  20    0016.d3c8.0477    DYNAMIC     Fa0/2
   1    0009.43d1.7541    DYNAMIC     Fa0/3
  30    0009.43d1.7541    DYNAMIC     Fa0/3
Total Mac Addresses for this criterion: 77
19# 2016-12-30 16:02:43 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-12-30 16:02:59 | 显示全部楼层
  在SW   debug  ip icmp   pc1和pc2 互ping 没有信息
C3550#sh arp
Protocol  Address          Age (min)  Hardware Addr   Type   Interface
Internet  10.10.1.1               0   0040.0512.724f  ARPA   Vlan10
Internet  10.10.2.1               5   0016.d3c8.0477  ARPA   Vlan20
Internet  10.10.10.254            -   0013.1ac8.d500  ARPA   Vlan1
Internet  10.10.2.254             -   0013.1ac8.d500  ARPA   Vlan20
Internet  10.10.1.254             -   0013.1ac8.d500  ARPA   Vlan10

C3550#show   mac-address-table
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----
All    0013.1ac8.d500    STATIC      CPU
All    0013.1ac8.d501    STATIC      CPU
All    0013.1ac8.d502    STATIC      CPU
All    0013.1ac8.d503    STATIC      CPU
All    0013.1ac8.d504    STATIC      CPU
All    0013.1ac8.d505    STATIC      CPU
All    0013.1ac8.d506    STATIC      CPU
All    0013.1ac8.d507    STATIC      CPU
All    0013.1ac8.d508    STATIC      CPU
All    0013.1ac8.d509    STATIC      CPU
All    0013.1ac8.d50a    STATIC      CPU
All    0013.1ac8.d50b    STATIC      CPU
All    0013.1ac8.d50c    STATIC      CPU
All    0013.1ac8.d50d    STATIC      CPU
All    0013.1ac8.d50e    STATIC      CPU
All    0013.1ac8.d50f    STATIC      CPU
All    0013.1ac8.d510    STATIC      CPU
All    0013.1ac8.d511    STATIC      CPU
All    0013.1ac8.d512    STATIC      CPU
All    0013.1ac8.d513    STATIC      CPU
All    0013.1ac8.d514    STATIC      CPU
All    0013.1ac8.d515    STATIC      CPU
All    0013.1ac8.d516    STATIC      CPU
All    0013.1ac8.d517    STATIC      CPU
All    0013.1ac8.d518    STATIC      CPU
All    0013.1ac8.d519    STATIC      CPU
All    0013.1ac8.d51a    STATIC      CPU
All    0013.1ac8.d51b    STATIC      CPU
All    0013.1ac8.d51c    STATIC      CPU
All    0013.1ac8.d51d    STATIC      CPU
All    0013.1ac8.d51e    STATIC      CPU
All    0013.1ac8.d51f    STATIC      CPU
All    0013.1ac8.d520    STATIC      CPU
All    0013.1ac8.d521    STATIC      CPU
All    0013.1ac8.d522    STATIC      CPU
All    0013.1ac8.d523    STATIC      CPU
All    0013.1ac8.d524    STATIC      CPU
All    0013.1ac8.d525    STATIC      CPU
All    0013.1ac8.d526    STATIC      CPU
All    0013.1ac8.d527    STATIC      CPU
All    0013.1ac8.d528    STATIC      CPU
All    0013.1ac8.d529    STATIC      CPU
All    0013.1ac8.d52a    STATIC      CPU
All    0013.1ac8.d52b    STATIC      CPU
All    0013.1ac8.d52c    STATIC      CPU
All    0013.1ac8.d52d    STATIC      CPU
All    0013.1ac8.d52e    STATIC      CPU
All    0013.1ac8.d52f    STATIC      CPU
All    0013.1ac8.d530    STATIC      CPU
All    0013.1ac8.d531    STATIC      CPU
All    0013.1ac8.d532    STATIC      CPU
All    0100.0c00.0000    STATIC      CPU
All    0100.0ccc.cccc    STATIC      CPU
All    0100.0ccc.cccd    STATIC      CPU
All    0180.c200.0000    STATIC      CPU
All    0180.c200.0001    STATIC      CPU
All    0180.c200.0002    STATIC      CPU
All    0180.c200.0003    STATIC      CPU
All    0180.c200.0004    STATIC      CPU
All    0180.c200.0005    STATIC      CPU
All    0180.c200.0006    STATIC      CPU
All    0180.c200.0007    STATIC      CPU
All    0180.c200.0008    STATIC      CPU
All    0180.c200.0009    STATIC      CPU
All    0180.c200.000a    STATIC      CPU
All    0180.c200.000b    STATIC      CPU
All    0180.c200.000c    STATIC      CPU
All    0180.c200.000d    STATIC      CPU
All    0180.c200.000e    STATIC      CPU
All    0180.c200.000f    STATIC      CPU
All    0180.c200.0010    STATIC      CPU
  10    0009.43d1.7541    DYNAMIC     Fa0/3
  10    0040.0512.724f    DYNAMIC     Fa0/1
  20    0009.43d1.7541    DYNAMIC     Fa0/3
  20    0016.d3c8.0477    DYNAMIC     Fa0/2
   1    0009.43d1.7541    DYNAMIC     Fa0/3
  30    0009.43d1.7541    DYNAMIC     Fa0/3
Total Mac Addresses for this criterion: 77
20# 2016-12-30 16:02:59 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-12-30 16:03:29 | 显示全部楼层
本帖最后由 7100988 于 2016-12-30 16:06 编辑
smallszg 发表于 2016-12-30 15:48
我在真机上做过了 ,是通的  

Cisco IOS Software, C3550 Software (C3550-IPSERVICESK9-M), Version 12 ...

是不是版本的问题
我的版本如下
C3550#sh ver
Cisco Internetwork Operating System Software
IOS (tm) C3550 Software (C3550-I9Q3L2-M), Version 12.1(22)EA1a, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2004 by cisco Systems, Inc.
Compiled Fri 20-Aug-04 00:30 by yenanh
Image text-base: 0x00003000, data-base: 0x006C5C6C

ROM: Bootstrap program is C3550 boot loader

C3550 uptime is 5 hours, 48 minutes
System returned to ROM by power-on
System image file is "flash:c3550-i9q3l2-mz.121-22.EA1a/c3550-i9q3l2-mz.121-22.EA1a.bin"

cisco WS-C3550-48 (PowerPC) processor (revision Q0) with 65526K/8192K bytes of memory.
Processor board ID CAT0905Z0BS
Last reset from warm-reset
Running Layer2/3 Switching Image

Ethernet-controller 1 has 12 Fast Ethernet/IEEE 802.3 interfaces

Ethernet-controller 2 has 12 Fast Ethernet/IEEE 802.3 interfaces

Ethernet-controller 3 has 12 Fast Ethernet/IEEE 802.3 interfaces

Ethernet-controller 4 has 12 Fast Ethernet/IEEE 802.3 interfaces

Ethernet-controller 5 has 1 Gigabit Ethernet/IEEE 802.3 interface

Ethernet-controller 6 has 1 Gigabit Ethernet/IEEE 802.3 interface

48 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)

The password-recovery mechanism is enabled.
384K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:13:1A:C85:00
Motherboard assembly number: 73-5701-10
Power supply part number: 34-0967-02
Motherboard serial number: CAT09050RXB
Power supply serial number: DTH09036WXN
Model revision number: Q0
Motherboard revision number: A0
Model number: WS-C3550-48-SMI
System serial number: CAT0905Z0BS
Configuration register is 0x10F


21# 2016-12-30 16:03:29 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-12-30 16:08:38 | 显示全部楼层
smallszg 发表于 2016-12-30 15:48
我在真机上做过了 ,是通的  

Cisco IOS Software, C3550 Software (C3550-IPSERVICESK9-M), Version 12 ...

您的bin C3550-IPSERVICESK9-M 能用在我的交换机上吗
22# 2016-12-30 16:08:38 回复 收起回复
回复

使用道具 举报

发表于 2016-12-30 16:14:16 | 显示全部楼层
show interface  trunk  看看怎么样的  。

然后   f0/1   /    f0/2     敲上    sw  mode  access   呢?   通不通
23# 2016-12-30 16:14:16 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-12-30 16:22:58 | 显示全部楼层
smallszg 发表于 2016-12-30 16:14
show interface  trunk  看看怎么样的  。

然后   f0/1   /    f0/2     敲上    sw  mode  access   呢 ...

1:show interface  trunk

为空 我没有设置trunk口
2:f0/1   /    f0/2     敲上    sw  mode  access  
interface FastEthernet0/1
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/2
switchport access vlan 20
switchport mode access

设置完还是不通

谢谢您 顺祝您2017年新年快乐 万事如意!!

24# 2016-12-30 16:22:58 回复 收起回复
回复

使用道具 举报

发表于 2016-12-30 16:25:03 | 显示全部楼层
PC上  ipconfig /all     带all 的信息看下 ?
25# 2016-12-30 16:25:03 回复 收起回复
回复

使用道具 举报

发表于 2016-12-30 16:26:59 | 显示全部楼层
在 SW 上  debug ip icmp 没有log 出来,应该就是把包顺利的向外发了啊。到了PC 没有回应 ?
26# 2016-12-30 16:26:59 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-12-30 16:27:01 | 显示全部楼层
smallszg 发表于 2016-12-30 16:25
PC上  ipconfig /all     带all 的信息看下 ?

C:\Users\zhang>ipconfig /all

Windows IP 配置

   主机名  . . . . . . . . . . . . . : zhangdh
   主 DNS 后缀 . . . . . . . . . . . :
   节点类型  . . . . . . . . . . . . : 混合
   IP 路由已启用 . . . . . . . . . . : 否
   WINS 代理已启用 . . . . . . . . . : 否

以太网适配器 本地连接 2:

   连接特定的 DNS 后缀 . . . . . . . :
   描述. . . . . . . . . . . . . . . : Atheros L1 千兆以太网 10/100/1000Base-T
控制器
   物理地址. . . . . . . . . . . . . : 00-1E-8C-11-0E-59
   DHCP 已启用 . . . . . . . . . . . : 是
   自动配置已启用. . . . . . . . . . : 是
   本地链接 IPv6 地址. . . . . . . . : fe80::e58e:8b91:7d13:6502%13(首选)
   IPv4 地址 . . . . . . . . . . . . : 192.168.1.102(首选)
   子网掩码  . . . . . . . . . . . . : 255.255.255.0
   获得租约的时间  . . . . . . . . . : 2016年12月30日 15:52:24
   租约过期的时间  . . . . . . . . . : 2016年12月31日 15:52:23
   默认网关. . . . . . . . . . . . . : 192.168.1.1
   DHCP 服务器 . . . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 301997708
   DHCPv6 客户端 DUID  . . . . . . . : 00-01-00-01-1E-79-CA-28-00-40-05-12-72-4F

   DNS 服务器  . . . . . . . . . . . : 202.106.46.151
                                       202.106.0.20
   TCPIP 上的 NetBIOS  . . . . . . . : 已启用

以太网适配器 本地连接:

   连接特定的 DNS 后缀 . . . . . . . :
   描述. . . . . . . . . . . . . . . : D-Link DFE-530TX PCI Fast Ethernet Adapte
r (rev.C)
   物理地址. . . . . . . . . . . . . : 00-40-05-12-72-4F
   DHCP 已启用 . . . . . . . . . . . : 否
   自动配置已启用. . . . . . . . . . : 是
   本地链接 IPv6 地址. . . . . . . . : fe80::a58b:f6d4:afb8:7345%11(首选)
   IPv4 地址 . . . . . . . . . . . . : 10.10.1.1(首选)
   子网掩码  . . . . . . . . . . . . : 255.255.255.0
   默认网关. . . . . . . . . . . . . : 10.10.1.254
   DHCPv6 IAID . . . . . . . . . . . : 234897413
   DHCPv6 客户端 DUID  . . . . . . . : 00-01-00-01-1E-79-CA-28-00-40-05-12-72-4F

   DNS 服务器  . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   TCPIP 上的 NetBIOS  . . . . . . . : 已启用

隧道适配器 isatap.{FBCBE36A-E6C9-4057-B49C-AAA4F6A2D9AE}:

   媒体状态  . . . . . . . . . . . . : 媒体已断开
   连接特定的 DNS 后缀 . . . . . . . :
   描述. . . . . . . . . . . . . . . : Microsoft ISATAP Adapter
   物理地址. . . . . . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP 已启用 . . . . . . . . . . . : 否
   自动配置已启用. . . . . . . . . . : 是

隧道适配器 isatap.{F79F5042-A263-49E9-9453-176DD1478ACC}:

   媒体状态  . . . . . . . . . . . . : 媒体已断开
   连接特定的 DNS 后缀 . . . . . . . :
   描述. . . . . . . . . . . . . . . : Microsoft ISATAP Adapter #2
   物理地址. . . . . . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP 已启用 . . . . . . . . . . . : 否
   自动配置已启用. . . . . . . . . . : 是

隧道适配器 本地连接* 3:

   媒体状态  . . . . . . . . . . . . : 媒体已断开
   连接特定的 DNS 后缀 . . . . . . . :
   描述. . . . . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
   物理地址. . . . . . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP 已启用 . . . . . . . . . . . : 否
   自动配置已启用. . . . . . . . . . : 是

C:\Users\zhang>
27# 2016-12-30 16:27:01 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-12-30 16:41:25 | 显示全部楼层
7100988 发表于 2016-12-30 16:08
您的bin C3550-IPSERVICESK9-M 能用在我的交换机上吗

C3550#sh ver
Cisco Internetwork Operating System Software
IOS (tm) C3550 Software (C3550-I9Q3L2-M), Version 12.1(22)EA1a, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2004 by cisco Systems, Inc.

我更新一下ios吧
我下载了c3550-ipservicesk9-tar.122-44.SE6
我的交换机能不能用?
28# 2016-12-30 16:41:25 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-12-30 17:00:26 | 显示全部楼层
smallszg 发表于 2016-12-30 16:52
好吧, 投降了。
总结下:
1、理论这样是通的,我真机做过,也的确是通的。

非常非常感谢 我很头痛 理论上是应该能通的 我有两个网卡 禁用一个也是不能通的



放假了,不耽误您的时间了 您早点回。
顺祝元旦快乐!!!
29# 2016-12-30 17:00:26 回复 收起回复
回复

使用道具 举报

发表于 2016-12-30 17:04:52 | 显示全部楼层
放大招嘛, 装个抓包软件,一段段的抓,一段段的看  IP   mac 是不是符合我们的预期  。这样我就不相信还出不来。

要么下个我的IOS 版本去, 灌进去试试喽。

走了 ,  元旦快乐
30# 2016-12-30 17:04:52 回复 收起回复
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-6-1 03:18 , Processed in 0.114425 second(s), 20 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表